This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
propagate changed error text
[perl5.git] / djgpp / djgppsed.sh
1 #! /bin/sh
2
3 # Change some files to work under DOS
4 # Most of this stuff does .xx -> _xx and aa.bb.ccc -> aa_bb.cc conversion
5
6 SCONFIG='s=\.\(config\)=_\1=g'
7 SLIST='s=\.\([a-z]\+list\)=_\1=g'
8 SGREPTMP='s=\.\(greptmp\)=_\1=g'
9 SECHOTMP='s=\.\(echotmp\)=_\1=g'
10 SDDC='s=\.\($$\.c\)=_\1=g'
11 SOUT='s=\([^a-z1-9?]\)\.\(out\)=\1_\2=g'
12 SEXISTS='s=\.\(exists\)=_\1=g'
13 SPOD2HTML='s=pod2html-=pod2html.=g'
14 SCC='s=\.c\.c=.c_c=g'
15 SFILEC="s=\(\$file\)\.c=\\1'_c'=g"
16 SCOR='s=c\\\.c|=c\_c|=g'
17 SHSED='s=\.\(hsed\)=_\1=g'
18 SDEPTMP='s=\.\(deptmp\)=_\1=g'
19 SCPP='s=\.\(cpp\.\)=_\1=g'
20 SARGV='s=\.\(argv\.\)=_\1=g'
21 SABC='s=\.\([abc][^a]\)=_\1=g'
22 SDBMX='s=\.\(dbmx\)=_\1=g'
23 SDBHASH='s=dbhash\.tmp=dbhash_tmp=g'
24 SSTAT='s=\.\(stat\.\)=_\1=g'
25 STMP2='s=tmp2=tm2=g'
26 SPACKLIST='s=\.\(packlist\)=_\1=g'
27
28 sed -e $SCONFIG -e $SGREPTMP -e $SECHOTMP -e $SDDC -e $SOUT -e 's=\.\( \./\$file\)$=sh\1=g' Configure |tr -d '\r' >s; mv -f s Configure
29 sed -e $SEXISTS -e $SLIST -e $SCONFIG Makefile.SH |tr -d '\r' >s; mv -f s Makefile.SH
30 sed -e $SEXISTS -e $SPACKLIST lib/ExtUtils/Install.pm |tr -d '\r' >s; mv -f s lib/ExtUtils/Install.pm
31 sed -e $SEXISTS -e $SPACKLIST lib/ExtUtils/MM_Unix.pm |tr -d '\r' >s; mv -f s lib/ExtUtils/MM_Unix.pm
32 sed -e $SEXISTS -e $SPACKLIST installperl >s; mv -f s installperl
33 sed -e $SPOD2HTML lib/Pod/Html.pm |tr -d '\r' >s; mv -f s lib/Pod/Html.pm
34 sed -e $SCC -e $SLIST -e $SFILEC -e $SCOR -e $SDEPTMP -e $SHSED makedepend.SH |tr -d '\r' >s; mv -f s makedepend.SH
35 sed -e $SCPP t/comp/cpp.aux |tr -d '\r' >s; mv -f s t/comp/cpp.aux
36 sed -e $SARGV t/io/argv.t >s; mv -f s t/io/argv.t
37 sed -e $SABC t/io/inplace.t >s; mv -f s t/io/inplace.t
38 sed -e $SDBMX t/lib/anydbm.t >s; mv -f s t/lib/anydbm.t
39 sed -e $SDBMX -e $SDBHASH t/lib/gdbm.t >s; mv -f s t/lib/gdbm.t
40 sed -e $SDBMX -e $SDBHASH t/lib/sdbm.t >s; mv -f s t/lib/sdbm.t
41 sed -e $SSTAT -e $STMP2 t/op/stat.t >s; mv -f s t/op/stat.t
42 sed -e $SLIST x2p/Makefile.SH |tr -d '\r' >s; mv -f s x2p/Makefile.SH
43 sed -e 's=^#define.\([A-Z]\+\)_EXP.*$=#define \1_EXP djgpp_pathexp("\1")=g' config_h.SH >s; mv -f s config_h.SH
44 sed -e 's=:^/:={^([a-z]:)?[\\\\/]}=g' lib/termcap.pl >s; mv -f s lib/termcap.pl
45 sed -e $SPACKLIST installman >s; mv -f s installman
46 sed -e $SPACKLIST lib/ExtUtils/Installed.pm >s; mv -f s lib/ExtUtils/Installed.pm
47 sed -e $SPACKLIST lib/ExtUtils/Packlist.pm >s; mv -f s lib/ExtUtils/Packlist.pm
48 sed -e $SPACKLIST lib/ExtUtils/inst >s; mv -f s lib/ExtUtils/inst
49 sed -e $SABC t/io/iprefix.t >s; mv -f s t/io/iprefix.t