Commit ad477e13 authored by Francois Marier's avatar Francois Marier

Add a makefile to easily run tests and optimise images

Signed-off-by: 's avatarFrancois Marier <francois@catalyst.net.nz>
parent efe861a4
all:
@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"
imageoptim:
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 {} \;
minaccept:
@find htdocs/ -type f -name "*.php" | xargs -n 1 -P 2 php -l > /dev/null
push: minaccept
git push
Markdown is supported
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