1
0
Fork 0

Add image compression logic to Makefile

not just in the debian package.

move listimagesscript to bin dir

Also clean compressed dir
master
johanvdw 2017-07-12 13:10:07 +00:00
parent 2506b72dc9
commit 1f1a9b36e8
4 changed files with 11 additions and 5 deletions

View File

@ -38,6 +38,8 @@ help:
clean:
rm -rf $(BUILDDIR)
rm -rf _compressed
#if [ -e licenses.csv ] ; then \
# rm -f licenses.csv ; \
#fi ;
@ -260,3 +262,11 @@ doctest:
@echo "Testing of doctests in the sources finished, look at the " \
"results in $(BUILDDIR)/doctest/output.txt."
listimagestocompress:
./bin/listimagestocompress.sh
compressimages: html
for i in i $(cut -d ";" -f1 tocompress.txt)
do
pngquant -f --ext .png --quality 70-95 "$i"
done

View File

@ -16,4 +16,4 @@ do
#git commit -m "Compress $j with pngquant ($a -> $b)"
fi
done
rm -rf _compressed

4
debian/rules vendored
View File

@ -12,7 +12,3 @@ override_dh_auto_build-indep:
#rm -rf de/presentation*
$(MAKE) html
debian/fix_sphinx.sh
for i in i $(cut -d ";" -f1 debian/tocompress.txt)
do
pngquant -f --ext .png --quality 70-95 "$i"
done