# Install SPMS Software Project Management System
echo "/usr/new: No such directory"
if (!(-d /usr
/new
/lib
)) then
echo "/usr/new/lib: No such directory"
# pexec relies upon the PROJECT environment variable
# which MUST be set to the root directory of the project.
set PATH
= (/usr
/new
/usr
/ucb
/bin
/usr
/bin
)
foreach p
(libhash libpdb libslist libspms libtree
)
cd $PROJECT/src
/lib
/$p/src
sed -e '/###/,$d' < Makefile
> $
$Mf
#install programs in /usr/new
sed -e '/###/,$d' < Makefile
> $
$Mf
# reconstruct Makefile dependencies and update
pexec
-Tupdate "mkmf; make update"
pexec
-Tclean "make clean"
#install manual pages in /usr/man/mann
cp $PROJECT/man
/mann
/*.n
/usr
/man
/mann
# create ~root^ and ~root^usr projects
mkproject
-d -Tproject ~root^
mkproject
-Nusr -Tproject ~root^...
/usr
/src
> /dev
/null
<< 'EOF'
# connect spms project to ~root^usr
mkproject
-d ~root^usr
/new
/spms