]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/autoshader.sh
add a dash in front of MAKEFLAGS with single letter options
[xonotic/xonotic.git] / misc / tools / autoshader.sh
index 0c6c4f0389c2619adcd24e223c543c9d83f382f9..dfc4f5a8adb0b9bf79562e5e92aa8d642f27bb7f 100755 (executable)
@@ -147,7 +147,7 @@ has_shader()
 
 has_alpha()
 {
-       [ -f "${1%.jpg}_alpha.jpg" ] || convert "$1" -depth 8 RGBA:- | xxd -c 4 -g 1 | grep -v " ff  " >/dev/null
+       [ -f "${1%.jpg}_alpha.jpg" ] || convert "$1" -auto-orient -depth 8 RGBA:- | xxd -c 4 -g 1 | grep -v " ff  " >/dev/null
 }
 
 autoshaders()