allow models/*
authorRudolf Polzer <divverent@alientrap.org>
Thu, 22 Jul 2010 13:30:24 +0000 (15:30 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 22 Jul 2010 13:30:24 +0000 (15:30 +0200)
scripts/shader-audit.sh

index 13256f7daa1feacbb41d8b1096e705d62b8cd1ea..dd371ac0099d80ad8027339e2403ef5f6fa9a6ca 100644 (file)
@@ -128,6 +128,15 @@ use_texture()
                                        ;;
                        esac
                        ;;
+               models/*)
+                       case "$2" in
+                               models/*)
+                                       ;;
+                               *)
+                                       echo "(EE) texture $2 of shader $1 is out of place, recommended file name is $1 or models/*"
+                                       ;;
+                       esac
+                       ;;
                *)
                        echo "(EE) no shader name pattern for $1"
                        ;;
@@ -200,7 +209,7 @@ parse_shaderfile()
        esac
        while read L; do
                case "$L" in
-                       textures/*)
+                       */*)
                                parsing_shader="`normalize "$L"`"
                                if [ x"$L" != x"$parsing_shader" ]; then
                                        echo "(WW) normalized shader name $L to $parsing_shader"