source: trunk/third/gettext/djgpp/config.sed @ 18200

Revision 18200, 11.6 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18199, which included commits to RCS files with non-trunk default branches.
Line 
1# Additional editing of Makefiles
2/@GMSGFMT@/ s,\$GMSGFMT,msgfmt,
3/@MSGFMT@/ s,\$MSGFMT,msgfmt,
4/@XGETTEXT@/ s,\$XGETTEXT,xgettext,
5/ac_given_INSTALL=/,/^CEOF/ {
6  /^CEOF$/ i\
7# DJGPP specific Makefile changes.\
8  /^aliaspath[  ]*=/s,:,";",g\
9  /^lispdir[    ]*=/ c\\\\\
10lispdir = \\$(prefix)/gnu/emacs/site-lisp\
11  /TEXINPUTS[   ]*=/s,:,";",g\
12  /PATH[        ]*=/s,:,";",g\
13  s,\\.new\\.,_new.,g\
14  s,\\.old\\.,_old.,g\
15  s,\\.tab\\.c,_tab.c,g\
16  s,\\.tab\\.h,_tab.h,g\
17  s,\\([1-9]\\)\\.html\\.in,\\1hi,g\
18  s,\\([1-9]\\)\\.html,\\1-html,g\
19  s,\\([1-9]\\)\\.in,\\1-in,g\
20  s,\\.sh\\.in,.sh-in,g\
21  s,config\\.h\\.in,config.h-in ,g\
22  s,COPYING.LIB-2.0,COPYING_LIB.20 ,g\
23  s,COPYING.LIB-2.1,COPYING_LIB.21 ,g\
24  s,gettext_1.html,gettext.1-html ,g\
25  s,gettext_10.html,gettext.10-html ,g\
26  s,gettext_11.html,gettext.11-html ,g\
27  s,gettext_12.html,gettext.12-html ,g\
28  s,gettext_13.html,gettext.13-html ,g\
29  s,gettext_14.html,gettext.14-html ,g\
30  s,gettext_15.html,gettext.15-html ,g\
31  s,gettext_16.html,gettext.16-html ,g\
32  s,gettext_2.html,gettext.2-html ,g\
33  s,gettext_3.html,gettext.3-html ,g\
34  s,gettext_4.html,gettext.4-html ,g\
35  s,gettext_5.html,gettext.5-html ,g\
36  s,gettext_6.html,gettext.6-html ,g\
37  s,gettext_7.html,gettext.7-html ,g\
38  s,gettext_8.html,gettext.8-html ,g\
39  s,gettext_9.html,gettext.9-html ,g\
40  s,gettext_foot.html,gettext.foot-html ,g\
41  s,gettext_toc.html,gettext.toc-html ,g\
42  s,javacomp\\.sh\\.in,javacomp.sh-in ,g\
43  s,javaexec\\.sh\\.in,javaexec.sh-in ,g\
44  s,stdbool\\.h\\.in,stdbool.h-in ,g\
45  s,gettext.1.in,gettext.1-in ,g\
46  s,ngettext.1.in,ngettext.1-in ,g\
47  s,gettext.3.in,gettext.3-in ,g\
48  s,ngettext.3.in,ngettext.3-in ,g\
49  s,textdomain.3.in,textdomain.3-in ,g\
50  s,bindtextdomain.3.in,bindtextdomain.3-in ,g\
51  s,bind_textdomain_codeset.3.in,bind_textdomain_codeset.3-in ,g\
52  s,gettext.1.html.in,gettext.1hin ,g\
53  s,ngettext.1.html.in,ngettext.1hin ,g\
54  s,msgcmp.1.html,msgcmp.1-html ,g\
55  s,msgfmt.1.html,msgfmt.1-html ,g\
56  s,msgmerge.1.html,msgmerge.1-html ,g\
57  s,msgunfmt.1.html,msgunfmt.1-html ,g\
58  s,xgettext.1.html,xgettext.1-html ,g\
59  s,msgattrib.1.html,msgattrib.1-html ,g\
60  s,msgcat.1.html,msgcat.1-html ,g\
61  s,msgcomm.1.html,msgcomm.1-html ,g\
62  s,msgconv.1.html,msgconv.1-html ,g\
63  s,msgen.1.html,msgen.1-html ,g\
64  s,msgexec.1.html,msgexec.1-html ,g\
65  s,msgfilter.1.html,msgfilter.1-html ,g\
66  s,msggrep.1.html,msggrep.1-html ,g\
67  s,msginit.1.html,msginit.1-html ,g\
68  s,msguniq.1.html,msguniq.1-html ,g\
69  s,gettext.3.html,gettext.3-html ,g\
70  s,ngettext.3.html,ngettext.3-html ,g\
71  s,textdomain.3.html,textdomain.3-html ,g\
72  s,bindtextdomain.3.html,bindtextdomain.3-html ,g\
73  s,bind_textdomain_codeset.3.html,bind_textdomain_codeset.3-html ,g\
74  s,Makefile\\.in\\.in,Makefile.in-in ,g\
75  s,format-librep.c,format_librep.c ,g\
76  s,format-pascal.c,format_pascal.c ,g\
77  s,blue-ball.gif,b-ball.gif ,g\
78  s,cyan-ball.gif,c-ball.gif ,g\
79  s,green-ball.gif,g-ball.gif ,g\
80  s,magenta-ball.gif,m-ball.gif ,g\
81  s,red-ball.gif,r-ball.gif ,g\
82  s,yellow-ball.gif,y-ball.gif ,g\
83  s,constructors.gif,ctors.gif ,g\
84  s,variables.gif,vars.gif ,g\
85  s,package-frame.html,package_frame.html ,g\
86  s,package-tree.html,package_tree.html ,g\
87  s,gettext-1,gettext.1 ,g\
88  s,gettext-2,gettext.2 ,g\
89  s,msgattrib-1,msgattrib.1 ,g\
90  s,msgattrib-2,msgattrib.2 ,g\
91  s,msgattrib-3,msgattrib.3 ,g\
92  s,msgattrib-4,msgattrib.4 ,g\
93  s,msgattrib-5,msgattrib.5 ,g\
94  s,msgattrib-6,msgattrib.6 ,g\
95  s,msgattrib-7,msgattrib.7 ,g\
96  s,msgattrib-8,msgattrib.8 ,g\
97  s,msgattrib-9,msgattrib.9 ,g\
98  s,msgattrib-10,msgattrib.10 ,g\
99  s,msgattrib-11,msgattrib.11 ,g\
100  s,msgattrib-12,msgattrib.12 ,g\
101  s,msgattrib-13,msgattrib.13 ,g\
102  s,msgattrib-14,msgattrib.14 ,g\
103  s,msgcat-1,msgcat.1 ,g\
104  s,msgcat-2,msgcat.2 ,g\
105  s,msgcat-3,msgcat.3 ,g\
106  s,msgcat-4,msgcat.4 ,g\
107  s,msgcat-5,msgcat.5 ,g\
108  s,msgcat-6,msgcat.6 ,g\
109  s,msgcat-7,msgcat.7 ,g\
110  s,msgcmp-1,msgcmp.1 ,g\
111  s,msgcmp-2,msgcmp.2 ,g\
112  s,msgcomm-1,msgcomm.1 ,g\
113  s,msgcomm-2,msgcomm.2 ,g\
114  s,msgcomm-3,msgcomm.3 ,g\
115  s,msgcomm-4,msgcomm.4 ,g\
116  s,msgcomm-5,msgcomm.5 ,g\
117  s,msgcomm-6,msgcomm.6 ,g\
118  s,msgcomm-7,msgcomm.7 ,g\
119  s,msgcomm-8,msgcomm.8 ,g\
120  s,msgcomm-9,msgcomm.9 ,g\
121  s,msgcomm-10,msgcomm.10 ,g\
122  s,msgcomm-11,msgcomm.11 ,g\
123  s,msgcomm-12,msgcomm.12 ,g\
124  s,msgcomm-13,msgcomm.13 ,g\
125  s,msgcomm-14,msgcomm.14 ,g\
126  s,msgcomm-15,msgcomm.15 ,g\
127  s,msgcomm-16,msgcomm.16 ,g\
128  s,msgcomm-17,msgcomm.17 ,g\
129  s,msgcomm-18,msgcomm.18 ,g\
130  s,msgcomm-19,msgcomm.19 ,g\
131  s,msgcomm-20,msgcomm.20 ,g\
132  s,msgcomm-21,msgcomm.21 ,g\
133  s,msgcomm-22,msgcomm.22 ,g\
134  s,msgcomm-23,msgcomm.23 ,g\
135  s,msgconv-1,msgconv.1 ,g\
136  s,msgconv-2,msgconv.2 ,g\
137  s,msgconv-3,msgconv.3 ,g\
138  s,msgen-1,msgen.1 ,g\
139  s,msgexec-1,msgexec.1 ,g\
140  s,msgexec-2,msgexec.2 ,g\
141  s,msgfilter-1,msgfilter.1 ,g\
142  s,msgfilter-2,msgfilter.2 ,g\
143  s,msgfmt-1,msgfmt.1 ,g\
144  s,msgfmt-2,msgfmt.2 ,g\
145  s,msgfmt-3,msgfmt.3 ,g\
146  s,msgfmt-4,msgfmt.4 ,g\
147  s,msgfmt-5,msgfmt.5 ,g\
148  s,msgfmt-6,msgfmt.6 ,g\
149  s,msgfmt-7,msgfmt.7 ,g\
150  s,msgfmt-8,msgfmt.8 ,g\
151  s,msgfmt-9,msgfmt.9 ,g\
152  s,msgfmt-10,msgfmt.10 ,g\
153  s,msggrep-1,msggrep.1 ,g\
154  s,msggrep-2,msggrep.2 ,g\
155  s,msggrep-3,msggrep.3 ,g\
156  s,msggrep-4,msggrep.4 ,g\
157  s,msgmerge-1,msgmerge.1 ,g\
158  s,msgmerge-2,msgmerge.2 ,g\
159  s,msgmerge-3,msgmerge.3 ,g\
160  s,msgmerge-4,msgmerge.4 ,g\
161  s,msgmerge-5,msgmerge.5 ,g\
162  s,msgmerge-6,msgmerge.6 ,g\
163  s,msgmerge-7,msgmerge.7 ,g\
164  s,msgmerge-8,msgmerge.8 ,g\
165  s,msgmerge-9,msgmerge.9 ,g\
166  s,msgmerge-10,msgmerge.10 ,g\
167  s,msgmerge-11,msgmerge.11 ,g\
168  s,msgmerge-12,msgmerge.12 ,g\
169  s,msgmerge-13,msgmerge.13 ,g\
170  s,msgmerge-14,msgmerge.14 ,g\
171  s,msgmerge-15,msgmerge.15 ,g\
172  s,msgmerge-16,msgmerge.16 ,g\
173  s,msgmerge-17,msgmerge.17 ,g\
174  s,msgmerge-18,msgmerge.18 ,g\
175  s,msgmerge-19,msgmerge.19 ,g\
176  s,msgmerge-20,msgmerge.20 ,g\
177  s,msgunfmt-1,msgunfmt.1 ,g\
178  s,msguniq-1,msguniq.1 ,g\
179  s,msguniq-2,msguniq.2 ,g\
180  s,msguniq-3,msguniq.3 ,g\
181  s,xgettext-1,xgettext.1 ,g\
182  s,xgettext-2,xgettext.2 ,g\
183  s,xgettext-3,xgettext.3 ,g\
184  s,xgettext-4,xgettext.4 ,g\
185  s,xgettext-5,xgettext.5 ,g\
186  s,xgettext-6,xgettext.6 ,g\
187  s,xgettext-7,xgettext.7 ,g\
188  s,xgettext-8,xgettext.8 ,g\
189  s,xgettext-9,xgettext.9 ,g\
190  s,xgettext-10,xgettext.10 ,g\
191  s,xgettext-11,xgettext.11 ,g\
192  s,xgettext-12,xgettext.12 ,g\
193  s,xgettext-13,xgettext.13 ,g\
194  s,xgettext-14,xgettext.14 ,g\
195  s,xgettext-15,xgettext.15 ,g\
196  s,xgettext-16,xgettext.16 ,g\
197  s,xgettext-17,xgettext.17 ,g\
198  s,format-c-1,format/c.1 ,g\
199  s,format-c-2,format/c.2 ,g\
200  s,format-elisp-1,format/elisp.1 ,g\
201  s,format-elisp-2,format/elisp.2 ,g\
202  s,format-java-1,format/java.1 ,g\
203  s,format-java-2,format/java.2 ,g\
204  s,format-librep-1,format/librep.1 ,g\
205  s,format-librep-2,format/librep.2 ,g\
206  s,format-lisp-1,format/lisp.1 ,g\
207  s,format-lisp-2,format/lisp.2 ,g\
208  s,format-python-1,format/python.1 ,g\
209  s,format-python-2,format/python.2 ,g\
210  s,format-pascal-1,format/pascal.1 ,g\
211  s,format-pascal-2,format/pascal.2 ,g\
212  s,format-ycp-1,format/ycp.1 ,g\
213  s,format-ycp-2,format/ycp.2 ,g\
214  s,lang-c++,lang-cxx ,g\
215  s,rpath-1a,rpath/1a ,g\
216  s,rpath-1b,rpath/1b ,g\
217  s,rpath-2aaa,rpath/2aaa ,g\
218  s,rpath-2aab,rpath/2aab ,g\
219  s,rpath-2aac,rpath/2aac ,g\
220  s,rpath-2aad,rpath/2aad ,g\
221  s,rpath-2aba,rpath/2aba ,g\
222  s,rpath-2abb,rpath/2abb ,g\
223  s,rpath-2abc,rpath/2abc ,g\
224  s,rpath-2abd,rpath/2abd ,g\
225  s,rpath-2baa,rpath/2baa ,g\
226  s,rpath-2bab,rpath/2bab ,g\
227  s,rpath-2bac,rpath/2bac ,g\
228  s,rpath-2bad,rpath/2bad ,g\
229  s,rpath-2bba,rpath/2bba ,g\
230  s,rpath-2bbb,rpath/2bbb ,g\
231  s,rpath-2bbc,rpath/2bbc ,g\
232  s,rpath-2bbd,rpath/2bbd ,g\
233  s,xg-test1.ok.po,xg-test1.ok-po ,g\
234  s,rpath-1,rpath/1 ,g\
235  s,rpath-2_a,rpath/2_a ,g\
236  s,rpath-2_b,rpath/2_b ,g\
237  s,rpath-2.README,rpath/2.README ,g\
238  s,rpathcfg.sh,rpathcfg.sh ,g\
239  s,gettext_\\*\\.,gettext.*-,g\
240  s,format-librep,format_librep,g\
241  s,format-pascal,format_pascal,g\
242  /^TESTS[      ]*=/,/^$/ s,plural-\\([1-9]\\+\\),plural.\\1,g\
243  /^install-info-am:/,/^$/ {\
244    /@list=/ s,\\\$(INFO_DEPS),& gettext.i,\
245    s,file-\\[0-9\\]\\[0-9\\],& \\$\\$file[0-9] \\$\\$file[0-9][0-9],\
246  }\
247  /^iso-639\\.texi[     ]*:.*$/ {\
248    s,iso-639,\\$(srcdir)/&,g\
249    s,ISO_639,\\$(srcdir)/&,\
250  }\
251  /^iso-3166\\.texi[    ]*:.*$/ {\
252    s,iso-3166,\\$(srcdir)/&,g\
253    s,ISO_3166,\\$(srcdir)/&,\
254  }\
255  /^# Some rules for yacc handling\\./,$ {\
256    /\\\$(YACC)/ a\\\\\
257        -@test -f y.tab.c && mv -f y.tab.c y_tab.c\\\\\
258        -@test -f y.tab.h && mv -f y.tab.h y_tab.h\
259  }\
260  /^POTFILES:/,/^$/ s,\\\$@-t,t-\\$@,g\
261  s,basename\\.o,,g\
262  s,po-gram-gen2\\.h,po-gram_gen2.h,g\
263  /^Makefile[   ]*:/,/^$/ {\
264    /CONFIG_FILES=/ s,\\\$(subdir)/\\\$@\\.in,&:\\$(subdir)/\\$@.in-in,\
265  }\
266  /html:/ s,split$,monolithic,g\
267  /^TEXI2HTML[  ]*=/ s,=[       ]*,&-,
268}
269
270# javacomp.sh is renamed to javacomp.sh-in,
271# javaexec.sh is renamed to javaexec.sh-in,
272# Makefile.in.in is renamed to Makefile.in-in...
273/^CONFIG_FILES=/,/^EOF/ {
274  s|lib/javacomp\.sh|&:lib/javacomp.sh-in|
275  s|lib/javaexec\.sh|&:lib/javaexec.sh-in|
276  s|po/Makefile\.in|&:po/Makefile.in-in|
277}
278
279# ...and config.h.in into config.h-in
280/^ *CONFIG_HEADERS=/,/^EOF/ {
281  s|config\.h|&:config.h-in|
282}
283
284# The same as above but this time
285# for configure scripts created with Autoconf 2.14a.
286/^config_files="\\\\/,/^$/ {
287  s|po/Makefile\.in|&:po/Makefile.in-in|
288}
289/^config_headers="\\\\/,/^$/ {
290  s|config\.h|&:config.h-in|
291}
292/# Handling of arguments./,/^$/ {
293  s|po/Makefile\.in|&:po/Makefile.in-in|2
294  s|config\.h|&:config.h-in|2
295}
296
297# Replace `(command) > /dev/null` with `command > /dev/null`, since
298# parenthesized commands always return zero status in the ported Bash,
299# even if the named command doesn't exist
300/if [^{].*null/,/ then/ {
301  /test .*null/ {
302    s,(,,
303    s,),,
304  }
305}
306
307# DOS-style absolute file names should be supported as well
308/\*) srcdir=/s,/\*,[\\\\/]* | [A-z]:[\\\\/]*,
309/\$]\*) INSTALL=/s,\[/\$\]\*,[\\\\/$]* | [A-z]:[\\\\/]*,
310/\$]\*) ac_rel_source=/s,\[/\$\]\*,[\\\\/$]* | [A-z]:[\\\\/]*,
311
312# Switch the order of the two Sed commands, since DOS path names
313# could include a colon
314/ac_file_inputs=/s,\( -e "s%\^%\$ac_given_srcdir/%"\)\( -e "s%:% $ac_given_srcdir/%g"\),\2\1,
315
316# Prevent the spliting of conftest.subs.
317# The sed script: conftest.subs is split into 48 or 90 lines long files.
318# This will produce sed scripts called conftest.s1, conftest.s2, etc.
319# that will not work if conftest.subs contains a multi line sed command
320# at line #90. In this case the first part of the sed command will be the
321# last line of conftest.s1 and the rest of the command will be the first lines
322# of conftest.s2. So both script will not work properly.
323# This matches the configure script produced by Autoconf 2.12
324/ac_max_sed_cmds=[0-9]/ s,=.*$,=`sed -n "$=" conftest.subs`,
325# This matches the configure script produced by Autoconf 2.14a
326/ac_max_sed_lines=[0-9]/ s,=.*$,=`sed -n "$=" $ac_cs_root.subs `,
327
328# The following two items are changes needed for configuring
329# and compiling across partitions.
330# 1) The given srcdir value is always translated from the
331#    "x:" syntax into "/dev/x" syntax while we run configure.
332/^[     ]*-srcdir=\*.*$/ a\
333    ac_optarg=`echo "$ac_optarg" | sed "s,^\\([A-Za-z]\\):,/dev/\\1,"`
334/set X `ls -Lt \$srcdir/ i\
335   if `echo $srcdir | grep "^/dev/" - > /dev/null`; then\
336     srcdir=`echo "$srcdir" | sed -e "s%^/dev/%%" -e "s%/%:/%"`\
337   fi
338
339#  2) We need links across partitions, so we will use "cp -pf" instead of "ln".
340/# Make a symlink if possible; otherwise try a hard link./,/EOF/ {
341  s,;.*then, 2>/dev/null || cp -pf \$srcdir/\$ac_source \$ac_dest&,
342}
343
344# Let libtool use _libs all the time.
345/objdir=/s,\.libs,_libs,
346
347# Stock djdev203 does not provide an unsetenv() function,
348# so we will use djdev204 CVS tree's one.
349/^LTLIBOBJS=/ s,|, unsetenv.c |,
350
351# Stock djdev203 does not provide pw_gecos,
352# so we will use djdev204 CVS tree's one.
353/^LTLIBOBJS=/ s,|, getpwnam.c |,
Note: See TracBrowser for help on using the repository browser.