File: enable_setting_stadenroot.patch

package info (click to toggle)
staden 2.0.0%2Bb11-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,584 kB
  • sloc: ansic: 240,605; tcl: 65,360; cpp: 12,854; makefile: 11,203; sh: 3,023; fortran: 2,033; perl: 63; awk: 46
file content (174 lines) | stat: -rw-r--r-- 5,441 bytes parent folder | download
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
Author: Andreas Tille <tille@debian.org>
Last-Update: 2014-04-21
Description: Make sure the main scripts will find the staden.profile
 file when installed to the location where the wrapper will seek for
 the scripts

--- a/gap5/gap5.in
+++ b/gap5/gap5.in
@@ -67,7 +67,10 @@ find_dir() {
     echo $dir
 }
 
-STADENROOT=`find_dir $0`/..;                  export STADENROOT
+STADENROOT=${STADENROOT:-`find_dir $0`/..};   export STADENROOT
+if [ ! -f "$STADENROOT"/share/staden/staden.profile ] ; then
+    STADENROOT=/usr
+fi
 STADEN_PREPEND=1;                             export STADEN_PREPEND
 . "$STADENROOT"/share/staden/staden.profile
 
--- a/gap4/gap4.in
+++ b/gap4/gap4.in
@@ -67,7 +67,10 @@ find_dir() {
     echo $dir
 }
 
-STADENROOT=`find_dir $0`/..;            export STADENROOT
+STADENROOT=${STADENROOT:-`find_dir $0`/..};   export STADENROOT
+if [ ! -f "$STADENROOT"/share/staden/staden.profile ] ; then
+    STADENROOT=/usr
+fi
 STADEN_PREPEND=1;                       export STADEN_PREPEND
 . "$STADENROOT"/share/staden/staden.profile
 
--- a/pregap4/pregap4.in
+++ b/pregap4/pregap4.in
@@ -67,7 +67,10 @@ find_dir() {
     echo $dir
 }
 
-STADENROOT=`find_dir $0`/..;            export STADENROOT
+STADENROOT=${STADENROOT:-`find_dir $0`/..};   export STADENROOT
+if [ ! -f "$STADENROOT"/share/staden/staden.profile ] ; then
+    STADENROOT=/usr
+fi
 STADEN_PREPEND=1;                       export STADEN_PREPEND
 . "$STADENROOT"/share/staden/staden.profile
 
--- a/spin/spin.in
+++ b/spin/spin.in
@@ -67,7 +67,10 @@ find_dir() {
     echo $dir
 }
 
-STADENROOT=`find_dir $0`/..;            export STADENROOT
+STADENROOT=${STADENROOT:-`find_dir $0`/..};   export STADENROOT
+if [ ! -f "$STADENROOT"/share/staden/staden.profile ] ; then
+    STADENROOT=/usr
+fi
 STADEN_PREPEND=1;                       export STADEN_PREPEND
 . "$STADENROOT"/share/staden/staden.profile
 
--- a/trev/trev.in
+++ b/trev/trev.in
@@ -70,7 +70,10 @@ find_dir() {
 #
 # Run it!
 #
-STADENROOT=`find_dir $0`/..;            export STADENROOT
+STADENROOT=${STADENROOT:-`find_dir $0`/..};   export STADENROOT
+if [ ! -f "$STADENROOT"/share/staden/staden.profile ] ; then
+    STADENROOT=/usr
+fi
 STADEN_PREPEND=1;                       export STADEN_PREPEND
 . "$STADENROOT"/share/staden/staden.profile
 
--- a/gap5/gap5_cmd.in
+++ b/gap5/gap5_cmd.in
@@ -67,7 +67,10 @@ find_dir() {
     echo $dir
 }
 
-STADENROOT=`find_dir $0`/..;                  export STADENROOT
+STADENROOT=${STADENROOT:-`find_dir $0`/..};   export STADENROOT
+if [ ! -f "$STADENROOT"/share/staden/staden.profile ] ; then
+    STADENROOT=/usr
+fi
 STADEN_PREPEND=1;                             export STADEN_PREPEND
 . "$STADENROOT"/share/staden/staden.profile
 
--- a/gap5/tg_index.in
+++ b/gap5/tg_index.in
@@ -67,7 +67,10 @@ find_dir() {
     echo $dir
 }
 
-STADENROOT=`find_dir $0`/..;                  export STADENROOT
+STADENROOT=${STADENROOT:-`find_dir $0`/..};   export STADENROOT
+if [ ! -f "$STADENROOT"/share/staden/staden.profile ] ; then
+    STADENROOT=/usr
+fi
 STADEN_PREPEND=1;                             export STADEN_PREPEND
 . "$STADENROOT"/share/staden/staden.profile
 
--- a/gap5/tg_view.in
+++ b/gap5/tg_view.in
@@ -67,7 +67,10 @@ find_dir() {
     echo $dir
 }
 
-STADENROOT=`find_dir $0`/..;                  export STADENROOT
+STADENROOT=${STADENROOT:-`find_dir $0`/..};   export STADENROOT
+if [ ! -f "$STADENROOT"/share/staden/staden.profile ] ; then
+    STADENROOT=/usr
+fi
 STADEN_PREPEND=1;                             export STADEN_PREPEND
 . "$STADENROOT"/share/staden/staden.profile
 
--- a/prefinish/finish_sanger
+++ b/prefinish/finish_sanger
@@ -70,7 +70,10 @@ find_dir() {
 #
 # Run it!
 #
-STADENROOT=`find_dir $0`/..;            export STADENROOT
+STADENROOT=${STADENROOT:-`find_dir $0`/..};   export STADENROOT
+if [ ! -f "$STADENROOT"/share/staden/staden.profile ] ; then
+    STADENROOT=/usr
+fi
 STADLIB=$STADENROOT/lib/staden/;        export STADLIB
 STADTABL=$STADENROOT/share/staden/etc;  export STADTABL
 STADTCL=$STADENROOT/share/staden/tcl;   export STADTCL
--- a/prefinish/prefinish.in
+++ b/prefinish/prefinish.in
@@ -70,7 +70,10 @@ find_dir() {
 #
 # Run it!
 #
-STADENROOT=`find_dir $0`/..;            export STADENROOT
+STADENROOT=${STADENROOT:-`find_dir $0`/..};   export STADENROOT
+if [ ! -f "$STADENROOT"/share/staden/staden.profile ] ; then
+    STADENROOT=/usr
+fi
 STADEN_PREPEND=1;                       export STADEN_PREPEND
 . "$STADENROOT"/share/staden/staden.profile
 
--- a/copy_reads/copy_reads.in
+++ b/copy_reads/copy_reads.in
@@ -67,7 +67,10 @@ find_dir() {
     echo $dir
 }
 
-STADENROOT=`find_dir $0`/..;            export STADENROOT
+STADENROOT=${STADENROOT:-`find_dir $0`/..};   export STADENROOT
+if [ ! -f "$STADENROOT"/share/staden/staden.profile ] ; then
+    STADENROOT=/usr
+fi
 STADEN_PREPEND=1;                       export STADEN_PREPEND
 . "$STADENROOT"/share/staden/staden.profile
 
--- a/spin_emboss/create_emboss_files
+++ b/spin_emboss/create_emboss_files
@@ -70,7 +70,10 @@ find_dir() {
 #
 # Run it!
 #
-STADENROOT=`find_dir $0`/..;            export STADENROOT
+STADENROOT=${STADENROOT:-`find_dir $0`/..};   export STADENROOT
+if [ ! -f "$STADENROOT"/share/staden/staden.profile ] ; then
+    STADENROOT=/usr
+fi
 STADLIB=$STADENROOT/lib/staden/;        export STADLIB
 STADTABL=$STADENROOT/share/staden/etc;  export STADTABL
 STADTCL=$STADENROOT/share/staden/tcl;   export STADTCL