| 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
|
|---|
|
|---|