]> git.rm.cloudns.org Git - xonotic/xonotic-maps.pk3dir.git/commitdiff
shader audit: ignore .xcf, allow _suffix for effect textures
authorRudolf Polzer <divverent@alientrap.org>
Mon, 26 Jul 2010 15:05:44 +0000 (17:05 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 26 Jul 2010 15:05:44 +0000 (17:05 +0200)
scripts/shader-audit.sh

index 96f93dda091deac2189da57cd6938196442cd12e..540d01dfdbabc63ee96840c5ef9820a1076150df 100644 (file)
@@ -126,8 +126,9 @@ use_texture()
                        esac
                        ;;
                textures/decals/*|textures/liquids/water/*|textures/liquids/slime/*|textures/liquids/lava/*|textures/warpzone/*)
+                       prefix=${1%%_*}
                        case "$2" in
-                               "$1")
+                               "$prefix"_*|"$prefix")
                                        # I _suppose_ this is fine, as tZork committed this pack
                                        ;;
                                *)
@@ -261,7 +262,7 @@ for X in *.shader; do
 done
 rm -f "$t"
 
-textures_avail=`( cd ..; find textures/ -type f -not -name '*_norm.*' -not -name '*_glow.*' -not -name '*_gloss.*' ) | while IFS= read -r T; do normalize "$T"; done | sort -u`
+textures_avail=`( cd ..; find textures/ -type f -not -name '*_norm.*' -not -name '*_glow.*' -not -name '*_gloss.*' -not -name '*.xcf' ) | while IFS= read -r T; do normalize "$T"; done | sort -u`
 textures_used=`echo "${textures_used#$LF}" | sort -u`
 
 echo "$textures_used$LF$textures_used$LF$textures_avail" | sort | uniq -u | while IFS= read -r L; do