1 |
#!/bin/sh |
2 |
|
3 |
HTTPSERVER="http://killigrew.ukc.ac.uk/" |
4 |
|
5 |
echo "Generating Makefile includes" |
6 |
echo "REPORTSROOT="`pwd` > Config.inc |
7 |
echo "include \$(REPORTSROOT)/Config2.inc" >> Config.inc |
8 |
|
9 |
if test -d "build/lib"; then \ |
10 |
cd build/lib; |
11 |
else \ |
12 |
mkdir build; |
13 |
cd build; |
14 |
mkdir lib; |
15 |
cd lib; |
16 |
fi |
17 |
|
18 |
echo "Checking for required libraries" |
19 |
|
20 |
if test -r "jaxp.jar"; then \ |
21 |
echo " jaxp.jar found"; \ |
22 |
else \ |
23 |
echo " jaxp.jar not found, fetching from ${HTTPSERVER}jaxp.jar"; \ |
24 |
/usr/local/bin/wget -nv ${HTTPSERVER}jaxp.jar; \ |
25 |
fi |
26 |
|
27 |
if test -r "crimson.jar"; then \ |
28 |
echo " crimson.jar found"; \ |
29 |
else \ |
30 |
echo " crimson.jar not found, fetching from ${HTTPSERVER}crimson.jar"; \ |
31 |
/usr/local/bin/wget -nv ${HTTPSERVER}crimson.jar; \ |
32 |
fi |
33 |
|
34 |
if test -r "mm.mysql-2.0.2-bin.jar"; then \ |
35 |
echo " mm.mysql-2.0.2-bin.jar found"; \ |
36 |
else \ |
37 |
echo " mm.mysql-2.0.2-bin.jar not found, fetching from ${HTTPSERVER}mm.mysql-2.0.2-bin.jar"; \ |
38 |
/usr/local/bin/wget -nv ${HTTPSERVER}mm.mysql-2.0.2-bin.jar; \ |
39 |
fi |
40 |
|
41 |
if test -r "Acme.jar"; then \ |
42 |
echo " Acme.jar found"; \ |
43 |
else \ |
44 |
echo " Acme.jar not found, fetching from ${HTTPSERVER}Acme.jar"; \ |
45 |
/usr/local/bin/wget -nv ${HTTPSERVER}Acme.jar; \ |
46 |
fi |
47 |
|
48 |
if test -r "iscream-util.jar"; then \ |
49 |
echo " iscream-util.jar found"; \ |
50 |
else \ |
51 |
echo " iscream-util.jar not found, fetching from ${HTTPSERVER}iscream-util.jar"; \ |
52 |
/usr/local/bin/wget -nv ${HTTPSERVER}iscream-util.jar; \ |
53 |
fi |