| 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=Io_argv\(.\)\.=i\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 | SDOTTMP='s=\.tmp=_tmp=g'
|
|---|
| 28 |
|
|---|
| 29 | 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
|
|---|
| 30 | sed -e $SEXISTS -e $SLIST -e $SCONFIG Makefile.SH |tr -d '\r' >s; mv -f s Makefile.SH
|
|---|
| 31 | sed -e $SEXISTS -e $SPACKLIST lib/ExtUtils/Install.pm |tr -d '\r' >s; mv -f s lib/ExtUtils/Install.pm
|
|---|
| 32 | sed -e $SEXISTS -e $SPACKLIST lib/ExtUtils/MM_Unix.pm |tr -d '\r' >s; mv -f s lib/ExtUtils/MM_Unix.pm
|
|---|
| 33 | sed -e $SEXISTS -e $SPACKLIST installperl >s; mv -f s installperl
|
|---|
| 34 | sed -e $SPOD2HTML lib/Pod/Html.pm |tr -d '\r' >s; mv -f s lib/Pod/Html.pm
|
|---|
| 35 | sed -e $SCC -e $SLIST -e $SFILEC -e $SCOR -e $SDEPTMP -e $SHSED makedepend.SH |tr -d '\r' >s; mv -f s makedepend.SH
|
|---|
| 36 | sed -e $SCPP t/comp/cpp.aux |tr -d '\r' >s; mv -f s t/comp/cpp.aux
|
|---|
| 37 | sed -e $SARGV -e $SDOTTMP t/io/argv.t >s; mv -f s t/io/argv.t
|
|---|
| 38 | sed -e $SABC t/io/inplace.t >s; mv -f s t/io/inplace.t
|
|---|
| 39 | sed -e $SDBMX -e $SDBHASH ext/GDBM_File/t/gdbm.t >s; mv -f s ext/GDBM_File/t/gdbm.t
|
|---|
| 40 | sed -e $SSTAT -e $STMP2 t/op/stat.t >s; mv -f s t/op/stat.t
|
|---|
| 41 | sed -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
|
|---|
| 43 | sed -e 's=:^/:={^([a-z]:)?[\\\\/]}=g' lib/termcap.pl >s; mv -f s lib/termcap.pl
|
|---|
| 44 | sed -e $SPACKLIST installman >s; mv -f s installman
|
|---|
| 45 | sed -e $SPACKLIST lib/ExtUtils/Installed.pm >s; mv -f s lib/ExtUtils/Installed.pm
|
|---|
| 46 | sed -e $SPACKLIST lib/ExtUtils/Packlist.pm >s; mv -f s lib/ExtUtils/Packlist.pm
|
|---|
| 47 | sed -e $SABC t/io/iprefix.t >s; mv -f s t/io/iprefix.t
|
|---|
| 48 | sed -e 's=L_ctermid==g' ext/POSIX/Makefile.PL >s; mv -f s ext/POSIX/Makefile.PL
|
|---|
| 49 | sed -e $SPACKLIST lib/ExtUtils/t/Installed.t >s; mv -f s lib/ExtUtils/t/Installed.t
|
|---|