]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
fix a bug in the compressor script
authorRudolf Polzer <divVerent@xonotic.org>
Fri, 17 Dec 2010 10:37:32 +0000 (11:37 +0100)
committerRudolf Polzer <divVerent@xonotic.org>
Fri, 17 Dec 2010 10:37:32 +0000 (11:37 +0100)
misc/tools/compress-texture

index 1c488b09503ec7603a2fd7bb6fecdda6ee156608..a9d9ae28878718547aa1919422b8c01c1e38a0a4 100755 (executable)
@@ -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 :(