#! /bin/csh -f # Last edited on 2001-05-14 01:00:13 by stolfi set usage = "$0 RA..." # Re-generates the movies for MP004 animated homework hand-ins. # Arguments are RA numbers of students to process. # For each student, expecs to find the file # ${ra}/main.pov - the student's orignal main POV-ray file. # (Re)generates the files # ${ra}/movie.gif - Animated gif hand-in (rebuilt to standard size) # ${ra}/frame-0.5.gif - Sample frame (rebuilt to standard size) if ( $#argv < 1 ) then echo "usage: ${usage}"; exit 1 endif set ras = ( $* ) set path = ( . /n/image/bin/ $path ) set ofile = "index.html" set stillfile = "frame-0.5.gif" set moviefile = "movie.gif" set povfile = "main.pov" set iconfile = "icon.gif" foreach ra ( ${ras} ) # Ckeck if the POV-ray source exists. # If so, re-build the movie and the still image if ( -r ${ra}/${povfile} ) then echo "=== (re)building ${moviefile} in ${ra} ====================" ( cd ${ra} && make movie still ; echo " " ) echo "=== done rebuilding ${ra} ==============================" else echo "${ra}/main.pov does not exist" endif end