#!/bin/csh if ( $#argv == 0 || x"$1" == "x-h" ) then cat - <& /dev/null set doit=1 if ( $?skiperror ) then if ( -e error ) then set doit=0 endif endif if ( $?toskip ) then if ( -e $toskip ) then set doit=0; endif endif if ( $?toadd ) then if ( ! -e $toadd ) then set doit=0; endif endif if ( $doit ) then csh -f -c "$argv[2-]" endif popd >& /dev/null end