]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
instead, exclude background_l2 from that hashing stuff xonotic-v0.1.0preview
authorRudolf Polzer <divverent@alientrap.org>
Wed, 22 Dec 2010 22:34:08 +0000 (23:34 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 22 Dec 2010 22:34:08 +0000 (23:34 +0100)
misc/tools/cached-converter.sh

index 517ad9822755f61a7e98513dfa9d74d4aa4bb448..06433d0856783deb4e1863eb87063e21d84fef8b 100755 (executable)
@@ -49,7 +49,15 @@ cached()
        if [ x"$infile1/../$infile2" = x"$lastinfiles" ]; then
                sum=$lastinfileshash
        else
-               if [ -n "$git_src_repo" ]; then
+               evil=false
+               for infile in "$infile1" "$infile2"; do
+                       case "$infile" in
+                               */background_l2.tga)
+                                       evil=true
+                                       ;;
+                       esac
+               done
+               if [ -n "$git_src_repo" ] && ! $evil; then
                        sum=`( cd "$git_src_repo"; git rev-parse --revs-only HEAD:"${infile1#./}" | grep . ) || git hash-object "$infile1"`
                        if [ -n "$infile2" ]; then
                                sum=$sum`( cd "$git_src_repo"; git rev-parse --revs-only HEAD:"${infile2#./}" | grep . ) || git hash-object "$infile2"`