From f9bf9ea6ff5a2e630478114bdfd3aa44bc6a3a8d Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 21 Jul 2010 13:35:20 +0200 Subject: [PATCH] shader_audit: allow textures/map_*/* --- scripts/shader-audit.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/shader-audit.sh b/scripts/shader-audit.sh index 9b5d9d94..f0f95b50 100644 --- a/scripts/shader-audit.sh +++ b/scripts/shader-audit.sh @@ -55,6 +55,17 @@ use_texture() ;; esac ;; + textures/map_*/*) + pre=${1%%/map_*} + suf=${1#*/map_} + case "$2" in + "$pre"/map/*) + ;; + *) + echo "(EE) texture $2 of shader $1 is out of place, recommended file name is $pre/map_$suf" + ;; + esac + ;; textures/common/*) case "$2" in "$1") @@ -168,6 +179,8 @@ echo "$textures_used$LF$textures_used$LF$textures_avail" | sort | uniq -u | whil case "$L" in textures/radiant/*) ;; + textures/map_*/*) + ;; *) echo "(EE) texture $L is not referenced by any shader" ;; -- 2.39.2