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: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bf89bb301252617cf6dd6520b9bd92348074276a;p=xonotic%2Fxonotic.git 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 -*) ;;