-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathINSTALL.sh
executable file
·39 lines (30 loc) · 1000 Bytes
/
INSTALL.sh
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
#!/bin/bash
# defaults, edit to suit
# must check here before using UNINSTALL.sh
if [[ $HERE = '' ]]; then
HERE=$HOME/local/adm-bssn/
fi;
MyBin=$HERE/bin/
MyLib=$HERE/lib/
MyTex=$HERE/tex/
# Parse the command-line options
while getopts 'b:l:t:h' option
do
case "$option" in
"b") MyBin="$OPTARG" ;;
"l") MyLib="$OPTARG" ;;
"t") MyTex="$OPTARG" ;;
"h") echo "usage : INSTALL.sh [-bBIN] [-lLIB] [-tTEX]"
echo "options : -b : where to find the binaries and shell scripts"
echo " -l : where to find the python libraries"
echo " -t : where to find the LaTeX files "
echo " -h : this help message"
exit ;;
?) echo "INSTALL.sh: Unknown option specified."
exit ;;
esac
done
mkdir -p $MyBin $MyLib $MyTex
rm -rf utilities/bin utilities/obj
(cd utilities; build.sh; cp bin/* $MyBin)
(cd hybrid-latex; INSTALL.sh -b $MyBin -l $MyLib -t $MyTex)