#!/bin/csh

foreach f ($*)
set of = `echo $f | sed "s/png/gif/g"`
echo $f $of
pngtopnm $f | ppmtogif > $of
end

exit 0
