From: Rudolf Polzer Date: Mon, 26 Jul 2010 15:05:44 +0000 (+0200) Subject: shader audit: ignore .xcf, allow _suffix for effect textures X-Git-Tag: xonotic-v0.1.0preview~141^2~7^2~10 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=21c37824da142f50fbf1bb42d76a6547e753bb55;p=xonotic%2Fxonotic-maps.pk3dir.git shader audit: ignore .xcf, allow _suffix for effect textures --- diff --git a/scripts/shader-audit.sh b/scripts/shader-audit.sh index 96f93dda..540d01df 100644 --- a/scripts/shader-audit.sh +++ b/scripts/shader-audit.sh @@ -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