]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
fix index building
authorRudolf Polzer <divverent@alientrap.org>
Tue, 5 Oct 2010 12:38:20 +0000 (14:38 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 5 Oct 2010 12:38:20 +0000 (14:38 +0200)
misc/tools/xonotic-map-compiler-autobuild

index e268a512aac4729a4631b1417983863af6283fe6..91626deaf0969682dab02b79efa36592ad7df49d 100755 (executable)
@@ -16,10 +16,16 @@ allmaps()
 {
        commithash=$1
        shift
-       for F in `git ls-files "$commithash" -- maps/\*.map.options`; do
-               M=${F#maps/}
-               M=${M%.map.options}
-               blobhash=`git rev-parse --revs-only "$commithash:maps/$M.map.options" || true`-`git rev-parse --revs-only "$commithash:maps/$M.map" || true`
+       for F in `git show "${commithash}:maps/"`; do
+               case "$F" in
+                       *.map.options)
+                               ;;
+                       *)
+                               continue
+                               ;;
+               esac
+               M=${F%.map.options}
+               blobhash=`git rev-parse --revs-only "${commithash}:maps/$M.map.options" || true`-`git rev-parse --revs-only "${commithash}:maps/$M.map" || true`
                case "$blobhash" in
                        -*)
                                ;;