]> 4ch.mooo.com Git - 16.git/blobdiff - spri.sh
fix bizarre near/far sprintf problem when gv->pee not initialized by just replacing the
[16.git] / spri.sh
diff --git a/spri.sh b/spri.sh
index f34463404cb3f89b3e5b280989e4f00978b9db1e..bdff2260133d2e3be7b49d848533d35a54f590ad 100755 (executable)
--- a/spri.sh
+++ b/spri.sh
@@ -1,5 +1,12 @@
 #! /bin/bash
 cd data/spri
-../../pcxsscut -s "$1".sht -hc "$1".h -hp _"$1"_ -i ../"$1".pcx -p "$1".pal -tc 0x"$2" -y
-../../vrl2vrs -s "$1".sht -hc "$1"s.h -hp _"$1"_ -o "$1".vrs
+if [ -f "$1".sht ]; then
+       ../../pcxsscut -s "$1".sht -hc "$1".h -hp _"$1"_ -i ../"$1".pcx -p "$1".pal -tc 0x"$2" -y
+       #echo "1st condition ok!"
+else
+       ../../pcx2vrl -i ../"$1".pcx -o "$1".vrl -p "$1".pal -tc 0x"$2"
+       #echo "2nd condition ok!"
+       echo check if "$1".sht exist!
+fi
 cd ../../
+