home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet 1996 World Exposition
/
park.org.s3.amazonaws.com.7z
/
park.org.s3.amazonaws.com
/
cgi-bin
/
Japan
/
Theme
/
bearth
/
bin
/
make-animation
< prev
next >
Wrap
Text File
|
2017-09-21
|
811b
|
35 lines
#!/bin/sh
PROJDIR=/stage/htdocs/cgi-bin/Japan/Theme/bearth
TOOLDIR=$PROJDIR/bin
DESC2POV=$TOOLDIR/desc2pov
POVRAY=$TOOLDIR/povray
PPMQUANT=$TOOLDIR/ppmquant
PPMTOGIF=$TOOLDIR/ppmtogif
GIFMERGE=$TOOLDIR/gifmerge
RECORD_SPAN=$TOOLDIR/record-span
DERAY=10
USAGE='usage: make-animation gif-directory anmation-file-basename'
if [ $# != 2 ]
then
echo $USAGE
exit 2
fi
GIFDIR=$1
ANIMATION_FILE=$2
$GIFMERGE -$DERAY -l0 `ls $GIFDIR/????????-?-a.gif | tail -28` > $ANIMATION_FILE-a.gif
$GIFMERGE -$DERAY -l0 `ls $GIFDIR/????????-?-b.gif | tail -28` > $ANIMATION_FILE-b.gif
$GIFMERGE -$DERAY -l0 `ls $GIFDIR/????????-?-c.gif | tail -28` > $ANIMATION_FILE-c.gif
$GIFMERGE -$DERAY -l0 `ls $GIFDIR/????????-?-d.gif | tail -28` > $ANIMATION_FILE-d.gif
$RECORD_SPAN $GIFDIR > $ANIMATION_FILE-span.txt
exit 0