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

Revision 16931, 5.8 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r16930, 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,\\1-html,g\
18  s,\\([1-9]\\)\\.in,\\1-in,g\
19  s,gettext_\\*\\.,gettext.*-,g\
20  s,config\\.h\\.in,config.h-in,g\
21  s,gettext_1.html,gettext.1-html,g\
22  s,gettext_10.html,gettext.10-html,g\
23  s,gettext_11.html,gettext.11-html,g\
24  s,gettext_12.html,gettext.12-html,g\
25  s,gettext_13.html,gettext.13-html,g\
26  s,gettext_14.html,gettext.14-html,g\
27  s,gettext_2.html,gettext.2-html,g\
28  s,gettext_3.html,gettext.3-html,g\
29  s,gettext_4.html,gettext.4-html,g\
30  s,gettext_5.html,gettext.5-html,g\
31  s,gettext_6.html,gettext.6-html,g\
32  s,gettext_7.html,gettext.7-html,g\
33  s,gettext_8.html,gettext.8-html,g\
34  s,gettext_9.html,gettext.9-html,g\
35  s,gettext_foot.html,gettext.foot-html,g\
36  s,gettext_toc.html,gettext.toc-html,g\
37  s,gettext.3.html,gettext.3-html,g\
38  s,ngettext.3.html,ngettext.3-html,g\
39  s,textdomain.3.html,textdomain.3-html,g\
40  s,bindtextdomain.3.html,bindtextdomain.3-html,g\
41  s,bind_textdomain_codeset.3.html,bind_textdomain_codeset.3-html,g\
42  s,gettext.3.in,gettext.3-in,g\
43  s,ngettext.3.in,ngettext.3-in,g\
44  s,textdomain.3.in,textdomain.3-in,g\
45  s,bindtextdomain.3.in,bindtextdomain.3-in,g\
46  s,bind_textdomain_codeset.3.in,bind_textdomain_codeset.3-in,g\
47  s,Makefile\\.in\\.in,Makefile.in-in,g\
48  s,gettext-1,gettext.1,g\
49  s,gettext-2,gettext.2,g\
50  s,msgcmp-1,msgcmp.1,g\
51  s,msgcmp-2,msgcmp.2,g\
52  s,msgfmt-1,msgfmt.1,g\
53  s,msgfmt-2,msgfmt.2,g\
54  s,msgfmt-3,msgfmt.3,g\
55  s,msgfmt-4,msgfmt.4,g\
56  s,msgmerge-1,msgmerge.1,g\
57  s,msgmerge-2,msgmerge.2,g\
58  s,msgmerge-3,msgmerge.3,g\
59  s,msgmerge-4,msgmerge.4,g\
60  s,msgmerge-5,msgmerge.5,g\
61  s,msgunfmt-1,msgunfmt.1,g\
62  s,xgettext-1,xgettext.1,g\
63  s,xgettext-2,xgettext.2,g\
64  s,xgettext-3,xgettext.3,g\
65  s,xgettext-4,xgettext.4,g\
66  s,xgettext-5,xgettext.5,g\
67  s,xgettext-6,xgettext.6,g\
68  s,xgettext-7,xgettext.7,g\
69  s,xgettext-8,xgettext.8,g\
70  s,xgettext-9,xgettext.9,g\
71  s,xg-test1.ok.po,xg-test1.ok-po,g\
72  /^TESTS[      ]*=/ s,plural-\\([1-9]\\+\\),plural.\\1,g\
73  /^install-info-am:/,/^$/ {\
74    /@list=/ s,\\\$(INFO_DEPS),& gettext.i,\
75    s,file-\\[0-9\\]\\[0-9\\],& \\$\\$file[0-9] \\$\\$file[0-9][0-9],\
76  }\
77  /^iso-639\\.texi[     ]*:.*$/ {\
78    s,iso-639,\\$(srcdir)/&,g\
79    s,ISO_639,\\$(srcdir)/&,\
80  }\
81  /^iso-3166\\.texi[    ]*:.*$/ {\
82    s,iso-3166,\\$(srcdir)/&,g\
83    s,ISO_3166,\\$(srcdir)/&,\
84  }\
85  /^# Some rules for yacc handling\\./,$ {\
86    /\\\$(YACC)/ a\\\\\
87        -@test -f y.tab.c && mv -f y.tab.c y_tab.c\\\\\
88        -@test -f y.tab.h && mv -f y.tab.h y_tab.h\
89  }\
90  /^POTFILES:/,/^$/ s,\\\$@-t,t-\\$@,g\
91  s,basename\\.o,,g\
92  s,po-gram-gen2\\.h,po-gram_gen2.h,g\
93  /^Makefile[   ]*:/,/^$/ {\
94    /CONFIG_FILES=/ s,\\\$(subdir)/\\\$@\\.in,&:\\$(subdir)/\\$@.in-in,\
95  }\
96  /html:/ s,split$,monolithic,g\
97  /^TEXI2HTML[  ]*=/ s,=[       ]*,&-,
98}
99
100# Makefile.in.in is renamed to Makefile.in-in...
101/^CONFIG_FILES=/,/^EOF/ {
102  s|po/Makefile\.in|&:po/Makefile.in-in|
103}
104
105# ...and config.h.in into config.h-in
106/^ *CONFIG_HEADERS=/,/^EOF/ {
107  s|config\.h|&:config.h-in|
108}
109
110# The same as above but this time
111# for configure scripts created with Autoconf 2.14a.
112/^config_files="\\\\/,/^$/ {
113  s|po/Makefile\.in|&:po/Makefile.in-in|
114}
115/^config_headers="\\\\/,/^$/ {
116  s|config\.h|&:config.h-in|
117}
118/# Handling of arguments./,/^$/ {
119  s|po/Makefile\.in|&:po/Makefile.in-in|2
120  s|config\.h|&:config.h-in|2
121}
122
123# Replace `(command) > /dev/null` with `command > /dev/null`, since
124# parenthesized commands always return zero status in the ported Bash,
125# even if the named command doesn't exist
126/if [^{].*null/,/ then/ {
127  /test .*null/ {
128    s,(,,
129    s,),,
130  }
131}
132
133# DOS-style absolute file names should be supported as well
134/\*) srcdir=/s,/\*,[\\\\/]* | [A-z]:[\\\\/]*,
135/\$]\*) INSTALL=/s,\[/\$\]\*,[\\\\/$]* | [A-z]:[\\\\/]*,
136/\$]\*) ac_rel_source=/s,\[/\$\]\*,[\\\\/$]* | [A-z]:[\\\\/]*,
137
138# Switch the order of the two Sed commands, since DOS path names
139# could include a colon
140/ac_file_inputs=/s,\( -e "s%\^%\$ac_given_srcdir/%"\)\( -e "s%:% $ac_given_srcdir/%g"\),\2\1,
141
142# Prevent the spliting of conftest.subs.
143# The sed script: conftest.subs is split into 48 or 90 lines long files.
144# This will produce sed scripts called conftest.s1, conftest.s2, etc.
145# that will not work if conftest.subs contains a multi line sed command
146# at line #90. In this case the first part of the sed command will be the
147# last line of conftest.s1 and the rest of the command will be the first lines
148# of conftest.s2. So both script will not work properly.
149# This matches the configure script produced by Autoconf 2.12
150/ac_max_sed_cmds=[0-9]/ s,=.*$,=`sed -n "$=" conftest.subs`,
151# This matches the configure script produced by Autoconf 2.14a
152/ac_max_sed_lines=[0-9]/ s,=.*$,=`sed -n "$=" $ac_cs_root.subs `,
153
154# The following two items are changes needed for configuring
155# and compiling across partitions.
156# 1) The given srcdir value is always translated from the
157#    "x:" syntax into "/dev/x" syntax while we run configure.
158/^[     ]*-srcdir=\*.*$/ a\
159    ac_optarg=`echo "$ac_optarg" | sed "s,^\\([A-Za-z]\\):,/dev/\\1,"`
160/set X `ls -Lt \$srcdir/ i\
161   if `echo $srcdir | grep "^/dev/" - > /dev/null`; then\
162     srcdir=`echo "$srcdir" | sed -e "s%^/dev/%%" -e "s%/%:/%"`\
163   fi
164
165#  2) We need links across partitions, so we will use "cp -pf" instead of "ln".
166/# Make a symlink if possible; otherwise try a hard link./,/EOF/ {
167  s,;.*then, 2>/dev/null || cp -pf \$srcdir/\$ac_source \$ac_dest&,
168}
169
170# Let libtool use _libs all the time.
171/objdir=/s,\.libs,_libs,
Note: See TracBrowser for help on using the repository browser.