Subversion Repositories wimsdev

Rev

Rev 14 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
14 reyssat 1
#! /bin/sh
2
 
3
if [ -z "$wims_exec_parm" ]; then exit; fi
4
 
5
for i in $wims_exec_parm
6
do
7
 base=$s2_dir/insert$w_wims_inssub-$i
8
 ss=`ls $base.gif $base.jpg $base.jpeg $base.png $base.pbm 2>/dev/null`
9
 source="$source $ss"
10
done
11
source2=`echo "$source" | sed "s!$s2_dir/!$tmp_dir/!g"`
12
 
13
if [ -z "$w_animate_delay" ]; then w_animate_delay=40; fi
14
delay=$(( $w_animate_delay ))
15
if [ -z "$w_animate_loop" ]; then w_animate_loop=0; fi
16
loop=$(( $w_animate_loop ))
17
date=`date '+%H%M%S'`
18
 
19
rm -f $s2_dir/animate.gif 2>/dev/null
20
cp -f $source $tmp_dir 2>/dev/null
21
bin/ch..root convert -delay $delay -loop $loop $source2 $tmp_dir/animate.gif
22
mv -f $tmp_dir/animate.gif $s2_dir 2>/dev/null
1157 bpr 23
echo "wims.cgi?cmd=getins&+session=$w_session&+special_parm=animate.gif&+modif=$date"
14 reyssat 24