root/main/trunk/greenstone2/makegs2.sh @ 28513

Revision 28513, 1.2 KB (checked in by ak19, 6 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 *
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
7docheckout=$1
8gsdlhome=`pwd`
9echo "**** GSDLHOME: $gsdlhome"
10
11# Compile by chaining the commands with && so it stops at that stage after an error
12cd $gsdlhome
13if [ "x$docheckout" = "xgnome-lib" ]; then
14    ./configure --enable-gnome-lib-ext --enable-apache-httpd \
15    && make \
16    && make install
17else
18    ./configure --enable-apache-httpd \
19    && make \
20    && make install
21fi
22
23status=$?
24echo "****************************************"
25if [ $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
35else
36    echo "@@@ Error compiling up Greenstone. Return status: $status"
37fi
38echo "****************************************"   
39
40
41
Note: See TracBrowser for help on using the browser.