-
Notifications
You must be signed in to change notification settings - Fork 0
/
Install
executable file
·72 lines (59 loc) · 1.11 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
63
64
65
66
67
68
69
70
71
#!/bin/sh
#
# Installation script
#
Usage=Install
#
# Function called when the install fails.
#
installFailed ()
{
echo "Installation Failed: `date`"
exit 1
}
#
# Verify the arguments to the script, there shouldn't be any
#
if [ $# -ne 0 ]
then
echo "Usage: ${Usage}"
installFailed
fi
#
# Make sure config files exist
#
cd `dirname $0`
cp -r goload.config.default goload.config
cp -r goannot.config.default goannot.config
cp -r goannotdelete.config.default goannotdelete.config
# establish the config files
MAIN_CONFIG=goload.config
# Make sure config file exists and source it
if [ -r ${MAIN_CONFIG} ]
then
echo "Source ${MAIN_CONFIG}"
. ${MAIN_CONFIG}
else
echo "Cannot source configuration file: ${MAIN_CONFIG}"
installFailed
fi
# Create the input directory if it doesn't exist.
#
if [ ! -d ${INPUTDIR} ]
then
mkdir -p ${INPUTDIR}
fi
# Check to see if this is a development installation
#
DEV=""
if [ "${INSTALL_TYPE}" = "dev" ]
then
DEV="-d"
fi
#
# run DLAInstall for each configuration file
#
echo 'running DLAINSTALL'
${DLAINSTALL} ${DEV}
# remove old *pyc
rm -rf lib/*pyc