From 21c37824da142f50fbf1bb42d76a6547e753bb55 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 26 Jul 2010 17:05:44 +0200 Subject: [PATCH] shader audit: ignore .xcf, allow _suffix for effect textures --- scripts/shader-audit.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.2