X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=spri.sh;h=bdff2260133d2e3be7b49d848533d35a54f590ad;hb=c11666ac6f605f561e9c6c6f2bba3bccea4a7b18;hp=1b2407fe0f883d3a79caa5497560e374ba6b21ce;hpb=cc8da95915a16702632c6c79c5bc3151ec62755e;p=16.git diff --git a/spri.sh b/spri.sh index 1b2407fe..bdff2260 100755 --- a/spri.sh +++ b/spri.sh @@ -1,4 +1,12 @@ #! /bin/bash +cd data/spri +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 ../../ -./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