X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=spri.sh;h=172cc06e897d345c0f0ddb16cda85f7ccbbad660;hb=e0b1c7a7632d9dc537ccb2c42f34275c66a9db34;hp=1b2407fe0f883d3a79caa5497560e374ba6b21ce;hpb=cc8da95915a16702632c6c79c5bc3151ec62755e;p=16.git diff --git a/spri.sh b/spri.sh index 1b2407fe..172cc06e 100755 --- a/spri.sh +++ b/spri.sh @@ -1,4 +1,16 @@ #! /bin/bash - -./pcxsscut -s data/spri/"$*".sht -hc "$1".h -hp _"$1"_ -i data/"$1".pcx -p data/spri/"$1".pal -tc 0x0 -y -./vrl2vrs -s data/spri/"$*".sht -hc "$1"s.h -hp _"$1"_ -o data/spri/"$1".vrs +cd data/spri +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 ../../