Subversion Repositories lagranto.ecmwf

Rev

Rev 3 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3 Rev 5
Line 23... Line 23...
23
end
23
end
24
 
24
 
25
set str=`echo $str | sed -e "s/,//g"`  
25
set str=`echo $str | sed -e "s/,//g"`  
26
set str=`echo $str | sed -e "s/\///g"`  
26
set str=`echo $str | sed -e "s/\///g"`  
27
 
27
 
28
# Check the mode is valid
28
# Check that the mode is valid
29
if ( "${mode}" == "-var"      )  goto next
29
if ( "${mode}" == "-var"      )  goto next
30
if ( "${mode}" == "-time"     )  goto next
30
if ( "${mode}" == "-time"     )  goto next
31
if ( "${mode}" == "-tra"      )  goto next
31
if ( "${mode}" == "-tra"      )  goto next
32
if ( "${mode}" == "-startf"   )  goto next
32
if ( "${mode}" == "-startf"   )  goto next
33
if ( "${mode}" == "-index"    )  goto next
33
if ( "${mode}" == "-index"    )  goto next
34
if ( "${mode}" == "-boolean"  )  goto next
34
if ( "${mode}" == "-boolean"  )  goto next
35
if ( "${mode}" == "-pattern"  )  goto next
35
if ( "${mode}" == "-pattern"  )  goto next
-
 
36
if ( "${mode}" == "-leaving"  )  goto next
-
 
37
if ( "${mode}" == "-staying"  )  goto next
36
 
38
 
37
echo " Invalid mode ${mode}..."
39
echo " Invalid mode ${mode}..."
38
exit 1
40
exit 1
39
 
41
 
40
next:
42
next: