]> 4ch.mooo.com Git - 16.git/blobdiff - spri.sh
== taking break still not working ==
[16.git] / spri.sh
diff --git a/spri.sh b/spri.sh
index aec65420fd596826fe365c3910c094f0e8e97ea9..172cc06e897d345c0f0ddb16cda85f7ccbbad660 100755 (executable)
--- a/spri.sh
+++ b/spri.sh
@@ -1,6 +1,16 @@
 #! /bin/bash
 cd data/spri
-#../../pcx2vrl -i ../"$1".pcx -o "$1".vrl -p "$1".pal -tc 0x"$2"
-../../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".vrs ]; then
+       ../../vrl2vrs -s "$1".sht -o "$1".vrs -hc "$1".h -hp _"$1"_
+       echo "$1".vrs created
+#      echo "1st condition ok!"
+fi
+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 "2nd condition ok!"
+else
+       ../../pcx2vrl -i ../"$1".pcx -o "$1".vrl -p "$1".pal -tc 0x"$2"
+       echo check if "$1".sht exist!
+#      echo "3rd condition ok!"
+fi
 cd ../../