Commit ad477e13 authored by Francois Marier's avatar Francois Marier
Browse files

Add a makefile to easily run tests and optimise images

Signed-off-by: default avatarFrancois Marier <>
parent efe861a4
@echo "Run 'make imageoptim' to losslessly optimise all images"
@echo "Run 'make minaccept' to run the quick pre-commit tests"
@echo "Run 'make push' to push your changes to the repo"
find . -iname '*.png' -exec optipng -o7 -q {} \;
find . -iname '*.gif' -exec gifsicle -O2 -b {} \;
find . -iname '*.jpg' -exec jpegoptim -q -p --strip-all {} \;
find . -iname '*.jpeg' -exec jpegoptim -q -p --strip-all {} \;
@find htdocs/ -type f -name "*.php" | xargs -n 1 -P 2 php -l > /dev/null
push: minaccept
git push
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment