From: Rudolf Polzer Date: Wed, 21 Jul 2010 11:35:20 +0000 (+0200) Subject: shader_audit: allow textures/map_*/* X-Git-Tag: xonotic-v0.1.0preview~141^2~15 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f9bf9ea6ff5a2e630478114bdfd3aa44bc6a3a8d;p=xonotic%2Fxonotic-maps.pk3dir.git shader_audit: allow textures/map_*/* --- 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" ;;