From: Rudolf Polzer Date: Fri, 17 Dec 2010 10:37:32 +0000 (+0100) Subject: fix a bug in the compressor script X-Git-Tag: xonotic-v0.1.0preview~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c9b451c5bca0275c49d98acaf471d83715c9ca9e;p=xonotic%2Fxonotic.git fix a bug in the compressor script --- diff --git a/misc/tools/compress-texture b/misc/tools/compress-texture index 1c488b09..a9d9ae28 100755 --- a/misc/tools/compress-texture +++ b/misc/tools/compress-texture @@ -10,6 +10,8 @@ format=$1; shift src=$1; shift dst=$1; shift +ext=${src##*.} + c= f= @@ -63,7 +65,6 @@ case "$tool" in esac dir=`mktemp -d "$HOME/.wine/drive_c/compressonator.XXXXXX"` dir_dos="C:/${dir##*/}" - ext=${src##*.} cp "$src" "$dir/src.$ext" # compressonator and wine suck, so we sometimes have to retry :(