Last change
on this file since 30894 was 28513, checked in by ak19, 11 years ago |
Overhaul of makegs2.sh script: now, instead of doing the logic around whether it needs to compile gnome-lib itself, it just runs configure with the additional enable-gnome-lib-ext flag if the gnome-lib parameter to this script is passed in.
|
-
Property svn:executable
set to
*
|
File size:
1.2 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | # run as: ./makegs2.sh
|
---|
4 | # or ./makegs2.sh gnome-lib to compile GS2 using gnome-lib
|
---|
5 | # which checks out gnome-lib src from svn if needed and if possible
|
---|
6 |
|
---|
7 | docheckout=$1
|
---|
8 | gsdlhome=`pwd`
|
---|
9 | echo "**** GSDLHOME: $gsdlhome"
|
---|
10 |
|
---|
11 | # Compile by chaining the commands with && so it stops at that stage after an error
|
---|
12 | cd $gsdlhome
|
---|
13 | if [ "x$docheckout" = "xgnome-lib" ]; then
|
---|
14 | ./configure --enable-gnome-lib-ext --enable-apache-httpd \
|
---|
15 | && make \
|
---|
16 | && make install
|
---|
17 | else
|
---|
18 | ./configure --enable-apache-httpd \
|
---|
19 | && make \
|
---|
20 | && make install
|
---|
21 | fi
|
---|
22 |
|
---|
23 | status=$?
|
---|
24 | echo "****************************************"
|
---|
25 | if [ $status = 0 ] ; then
|
---|
26 | # 5. Message to warn user that the env of this x-term uses gnome-lib
|
---|
27 | # and GUIs may not work from this console
|
---|
28 | if [ "x$docheckout" = "xgnome-lib" ]; then
|
---|
29 | echo "*** The environment for this console has been set to compile Greenstone with gnome-lib."
|
---|
30 | echo "*** As a result, graphical applications may not work well."
|
---|
31 | echo "*** In such a case, open a new console."
|
---|
32 | else
|
---|
33 | echo "Finished compiling Greenstone2. (Compiled without gnome-lib)"
|
---|
34 | fi
|
---|
35 | else
|
---|
36 | echo "@@@ Error compiling up Greenstone. Return status: $status"
|
---|
37 | fi
|
---|
38 | echo "****************************************"
|
---|
39 |
|
---|
40 |
|
---|
41 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.