-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathInstall.bash
More file actions
62 lines (49 loc) · 1.25 KB
/
Install.bash
File metadata and controls
62 lines (49 loc) · 1.25 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
#!/bin/bash
set -e
set -u
INSTALL_DIR=${FLOWPSI_INSTALL_PATH-/usr/local}
INSTALL_PATH=$INSTALL_DIR/$FLOWPSI_INSTALL_DIR
echo INSTALL_PATH = $INSTALL_PATH
echo Making Directories
mkdir -p $INSTALL_PATH
mkdir -p $INSTALL_PATH/lib
mkdir -p $INSTALL_PATH/bin
mkdir -p $INSTALL_PATH/docs
cp flowpsi.conf $INSTALL_PATH/flowpsi.conf
cp revision.conf $INSTALL_PATH/revision.conf
echo Installing Library Files
LIB_POSTFIX="so"
ARCH=${LOCI_ARCH-`uname -s`}
if [ $ARCH == "Darwin" ]; then
LIB_POSTFIX="dylib"
fi
echo Installing flowpsi binaries
cp bin/* $INSTALL_PATH/bin
cp lib/* $INSTALL_PATH/lib
mkdir -p $INSTALL_PATH/docs
if [ -e guide/flowPsiGuide.pdf ] ; then
cp guide/flowPsiGuide.pdf $INSTALL_PATH/docs/flowPsiGuide.pdf
fi
echo Installing \#include files
mkdir -p $INSTALL_PATH/include
cp include/*.h include/*.lh $INSTALL_PATH/include
if [ -d turbulence ] ; then
echo Making turbulence subdirectories...
mkdir -p $INSTALL_PATH/include/turbulence
cd turbulence
for i in * ; do
if [ -d $i ]; then
mkdir -p $INSTALL_PATH/include/turbulence/$i
echo $i:
cd $i
for j in *.h *.lh; do
if [ -f $j ]; then
cp $j $INSTALL_PATH/include/turbulence/$i/$j
fi
done
cd ..
fi
done
fi
# make directories open to everyone
chmod -R a+rX $INSTALL_PATH