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' 20SARGV='s=Io_argv\(.\)\.=i\1_=g' 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' 27SDOTTMP='s=\.tmp=_tmp=g' 28 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 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 33sed -e $SEXISTS -e $SPACKLIST installperl >s; mv -f s installperl 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 37sed -e $SARGV -e $SDOTTMP t/io/argv.t >s; mv -f s t/io/argv.t 38sed -e $SABC t/io/inplace.t >s; mv -f s t/io/inplace.t 39sed -e $SDBMX -e $SDBHASH ext/GDBM_File/t/gdbm.t >s; mv -f s ext/GDBM_File/t/gdbm.t 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 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 43sed -e 's=:^/:={^([a-z]:)?[\\\\/]}=g' lib/termcap.pl >s; mv -f s lib/termcap.pl 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 47sed -e $SABC t/io/iprefix.t >s; mv -f s t/io/iprefix.t 48sed -e 's=L_ctermid==g' ext/POSIX/Makefile.PL >s; mv -f s ext/POSIX/Makefile.PL 49sed -e $SPACKLIST lib/ExtUtils/t/Installed.t >s; mv -f s lib/ExtUtils/t/Installed.t 50