diff options
author | Perl 5 Porters <perl5-porters@africa.nicoh.com> | 1996-07-26 03:53:27 +0000 |
---|---|---|
committer | Charles Bailey <bailey@genetics.upenn.edu> | 1996-07-26 03:53:27 +0000 |
commit | 396e9e6f77853ce5b5bd54c151a15d6820deba3a (patch) | |
tree | dec367aaa99df9194e1d594e7c4b0a15ea41157c /plan9/setup.rc | |
parent | 62ac1c994e20a7298bfc84e40958ae6c95247bab (diff) | |
download | perl-396e9e6f77853ce5b5bd54c151a15d6820deba3a.tar.gz |
New Plan9 port
Diffstat (limited to 'plan9/setup.rc')
-rw-r--r-- | plan9/setup.rc | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/plan9/setup.rc b/plan9/setup.rc new file mode 100644 index 0000000000..c6ebe86fc8 --- /dev/null +++ b/plan9/setup.rc @@ -0,0 +1,48 @@ +#!/bin/rc +# This is an rc shell script which unpacks the perl distribution, builds +# directories, and puts files where they belong. +# To use, just run it from within the plan9 subdirectory with the appropriate +# permissions. +# Last modified 6/30/96 by: +# Luther Huffman, Strategic Computer Solutions, Inc., lutherh@stratcom.com + +. buildinfo +builddir = `{ cd .. ; pwd } +if(flag a) platforms = (386 mips sparc 68020) +if not platforms = $objtype +sourcedir=/sys/src/cmd/perl/$p9pvers +privlib=/sys/lib/perl +sitelib=$privlib/site_perl + +#Build source directory +if (test ! -d /sys/src/cmd/perl) mkdir /sys/src/cmd/perl +if (test ! -d $sourcedir) mkdir $sourcedir + +#Populate source directory +echo Building source directories ... +{cd $builddir ; tar c .} | { cd $sourcedir ; tar x} +cp $builddir/plan9/config.plan9 $sourcedir/config.plan9 +cp $builddir/plan9/plan9.c $builddir/plan9/plan9ish.h $builddir/plan9/mkfile $sourcedir +cd $sourcedir/lib ; rm -rf * + +#Build library directories +echo Building library directories ... +if (test ! -d $privlib) mkdir $privlib +if (test ! -d $privlib/auto) mkdir $privlib/auto +if (test ! -d $sitelib) mkdir $sitelib +for(i in $platforms){ + archlib=/$i/lib/perl/$p9pvers + sitearch=$archlib/site_perl + corelib=$archlib/CORE + arpalib=$corelib/arpa + if (test ! -d /$i/lib/perl) mkdir /$i/lib/perl + if (test ! -d $archlib) mkdir $archlib + if (test ! -d $sitearch) mkdir $sitearch + if (test ! -d $corelib) mkdir $corelib + if (test ! -d $arpalib) mkdir $arpalib + cp $builddir/*.h $builddir/plan9/*.h $corelib + cp $builddir/plan9/arpa/*.h $arpalib +} + +#Populate library directories +{cd $builddir/lib ; tar c . } | {cd $privlib ; tar x } |