X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=misc%2Ftools%2Fxonotic-map-compiler-autobuild;h=91626deaf0969682dab02b79efa36592ad7df49d;hp=e268a512aac4729a4631b1417983863af6283fe6;hb=bf89bb301252617cf6dd6520b9bd92348074276a;hpb=fc0d552e9021e297c3aadf18be09494deaa39afa diff --git a/misc/tools/xonotic-map-compiler-autobuild b/misc/tools/xonotic-map-compiler-autobuild index e268a512..91626dea 100755 --- a/misc/tools/xonotic-map-compiler-autobuild +++ b/misc/tools/xonotic-map-compiler-autobuild @@ -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 -*) ;;