File: gifti.get.times

package info (click to toggle)
gifticlib 1.0.9-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 508 kB
  • sloc: ansic: 8,014; csh: 81; makefile: 39
file content (34 lines) | stat: -rwxr-xr-x 682 bytes parent folder | download | duplicates (11)
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