Package: ncl / 6.3.0-13

tty.patch Patch series | 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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
Author: Alastair McKinstry <mckinstry@debian.org>
Description: Avoid using /dev/tty
 Don't output to /dev/tty; breaks on FreeBSD
Last-Updated: 2014-01-03
Forwarded: no

Index: ncl-6.1.2/config/ymake
===================================================================
--- ncl-6.1.2.orig/config/ymake	2014-01-03 11:42:39.000000000 +0000
+++ ncl-6.1.2/config/ymake	2014-01-03 18:44:19.000000000 +0000
@@ -50,7 +50,7 @@
                 if ($#argv) then
                         set config_dir = "$argv[1]"
                         if (! -d $config_dir) then
-                                echo "$0 : Unable to open NCARG_CONFIG dir : $config_dir" > /dev/tty
+                                echo "$0 : Unable to open NCARG_CONFIG dir : $config_dir"
                                 exit 1
                         endif
                                 
@@ -85,7 +85,7 @@
                 if ($#argv) then
                         set top_dir = "$argv[1]"
                         if (! -d $top_dir) then
-                                echo "$0 : Unable to open Topdir : $top_dir" > /dev/tty
+                                echo "$0 : Unable to open Topdir : $top_dir" 
                                 exit 1
                         endif
 
@@ -126,7 +126,7 @@
                 set defines = ($defines -D_YmakeArg5=$arg)
                 breaksw
         default:
-                echo "$0 :Too Many args - ignoring $arg" > /dev/tty
+                echo "$0 :Too Many args - ignoring $arg" 
                 breaksw
         endsw
 end
@@ -148,53 +148,53 @@
 if ($useinstalled != 0) then
         set config_dir = `ncargpath config`
         if ($status != 0) then
-                echo "$0 : Unable to find NCARG_CONFIG dir" > /dev/tty
+                echo "$0 : Unable to find NCARG_CONFIG dir" 
                 exit 1
         endif
         if (! -d $config_dir) then
-                echo "$0 : Unable to open NCARG_CONFIG dir : $config_dir" > /dev/tty
+                echo "$0 : Unable to open NCARG_CONFIG dir : $config_dir" 
                 exit 1
         endif
         set defines = (-I$config_dir -DUseInstalled $defines)
 
         set root_dir = `ncargpath root`
         if ($status != 0) then
-                echo "$0 : Unable to find NCARG_ROOT dir" > /dev/tty
+                echo "$0 : Unable to find NCARG_ROOT dir" 
                 exit 1
         endif
         set defines=($defines -D_InstRoot\=$root_dir -D_InstConfig\=$config_dir)
 
         set tmp_dir = `ncargpath tmp`
         if ($status != 0) then
-                echo "$0 : Unable to find TMP dir" > /dev/tty
+                echo "$0 : Unable to find TMP dir" 
                 exit 1
         endif
         set defines = ($defines -D_InstTmp\=$tmp_dir)
 
         set lib_dir = `ncargpath lib`
         if ($status != 0) then
-                echo "$0 : Unable to find NCARG_LIB dir" > /dev/tty
+                echo "$0 : Unable to find NCARG_LIB dir"
                 exit 1
         endif
         set defines = ($defines -D_InstLib\=$lib_dir)
 
         set bin_dir = `ncargpath bin`
         if ($status != 0) then
-                echo "$0 : Unable to find NCARG_BIN dir" > /dev/tty
+                echo "$0 : Unable to find NCARG_BIN dir"
                 exit 1
         endif
         set defines = ($defines -D_InstBin\=$bin_dir)
 
         set inc_dir = `ncargpath include`
         if ($status != 0) then
-                echo "$0 : Unable to find NCARG_INCLUDE dir" > /dev/tty
+                echo "$0 : Unable to find NCARG_INCLUDE dir" 
                 exit 1
         endif
         set defines = ($defines -D_InstInc\=$inc_dir)
 
         set man_dir = `ncargpath man`
         if ($status != 0) then
-                echo "$0 : Unable to find NCARG_MAN dir" > /dev/tty
+                echo "$0 : Unable to find NCARG_MAN dir" 
                 exit 1
         endif
         set defines = ($defines -D_InstMan\=$man_dir)
@@ -204,7 +204,7 @@
         if (-r $YMAKE_DEV_FILE) then
                 set defines=($defines -DYMAKEDEVFILE=\"$YMAKE_DEV_FILE\")
         else
-                echo "unable to open YMAKE_DEV_FILE $YMAKE_DEV_FILE" > /dev/tty
+                echo "unable to open YMAKE_DEV_FILE $YMAKE_DEV_FILE" 
         endif
 endif
 
@@ -227,7 +227,7 @@
         set ymakefile="yMakefile"
         set outfile = "Makefile"
 else
-        echo "$0 : no y(mM)akefile found" > /dev/tty
+        echo "$0 : no y(mM)akefile found" 
         exit 1
 endif
 
@@ -249,12 +249,12 @@
 #       and the machine architecture. 
 #
 if ($status != 0) then
-        echo "$0 : Unknown operating system" > /dev/tty
+        echo "$0 : Unknown operating system"
         exit 1
 endif
 set mach = `uname -m`
 if ($status != 0) then
-        echo "$0 : Unknown machine type" > /dev/tty
+        echo "$0 : Unknown machine type" 
         exit 1
 endif
 
@@ -283,7 +283,7 @@
                 set opsys = UNICOS
                 breaksw
         default:
-                echo "$0 : system unknown" > /dev/tty
+                echo "$0 : system unknown"
                 exit 1
         endsw
         breaksw
@@ -330,7 +330,7 @@
                 set sysincs = Sun3
                 breaksw
         default:
-                echo "$0 : Unknown machine type" > /dev/tty
+                echo "$0 : Unknown machine type"
                 exit 1
         endsw
 
@@ -347,7 +347,7 @@
                 set arch = RS6k$model
                 breaksw
         default:
-                echo "$0 : Unknown machine type" > /dev/tty
+                echo "$0 : Unknown machine type" 
                 exit 1
         endsw
 
@@ -379,7 +379,7 @@
             set vendor  = APPLE
             breaksw
         default:
-            echo "$0 : Unknown machine type" > /dev/tty
+            echo "$0 : Unknown machine type" 
             exit 1
         endsw
 
@@ -398,7 +398,7 @@
             set vendor  = IBM
             breaksw
         default:
-            echo "$0 : Unknown machine type" > /dev/tty
+            echo "$0 : Unknown machine type"
             exit 1
         endsw
 
@@ -422,7 +422,7 @@
             set vendor  = Apple
             breaksw
         default:
-            echo "$0 : Unknown machine type" > /dev/tty
+            echo "$0 : Unknown machine type" 
             exit 1
         endsw
 
@@ -445,7 +445,7 @@
                 set arch = $mach
                 breaksw
         default:
-                echo "$0 : Unknown machine type" > /dev/tty
+                echo "$0 : Unknown machine type" 
                 exit 1
         endsw
 
@@ -482,7 +482,7 @@
                 set arch = HP9k8$model
                 breaksw
         default:
-                echo "$0 : Unknown machine type" > /dev/tty
+                echo "$0 : Unknown machine type" 
                 exit 1
         endsw
 
@@ -506,7 +506,7 @@
                         set arch = $mach[1]
                 breaksw
                 default:
-                        echo "$0 : Unknown machine type" > /dev/tty
+                        echo "$0 : Unknown machine type" 
                         exit 1
                 endsw
         breaksw
@@ -520,7 +520,7 @@
         breaksw
 
         default:
-                echo "$0 : Unknown machine type" > /dev/tty
+                echo "$0 : Unknown machine type" 
                 exit 1
         endsw
 
@@ -530,13 +530,13 @@
         breaksw
 
 default:
-        echo "$0 : Unknown System Type - No Config file" > /dev/tty
+        echo "$0 : Unknown System Type - No Config file" 
         exit 1
         breaksw
 endsw
 
 if ($?sysincs == 0) then
-        echo "$0 : Unknown System Type - No Config file" > /dev/tty
+        echo "$0 : Unknown System Type - No Config file" 
         exit 1
 endif
 
@@ -547,7 +547,7 @@
         set defines=($defines -DSystemIncludes=\"$sysincs\")
         set defines=($defines -DSystemIncludesName=\"$sysincs\")
 else
-        echo "$0 : Unable to open Config file: $sysincs" > /dev/tty
+        echo "$0 : Unable to open Config file: $sysincs" 
         exit 1
 endif
 
@@ -679,8 +679,8 @@
 exit 0
 
 error_cleanup:
-echo "" > /dev/tty
-echo "Error in <ymake>: Interrupted in" `pwd` "- restoring $outfile" > /dev/tty
+echo "" 
+echo "Error in <ymake>: Interrupted in" `pwd` "- restoring $outfile" 
 /bin/rm -f $outfile $tmp1
 cp $outfile.bak $outfile
 /bin/rm -f $outfile.bak