From: Rudolf Polzer Date: Tue, 5 Oct 2010 12:38:20 +0000 (+0200) Subject: fix index building X-Git-Tag: xonotic-v0.1.0preview~141 X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=bf89bb301252617cf6dd6520b9bd92348074276a fix index building --- 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 -*) ;;