Last change
on this file since 38935 was 38438, checked in by davidb, 6 months ago |
Now checks for a README.txt file
|
-
Property svn:executable
set to
*
|
File size:
1.6 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | if [ $# = 0 ] ; then
|
---|
4 | echo "" >&2
|
---|
5 | echo "Usage: $0 <installation-name>" >&2
|
---|
6 | echo "" >&2
|
---|
7 | exit 1
|
---|
8 | fi
|
---|
9 |
|
---|
10 | installation=$1
|
---|
11 |
|
---|
12 | . ./_gs-wget-check.bash
|
---|
13 |
|
---|
14 |
|
---|
15 | echo ""
|
---|
16 | echo "Checking for interface ..."
|
---|
17 |
|
---|
18 | wget --no-check-certificate -q -O - https://svn.greenstone.org/gs3-installations/$installation/trunk/interfaces/$installation > /dev/null
|
---|
19 | interface_status=$?
|
---|
20 |
|
---|
21 | if [ $interface_status == 0 ] ; then
|
---|
22 | echo "... found $intstallation"
|
---|
23 | ./get-installation-interface.sh $installation
|
---|
24 | else
|
---|
25 | echo "... not found => nothing to download"
|
---|
26 | fi
|
---|
27 |
|
---|
28 |
|
---|
29 | echo ""
|
---|
30 | echo "Checking for site ..."
|
---|
31 |
|
---|
32 | wget --no-check-certificate -q -O - https://svn.greenstone.org/gs3-installations/$installation/trunk/sites/$installation > /dev/null
|
---|
33 | site_status=$?
|
---|
34 |
|
---|
35 | if [ $site_status == 0 ] ; then
|
---|
36 | echo "... found $intstallation"
|
---|
37 | ./get-installation-site.sh $installation
|
---|
38 | else
|
---|
39 | echo "... not found => nothing to download"
|
---|
40 | fi
|
---|
41 |
|
---|
42 | echo ""
|
---|
43 |
|
---|
44 | echo "Checking for installation specific README instructions ..."
|
---|
45 | wget --no-check-certificate -q -O - https://svn.greenstone.org/gs3-installations/$installation/trunk/README.txt > /dev/null
|
---|
46 | install_readme_status=$?
|
---|
47 |
|
---|
48 | if [ $install_readme_status == 0 ] ; then
|
---|
49 | echo "... found"
|
---|
50 | echo "----"
|
---|
51 | wget --no-check-certificate -q -O - https://svn.greenstone.org/gs3-installations/$installation/trunk/README.txt
|
---|
52 | echo "----"
|
---|
53 | else
|
---|
54 | echo "... none found"
|
---|
55 | fi
|
---|
56 |
|
---|
57 | echo ""
|
---|
58 |
|
---|
59 | if [ $interface_status == 0 ] || [ $site_status == 0 ] ; then
|
---|
60 | echo "----"
|
---|
61 | echo "To use the checked out installation, update:"
|
---|
62 | echo " \$GSDL3SRCHOME/resources/web/servlet.xml.in"
|
---|
63 | echo "And restart the server"
|
---|
64 | echo "----"
|
---|
65 | echo ""
|
---|
66 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.