#!/bin/tcsh # either include the names of the gifti files on the command line, # or be sitting in the directory with them set narg = $#argv set arg0 = 1 set prog = gifti_tool # was gifti_test set check = "" if ( $narg > 0 ) then if ( "$argv[1]" == "-none" ) then set check = "-b64_check NONE" @ narg -= 1 @ arg0 += 1 endif endif echo using `which $prog` ... if ( $narg > 1 ) then set files = ( $argv[$arg0-] ) else set files = ( gifti.*.gii ) endif echo "" foreach file ( $files ) echo "---------------- $file ----------------" /usr/bin/time $prog $check -infile $file if( $status ) echo "****** FAILURE ********" end