Update IO to CPAN 1.24 release
[p5sagit/p5-mst-13.2.git] / djgpp / djgppsed.sh
CommitLineData
39e571d4 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
6SCONFIG='s=\.\(config\)=_\1=g'
7SLIST='s=\.\([a-z]\+list\)=_\1=g'
8SGREPTMP='s=\.\(greptmp\)=_\1=g'
9SECHOTMP='s=\.\(echotmp\)=_\1=g'
10SDDC='s=\.\($$\.c\)=_\1=g'
11SOUT='s=\([^a-z1-9?]\)\.\(out\)=\1_\2=g'
12SEXISTS='s=\.\(exists\)=_\1=g'
13SPOD2HTML='s=pod2html-=pod2html.=g'
14SCC='s=\.c\.c=.c_c=g'
15SFILEC="s=\(\$file\)\.c=\\1'_c'=g"
16SCOR='s=c\\\.c|=c\_c|=g'
17SHSED='s=\.\(hsed\)=_\1=g'
18SDEPTMP='s=\.\(deptmp\)=_\1=g'
19SCPP='s=\.\(cpp\.\)=_\1=g'
fc2ea73a 20SARGV='s=Io_argv\(.\)\.=i\1_=g'
39e571d4 21SABC='s=\.\([abc][^a]\)=_\1=g'
22SDBMX='s=\.\(dbmx\)=_\1=g'
23SDBHASH='s=dbhash\.tmp=dbhash_tmp=g'
24SSTAT='s=\.\(stat\.\)=_\1=g'
25STMP2='s=tmp2=tm2=g'
26SPACKLIST='s=\.\(packlist\)=_\1=g'
d2a01882 27SDOTTMP='s=\.tmp=_tmp=g'
39e571d4 28
c4f23d77 29sed -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
39e571d4 30sed -e $SEXISTS -e $SLIST -e $SCONFIG Makefile.SH |tr -d '\r' >s; mv -f s Makefile.SH
31sed -e $SEXISTS -e $SPACKLIST lib/ExtUtils/Install.pm |tr -d '\r' >s; mv -f s lib/ExtUtils/Install.pm
32sed -e $SEXISTS -e $SPACKLIST lib/ExtUtils/MM_Unix.pm |tr -d '\r' >s; mv -f s lib/ExtUtils/MM_Unix.pm
cb9505ff 33sed -e $SEXISTS -e $SPACKLIST installperl >s; mv -f s installperl
39e571d4 34sed -e $SPOD2HTML lib/Pod/Html.pm |tr -d '\r' >s; mv -f s lib/Pod/Html.pm
35sed -e $SCC -e $SLIST -e $SFILEC -e $SCOR -e $SDEPTMP -e $SHSED makedepend.SH |tr -d '\r' >s; mv -f s makedepend.SH
36sed -e $SCPP t/comp/cpp.aux |tr -d '\r' >s; mv -f s t/comp/cpp.aux
d2a01882 37sed -e $SARGV -e $SDOTTMP t/io/argv.t >s; mv -f s t/io/argv.t
39e571d4 38sed -e $SABC t/io/inplace.t >s; mv -f s t/io/inplace.t
9483776f 39sed -e $SDBMX -e $SDBHASH ext/GDBM_File/t/gdbm.t >s; mv -f s ext/GDBM_File/t/gdbm.t
39e571d4 40sed -e $SSTAT -e $STMP2 t/op/stat.t >s; mv -f s t/op/stat.t
41sed -e $SLIST x2p/Makefile.SH |tr -d '\r' >s; mv -f s x2p/Makefile.SH
7da0e383 42#sed -e 's=^#define.\([A-Z]\+\)_EXP.*$=#define \1_EXP djgpp_pathexp("\1")=g' config_h.SH >s; mv -f s config_h.SH
39e571d4 43sed -e 's=:^/:={^([a-z]:)?[\\\\/]}=g' lib/termcap.pl >s; mv -f s lib/termcap.pl
cb9505ff 44sed -e $SPACKLIST installman >s; mv -f s installman
45sed -e $SPACKLIST lib/ExtUtils/Installed.pm >s; mv -f s lib/ExtUtils/Installed.pm
46sed -e $SPACKLIST lib/ExtUtils/Packlist.pm >s; mv -f s lib/ExtUtils/Packlist.pm
17f71141 47sed -e $SABC t/io/iprefix.t >s; mv -f s t/io/iprefix.t
b8f06700 48sed -e 's=L_ctermid==g' ext/POSIX/Makefile.PL >s; mv -f s ext/POSIX/Makefile.PL
afdf87ad 49sed -e $SPACKLIST lib/ExtUtils/t/Installed.t >s; mv -f s lib/ExtUtils/t/Installed.t