1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
#!/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
|