-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInstall
More file actions
executable file
·74 lines (57 loc) · 1.48 KB
/
Install
File metadata and controls
executable file
·74 lines (57 loc) · 1.48 KB
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
72
73
74
#!/bin/csh
#
# Install
#
cd `dirname $0` && source ./Configuration
# create server side include file for ftp url
echo "$FTPURL" > includes/ftp_url.html
# link index page from FTP report directory
rm -rf ${FTPREPORTDIR}/index.shtml ${FTPREPORTDIR}/index.html
rm -rf ${FTPREPORTDIR}/includes
cp ${PUBRPTS}/index.shtml ${FTPREPORTDIR}/index.shtml
cp -r ${PUBRPTS}/includes ${FTPREPORTDIR}/includes
#
# permissions
#
chmod 664 Configuration.* HISTORY *.shtml
chmod 775 *.csh */*.py */*.sql Install
#
# directories
#
if ( ! -d ${PUBREPORTDIR} ) then
mkdir -p ${PUBREPORTDIR}
endif
if ( ! -d ${REPORTOUTPUTDIR} ) then
mkdir -p ${REPORTOUTPUTDIR}
endif
if ( ! -d ${REPORTOUTPUTDIR}/mgimarkerfeed ) then
mkdir -p ${REPORTOUTPUTDIR}/mgimarkerfeed
endif
if ( ! -d ${REPORTLOGSDIR} ) then
mkdir -p ${REPORTLOGSDIR}
endif
if ( ! -d ${IPHONEARCHIVE} ) then
mkdir -p ${IPHONEARCHIVE}
endif
if ( ! -d ${CVDCDIR} ) then
mkdir -p ${CVDCDIR}
endif
if ( ! -d ${GXDRNASEQDIR} ) then
mkdir -p ${GXDRNASEQDIR}
endif
if ( ${SERVER_NAME} == "bhmgiapp01" || ${SERVER_NAME} == "bhmgidevapp01" ) then
# provide a link to the Mammalian Phenotype vocabulary
cd ${REPORTOUTPUTDIR}
foreach f (${MPFILES})
rm -rf $f
ln -s ${MPVOCSOURCE}/$f .
end
# provide a link to the Adult Mouse Anatomy vocabulary
cd ${REPORTOUTPUTDIR}
foreach f (${MAFILES})
rm -rf $f
ln -s ${MAVOCSOURCE}/$f .
end
endif
cd ${FTPREPORTDIR}
ln -s index.shtml index.html