From 072e6e21ae060090a0b76d63fa1f94b0aac4689f Mon Sep 17 00:00:00 2001 From: div0 Date: Sat, 14 Nov 2009 22:25:17 +0000 Subject: [PATCH] has_alpha function in autoshader.sh: also detect foo_alpha.jpg files git-svn-id: svn://svn.icculus.org/nexuiz/trunk@8281 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- misc/tools/autoshader.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/tools/autoshader.sh b/misc/tools/autoshader.sh index e0ca90f47..0c6c4f038 100755 --- a/misc/tools/autoshader.sh +++ b/misc/tools/autoshader.sh @@ -147,7 +147,7 @@ has_shader() has_alpha() { - convert "$1" -depth 8 RGBA:- | xxd -c 4 -g 1 | grep -v " ff " >/dev/null + [ -f "${1%.jpg}_alpha.jpg" ] || convert "$1" -depth 8 RGBA:- | xxd -c 4 -g 1 | grep -v " ff " >/dev/null } autoshaders() -- 2.39.2