|
|
1.1 root 1: #! /bin/csh -f
2: #
3: # Install SPMS Software Project Management System
4: #
5:
6: # DESTDIR is the one possible arg
7: set D =
8: if ($#argv > 0) set D = $1
9:
10: if (!(-d $D/usr/new)) then
11: echo "$D/usr/new: No such directory"
12: exit(1)
13: endif
14: if (!(-d $D/usr/new/lib)) then
15: echo "$D/usr/new/lib: No such directory"
16: exit(1)
17: endif
18: if (!(-d $D/usr/man/mann)) then
19: echo "$D/usr/man/mann: No such directory"
20: exit(1)
21: endif
22:
23: cd ..
24: setenv PROJECT $cwd
25:
26: set PATH = (/usr/new /usr/ucb /bin /usr/bin)
27:
28: #install libraries
29: foreach p (libhash libpdb libslist libspms libtree)
30: cd $PROJECT/src/lib/$p/src
31: sed -e '/###/,$d' < Makefile > $$Mf
32: mv $$Mf Makefile
33: make install
34: end
35:
36: #install lib programs & data files in /usr/new/lib
37: foreach p (pgrep phelp)
38: cd $PROJECT/src/lib/$p
39: sed -e '/###/,$d' < Makefile > $$Mf
40: mv $$Mf Makefile
41: make DEST=${D}/usr/new/lib install
42: end
43:
44: #install programs in /usr/new
45: cd $PROJECT/src/bin
46: foreach p (*)
47: cd $PROJECT/src/bin/$p
48: sed -e '/###/,$d' < Makefile > $$Mf
49: mv $$Mf Makefile
50: make DEST=${D}/usr/new install
51: end
52:
53: #install manual pages in /usr/man/mann
54: cp $PROJECT/man/mann/*.n $D/usr/man/mann
55:
56: exit(0)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.