palpic2png.c: improve, make usable with ppic binary files
[rofl0r-openDOW.git] / utils / combine.sh
blob4cc6fbf41120ddcd7f6428b55e3ab9fa6475cbbc
1 #!/bin/sh
2 # ./combine.sh 0 12 grenade_explosion grenade_explosion_b grenade_explosion_combined
3 # will combine grenade_explosion00.png with grenade_explosion_b00.png to grenade_explosion_combined00.png
4 # and so on for 0 - 12
6 myexec() {
7 echo $@
8 $@
11 DIR=$(dirname "$(readlink -f "$0")")
12 from=$1
13 to=$2
14 filenamea=$3
15 filenameb=$4
16 filenameout=$5
18 for i in $(seq $from $to) ; do
19 j=$(printf "%.2d" $i)
20 myexec $DIR/imgcombine.out $filenamea$j.png $filenameb$j.png $filenameout$j.png
21 done