ln='cp'
pager='less'
-# This is because of the filename conversion under DOS
+# fix extension names under DOS
repair()
{
- echo "$1" | tr '[a-z]' '[A-Z]' | sed -e 's/CNTL/cntl/'\
- -e 's/_FIL/_File/g' -e 's/PCODE/pcode/' -e 's/OCKET/ocket/'\
- -e 's/leE/le/g' -e 's/ATTRS/attrs/' -e 's/HREAD/hread/'
+ echo "$1" | \
+ sed \
+ -e 's/^b/B/'\
+ -e 's=\([^a-z_]\)b=\1B='\
+ -e 's/db_file/DB_File/'\
+ -e 's/dynaload/DynaLoader/'\
+ -e 's/errno/Errno/'\
+ -e 's/fcntl/Fcntl/'\
+ -e 's/gdbm_fil/GDBM_File/'\
+ -e 's/io/IO/'\
+ -e 's/ndbm_fil/NDBM_File/'\
+ -e 's/odbm_fil/ODBM_File/'\
+ -e 's/opcode/Opcode/'\
+ -e 's/posix/POSIX/'\
+ -e 's/sdbm_fil/SDBM_File/'\
+ -e 's/socket/Socket/'\
+ -e 's/thread/Thread/'
}
static_ext=$(repair "$static_ext")
extensions=$(repair "$extensions")
known_extensions=$(repair "$known_extensions")
+nonxs_ext=$(repair "$nonxs_ext")
# I use Dos::UseLFN in AutoSplit.pm to override this under win0.95
d_flexfnam='undef'
sed -e $SEXISTS -e $SLIST -e $SCONFIG Makefile.SH |tr -d '\r' >s; mv -f s Makefile.SH
sed -e $SEXISTS -e $SPACKLIST lib/ExtUtils/Install.pm |tr -d '\r' >s; mv -f s lib/ExtUtils/Install.pm
sed -e $SEXISTS -e $SPACKLIST lib/ExtUtils/MM_Unix.pm |tr -d '\r' >s; mv -f s lib/ExtUtils/MM_Unix.pm
-sed -e $SEXISTS installperl >s; mv -f s installperl
+sed -e $SEXISTS -e $SPACKLIST installperl >s; mv -f s installperl
sed -e $SPOD2HTML lib/Pod/Html.pm |tr -d '\r' >s; mv -f s lib/Pod/Html.pm
sed -e $SCC -e $SLIST -e $SFILEC -e $SCOR -e $SDEPTMP -e $SHSED makedepend.SH |tr -d '\r' >s; mv -f s makedepend.SH
sed -e $SCPP t/comp/cpp.aux |tr -d '\r' >s; mv -f s t/comp/cpp.aux
sed -e $SLIST x2p/Makefile.SH |tr -d '\r' >s; mv -f s x2p/Makefile.SH
sed -e 's=^#define.\([A-Z]\+\)_EXP.*$=#define \1_EXP djgpp_pathexp("\1")=g' config_h.SH >s; mv -f s config_h.SH
sed -e 's=:^/:={^([a-z]:)?[\\\\/]}=g' lib/termcap.pl >s; mv -f s lib/termcap.pl
+sed -e $SPACKLIST installman >s; mv -f s installman
+sed -e $SPACKLIST lib/ExtUtils/Installed.pm >s; mv -f s lib/ExtUtils/Installed.pm
+sed -e $SPACKLIST lib/ExtUtils/Packlist.pm >s; mv -f s lib/ExtUtils/Packlist.pm
+sed -e $SPACKLIST lib/ExtUtils/inst >s; mv -f s lib/ExtUtils/inst