summaryrefslogtreecommitdiff
path: root/dev-libs/icu/files/icu-remove-bashisms.patch
blob: 980d84b77d88f77ad1fdfe91971b2212412d4b14 (plain)
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
Index: config/Makefile.inc.in
===================================================================
--- config/Makefile.inc.in	(revision 36912)
+++ config/Makefile.inc.in	(working copy)
@@ -125,12 +125,6 @@
 # with usually. Many applications will want to add $(ICULIBS_I18N) as well. 
 ICULIBS = $(ICULIBS_BASE) $(ICULIBS_I18N) $(ICULIBS_COMMON) $(ICULIBS_DATA) 
 
-# Proper echo newline handling is needed in icu-config
-ECHO_N=@ICU_ECHO_N@
-ECHO_C=@ICU_ECHO_C@
-# Not currently being used but good to have for proper tab handling
-ECHO_T=@ICU_ECHO_T@
-
 ##################################################################
 ##################################################################
 #
Index: config/icu-config-bottom
===================================================================
--- config/icu-config-bottom	(revision 36912)
+++ config/icu-config-bottom	(working copy)
@@ -217,73 +217,73 @@
 	    ;;
 
 	--cflags)
-	    echo $ECHO_N "${CFLAGS} ${ECHO_C}"
+	    printf "%s" "${CFLAGS} "
 	    ;;
 
 	--cc)
-	    echo $ECHO_N "${CC} ${ECHO_C}"
+	    printf "%s" "${CC} "
 	    ;;
 
 	--cxx)
-	    echo $ECHO_N "${CXX} ${ECHO_C}"
+	    printf "%s" "${CXX} "
 	    ;;
 
 	--cxxflags)
-	    echo $ECHO_N "${CXXFLAGS} ${ECHO_C}"
+	    printf "%s" "${CXXFLAGS} "
 	    ;;
 
 	--cppflags)
 	    # Don't echo the -I. - it's unneeded.
-	    echo $ECHO_N "${CPPFLAGS} ${ECHO_C}" | sed -e 's/-I. //'
+	    printf "%s" "${CPPFLAGS} " | sed -e 's/-I. //'
 	    ;;
 
 	--cppflags-searchpath)
-	    echo $ECHO_N "-I${prefix}/include ${ECHO_C}"
+	    printf "%s" "-I${prefix}/include "
 	    ;;
 
 	--cppflags-dynamic)
-	    echo $ECHO_N "${SHAREDLIBCPPFLAGS} ${ECHO_C}"
+	    printf "%s" "${SHAREDLIBCPPFLAGS} "
 	    ;;
 
 	--cxxflags-dynamic)
-	    echo $ECHO_N "${SHAREDLIBCXXFLAGS} ${ECHO_C}"
+	    printf "%s" "${SHAREDLIBCXXFLAGS} "
 	    ;;
 
 	--cflags-dynamic)
-	    echo $ECHO_N "${SHAREDLIBCFLAGS} ${ECHO_C}"
+	    printf "%s" "${SHAREDLIBCFLAGS} "
 	    ;;
 
 	--ldflags-system)
-	    echo $ECHO_N "${LIBS} ${ECHO_C}"
+	    printf "%s" "${LIBS} "
 	    ;;
 
 	--ldflags)
-	    echo $ECHO_N "${LDFLAGS} ${ICULIBS} ${ECHO_C}"
+	    printf "%s" "${LDFLAGS} ${ICULIBS} "
 # $RPATH_LDFLAGS
 	    ;;
 
 	--ldflags-libsonly)
-	    echo $ECHO_N "${ICULIBS_I18N} ${ICULIBS_COMMON} ${ICULIBS_DATA} ${ECHO_C}"
+	    printf "%s" "${ICULIBS_I18N} ${ICULIBS_COMMON} ${ICULIBS_DATA} "
 	    ;;
 
 	--ldflags-icuio)
-	    echo $ECHO_N " ${ICULIBS_ICUIO} ${ECHO_C}"
+	    printf "%s" " ${ICULIBS_ICUIO} "
 	    ;;
 
 	--ldflags-obsolete)
-	    echo $ECHO_N "${ICULIBS_OBSOLETE} ${ECHO_C}"
+	    printf "%s" "${ICULIBS_OBSOLETE} "
 	    ;;
 
 	--ldflags-toolutil)
-	    echo $ECHO_N " ${ICULIBS_TOOLUTIL} ${ECHO_C}"
+	    printf "%s" " ${ICULIBS_TOOLUTIL} "
 	    ;;
 
 	--ldflags-layout)
-	    echo $ECHO_N "${ICULIBS_LAYOUT} ${ICULIBS_LAYOUTEX} ${ECHO_C}"
+	    printf "%s" "${ICULIBS_LAYOUT} ${ICULIBS_LAYOUTEX} "
 	    ;;
 
 	--ldflags-searchpath)
-	    echo $ECHO_N "-L${libdir} ${ECHO_C}"
+	    printf "%s" "-L${libdir} "
 	    ;;
 
 	--detect-prefix)
@@ -319,47 +319,47 @@
 	    ;;
 
 	--shared-datadir)
-	    echo $ECHO_N "${datadir} ${ECHO_C}"
+	    printf "%s" "${datadir} "
 	    ;;
 
         --incfile)
-	    echo $ECHO_N "${pkglibdir}/Makefile.inc ${ECHO_C}"
+	    printf "%s" "${pkglibdir}/Makefile.inc "
 	    ;;
 
 	--incpkgdatafile)
-	    echo $ECHO_N "${pkglibdir}/pkgdata.inc ${ECHO_C}"
+	    printf "%s" "${pkglibdir}/pkgdata.inc "
 	    ;;
 
 	--icudata)
-	    echo $ECHO_N "${ICUDATA_NAME} ${ECHO_C}"
+	    printf "%s" "${ICUDATA_NAME} "
 	    ;;
 
 	--icudata-mode)
-	    echo $ECHO_N "${PKGDATA_MODE} ${ECHO_C}"
+	    printf "%s" "${PKGDATA_MODE} "
 	    ;;
 
 	--icudata-install-dir)
-        echo $ECHO_N "${ICUPKGDATA_DIR} ${ECHO_C}"
+        printf "%s" "${ICUPKGDATA_DIR} "
 	    ;;
 
 	--icudatadir)
-	    echo $ECHO_N "${ICUDATA_DIR} ${ECHO_C}"
+	    printf "%s" "${ICUDATA_DIR} "
 	    ;;
 
 	--shlib-c)
-	    echo $ECHO_N "${SHLIB_c} ${ECHO_C}"
+	    printf "%s" "${SHLIB_c} "
 	    ;;
 
 	--shlib-cc)
-	    echo $ECHO_N "${SHLIB_cc} ${ECHO_C}"
+	    printf "%s" "${SHLIB_cc} "
 	    ;;
 
 	--version)
-	    echo $ECHO_N $VERSION
+	    printf "%s" "$VERSION"
 	    ;;
 
 	--unicode-version)
-	    echo $ECHO_N $UNICODE_VERSION
+	    printf "%s" "$UNICODE_VERSION"
 	    ;;
 
 	--host)
Index: configure.ac
===================================================================
--- configure.ac	(revision 36912)
+++ configure.ac	(working copy)
@@ -19,24 +19,6 @@
 PACKAGE="icu"
 AC_SUBST(PACKAGE)
 
-# Use custom echo test for newline option
-# Current autoconf (2.65) gives incorrect echo newline option
-# for icu-config
-# This may be removed later - mow (June 17, 2010)
-ICU_ECHO_C= ICU_ECHO_N= ICU_ECHO_T=
-case `/bin/sh -c "echo -n x"` in
--n*)
-  case `/bin/sh -c "echo 'x\c'"` in
-  *c*) ICU_ECHO_T=' ';;     # ECHO_T is single tab character.
-  *)   ICU_ECHO_C='\c';;
-  esac;;
-*)
-  ICU_ECHO_N='-n';;
-esac
-AC_SUBST(ICU_ECHO_N)
-AC_SUBST(ICU_ECHO_C)
-AC_SUBST(ICU_ECHO_T)
-
 AC_MSG_CHECKING(for ICU version numbers)
 
 # Get the ICU version from uversion.h or other headers
Index: icudefs.mk.in
===================================================================
--- icudefs.mk.in	(revision 36912)
+++ icudefs.mk.in	(working copy)
@@ -155,11 +155,6 @@
 ENABLE_STATIC = @ENABLE_STATIC@
 ENABLE_SHARED = @ENABLE_SHARED@
 
-# Echo w/o newline
-
-#ECHO_N = @ICU_ECHO_N@
-#ECHO_C = @ICU_ECHO_C@
-
 # Commands to compile
 COMPILE.c=    $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c
 COMPILE.cc=   $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c
Index: test/hdrtst/Makefile.in
===================================================================
--- test/hdrtst/Makefile.in	(revision 36912)
+++ test/hdrtst/Makefile.in	(working copy)
@@ -33,9 +33,6 @@
 include $(shell icu-config --incfile)
 DIRS=$(prefix)/include/unicode
 LDIRS=$(prefix)/include/layout
-ECHO_T=@ECHO_T@
-ECHO_C=@ECHO_C@
-ECHO_N=@ECHO_N@
 
 all: 
 	@echo Please read this Makefile for more information.