-
Notifications
You must be signed in to change notification settings - Fork 0
/
Install
executable file
·63 lines (51 loc) · 1.48 KB
/
Install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/sh
# Program: Install
# Purpose: Install script for the Green Book
# Assumptions: that this script is run from the directory which contains it
#
# If the MGICONFIG environment variable does not have a local override,
# use the default "live" settings.
#
if [ "${MGICONFIG}" = "" ]
then
MGICONFIG=/usr/local/mgi/live/mgiconfig
export MGICONFIG
fi
. ${MGICONFIG}/master.config.sh
###--- Global Variables ---###
TOP=`pwd`
CONFIGURATION=Configuration
#####################################################################
### MAIN LOGIC
#####################################################################
###--- Config setup and reading of non-include parameters --------###
if test ! -r $CONFIGURATION
then
echo "Missing configuration file. Please create $CONFIGURATION."
exit 1
fi
exec 4<&0
exec < $CONFIGURATION
while read name value junk
do
case "$name" in
LIBDIRS)
LIBDIRS=$value;;
CONFIGPATH)
CONFIGPATH=$value;;
esac
done
exec 0<&4
###--- Add link to configuration python executable ---------------###
if [ -h Configuration.pyc ]; then
rm Configuration.pyc
fi
ln -s $CONFIGPATH Configuration.pyc
if [ -h python ]; then
rm python
fi
ln -s $PYTHON python
###--- Generate the include directory ----------------------------###
gen_includes
chmod -f 750 Configuration Configuration.defaults gen_includes HISTORY include Install www
chgrp -f www Configuration Configuration.defaults gen_includes HISTORY include Install www