summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/fsl/fsl_sub_v5.patch
blob: 561800962afc5c4bd71a8213dff1dcd839c7adeb (plain) (blame)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
--- a/src/sgeutils/fsl_sub	2017-04-24 05:19:14.000000000 -0500
+++ b/src/sgeutils/fsl_sub	2020-11-15 17:42:28.100657607 -0600
@@ -80,7 +80,7 @@
 # "NONE". Note that a user can unset SGE_ROOT if they don't want the
 # cluster to be used.
 ###########################################################################
-METHOD=SGE
+METHOD=NONE
 unset module
 if [ "x$SGE_ROOT" = "x" ] ; then
 	METHOD=NONE
@@ -141,7 +141,9 @@
 
 usage ()
 {
-  cat <<EOF
+  case $METHOD in
+    SGE)
+      cat <<EOF
 
 $command V1.1 - wrapper for job control system such as SGE
 
@@ -186,7 +188,23 @@
 bigmem.q:   This queue is like the verylong.q but has no memory limits.
 
 EOF
+      ;;
+    NONE)
+      cat <<EOF
 
+$command V1.1 - wrapper for job control system such as SGE
+
+Usage: $command [options] <command>
+
+$command gzip *.img *.hdr
+
+  -t <filename>         Specify a task file of commands to execute in parallel
+  -l <logdirname>       Where to output logfiles
+  -v                    Verbose mode.
+
+EOF
+      ;;
+  esac
   exit 1
 }
 
@@ -195,8 +213,17 @@
   usage
 fi
 
-set -- `getopt T:q:a:p:M:j:t:z:N:R:Fvm:l:s: $*`
-result=$?
+case $METHOD in
+  SGE)
+    set -- `getopt T:q:a:p:M:j:t:z:N:R:Fvm:l:s: $*`
+    result=$?
+    ;;
+  NONE)
+    set -- `getopt t:vl: $*`
+    result=$?
+    ;;
+esac
+
 if [ $result != 0 ] ; then
   echo "What? Your arguments make no sense!"
 fi