Changeset 32004 for main/trunk/greenstone2
- Timestamp:
- 2017-09-28T18:35:51+13:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/makegs2.sh
r32003 r32004 1 1 #!/bin/bash 2 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 3 # run as: ./makegs2.sh [gnome-lib] [imagemagick] 4 # If gnome-lib passed in, will compile GS2 using gnome-lib 5 # which checks out gnome-lib src from svn if possible and if needed (if no ext/gnome-lib-minimal) 6 # If you pass in imagemagick, it will grab the appropriate linux/darwin binary, untar 7 # this and put its OS subfolder renamed as imagemagick into the bin/os folder. 6 8 7 docheckout=$1 8 getimagick=$2 9 getgnomelib= 10 getimagick= 11 12 # https://stackoverflow.com/questions/20449680/unix-boolean-operators-a-o 13 if [[ "x$1" == "xgnome-lib" ]]; then 14 getgnomelib=$1 15 elif [[ "x$1" == "ximagemagick" ]]; then 16 getimagick=$1 17 fi 18 19 if [[ "x$2" == "xgnome-lib" ]]; then 20 getgnomelib=$2 21 elif [[ "x$2" == "ximagemagick" ]]; then 22 getimagick=$2 23 fi 24 25 if [ "x$getgnomelib" != "x" ]; then 26 echo "Will be getting gnomelib" 27 fi 28 if [ "x$getimagick" != "x" ]; then 29 echo "Will be getting imagemagick" 30 fi 31 32 if [[ "x$getgnomelib" == "x" && "x$getimagick" == "x" ]]; then 33 echo "No recognised args provided" 34 fi 35 9 36 gsdlhome=`pwd` 10 37 echo "**** GSDLHOME: $gsdlhome" … … 19 46 # Compile by chaining the commands with && so it stops at that stage after an error 20 47 cd $gsdlhome 21 if [ "x$ docheckout" = "xgnome-lib" ]; then48 if [ "x$getgnomelib" = "xgnome-lib" ]; then 22 49 ./configure --enable-gnome-lib-ext --enable-apache-httpd \ 23 50 && make \ … … 34 61 # 5. Message to warn user that the env of this x-term uses gnome-lib 35 62 # and GUIs may not work from this console 36 if [ "x$ docheckout" = "xgnome-lib" ]; then63 if [ "x$getgnomelib" = "xgnome-lib" ]; then 37 64 echo "*** The environment for this console has been set to compile Greenstone with gnome-lib." 38 65 echo "*** As a result, graphical applications may not work well."
Note:
See TracChangeset
for help on using the changeset viewer.