From: Rudolf Polzer Date: Wed, 7 Mar 2012 14:51:03 +0000 (+0100) Subject: add a nice recompression script X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6470645bcaf6f7056ed88ea8762ed63a13bf8cb0;p=xonotic%2Fxonotic-maps.pk3dir.git add a nice recompression script --- diff --git a/release-augenkrebs.sh b/release-augenkrebs.sh new file mode 100755 index 00000000..97b63779 --- /dev/null +++ b/release-augenkrebs.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +# make smaller +find . -not -name moiretex.\* \ + \( -name \*.png -o -name \*.tga \) \ + -exec mogrify -format jpg -quality 99 {} \; \ + -exec rm -f {} \; +find . -name \*.jpg \ + -exec jpegoptim -m75 {} \; +find . \( -name \*.txt -o -name \*.svg -o -name \*.xcf -o -name \*.html \) \ + -exec rm -f {} \; +find . -name \*.ogg \ + -not -name gpl.ogg \ + -exec oggdec -o {}.wav {} \; \ + -exec oggenc -q-1 -o {} {}.wav \; \ + -exec rm -f {}.wav \; + +# build pk3 +7za a -tzip -mx=9 "$1" .