- Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathinstall_script
More file actions
executable file
·58 lines (54 loc) · 1.13 KB
/
install_script
File metadata and controls
executable file
·58 lines (54 loc) · 1.13 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
#!/bin/sh
if (test "$1" = "--debug") then
D="--debug";
OPT=-g;
shift
else
D="";
OPT=${OPT:=-O}
fi
export OPT
if (test ! -d $1) then
echo -n "$1 is not a directory; create it? (y/[n])";
y='n'
read y;
if (test ${y} = 'y') then
mkdir $1; mkdir $1/bin; mkdir $1/lib; mkdir $1/include
if (test ! -d $1) then
echo "Could not create $1, installation aborted.";
exit 1
fi
else
echo 'Installation aborted.';
exit 1
fi
fi
prefix=`(cd $1;pwd)`
if (test "$2" = "" ) then
pyprefix=${prefix}
else
pyprefix=`(cd $2;pwd)`
fi
if (test ! -d build) then
# Unpack everything into build
mkdir build
/bin/cp *.gz build
cd build
chmod +w *.gz
for x in *.gz;
do
echo "$x";
gunzip -f $x;
tar xf `basename $x .gz`;
/bin/rm -f `basename $x .gz`
done
cd ..
fi
cd build
echo "Installation to ${prefix}"
# Make sure /usr/bin/env etc. finds 'ourselves'
PATH="${prefix}/bin:${PATH}"; export PATH
#ioapiTools
(cd ioapiTools*; \
${pyprefix}/bin/python setup.py build ${D} install --prefix=${prefix}\
)