X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=spri.sh;h=4fea5d0283bc566323f9b775ff6c8e5e05b01e2e;hb=3e25a76b03a0d9e84ea689517af7fd681d26e96e;hp=172cc06e897d345c0f0ddb16cda85f7ccbbad660;hpb=0af34abfbdfa70d51cf117fbb48e02915ab05ae0;p=16.git diff --git a/spri.sh b/spri.sh index 172cc06e..4fea5d02 100755 --- a/spri.sh +++ b/spri.sh @@ -1,16 +1,17 @@ #! /bin/bash cd data/spri -if [ ! -f "$1".vrs ]; then +if [ ! -f "$1".vrs ] && [ -f "$1".vrl ] && [ -f "$1".sht ]; then ../../vrl2vrs -s "$1".sht -o "$1".vrs -hc "$1".h -hp _"$1"_ echo "$1".vrs created -# echo "1st condition ok!" +# 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 "$1".vrl created +# echo check if "$1".sht exist! # echo "3rd condition ok!" fi cd ../../