From 6470645bcaf6f7056ed88ea8762ed63a13bf8cb0 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 7 Mar 2012 15:51:03 +0100 Subject: [PATCH] add a nice recompression script --- release-augenkrebs.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 release-augenkrebs.sh 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" . -- 2.39.2