X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=spri.sh;h=d0a4618bd43c911749bbe0861508f52f4bc131a7;hb=26536b16d4825df06a4e73380985afb3a0bfb7e4;hp=4427c0248db6fa02f63a0138212ecd4bc1c1656a;hpb=cc007b37128ec162cad22a0ff5cca85733905740;p=16.git diff --git a/spri.sh b/spri.sh index 4427c024..d0a4618b 100755 --- a/spri.sh +++ b/spri.sh @@ -1,5 +1,17 @@ #! /bin/bash -./pcxsscut -s data/spri/"$1".sht -hc "$1".h -hp _"$1"_ -i data/"$1".pcx -p data/spri/"$1".pal -tc 0x"$2" -y -./vrl2vrs -s data/spri/"$1".sht -hc "$1"s.h -hp _"$1"_ -o data/spri/"$1".vrs -# . ./pcxsscut "$pee" -# . ./vrl2vrs "$pee" +cd data/spri +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!" +fi +if [ -f "$1".vrl ] && [ -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 "$1".vrl created +# echo check if "$1".sht exist! +# echo "3rd condition ok!" +fi +cd ../../