- Timestamp:
- 2017-09-28T17:54:34+13:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/makegs2.sh
r31732 r32003 6 6 7 7 docheckout=$1 8 getimagick=$2 8 9 gsdlhome=`pwd` 9 10 echo "**** GSDLHOME: $gsdlhome" … … 50 51 51 52 53 imgpkg= 54 if [ "x$getimagick" = "ximagemagick" ]; then 55 os=`uname` 52 56 57 if [ "x$os" = "xDarwin" ]; then 58 # by default, resort to the Mac Leopard (10.5, kernel 12.6.0)'s imagemagick binary 59 imgpkg=http://trac.greenstone.org/export/head/gs2-extensions/imagemagick/trunk/imagemagick-darwin-10.5.tar.gz 60 61 kernelVersion=`uname -r` 62 # El Capitan is MacOS version 10.11 but its kernelVersion is 15.6.0 63 if [ "x$kernelVersion" = "x15.6.0" ]; then 64 echo "Getting imagemagick built for El Capitan" 65 imgpkg=http://trac.greenstone.org/export/head/gs2-extensions/imagemagick/trunk/imagemagick-darwin-10.11.tar.gz 66 else 67 echo "Getting imagemagick built on Mac Leopard" 68 fi 69 70 pushd ext 71 curl $imgpkg > imagemagick.tar.gz 72 tar -xvzf imagemagick.tar.gz 73 mv imagemagick/darwin ../bin/darwin/imagemagick 74 popd 75 76 else 77 # linux 78 pushd ext 79 if [[ $bitness == *"64"* ]]; then 80 echo "Getting 64 bit imagemagick precompiled binary" 81 wget http://trac.greenstone.org/export/head/gs2-extensions/imagemagick/trunk/imagemagick-linux-x64.tar.gz 82 tar -xvzf imagemagick-linux-x64.tar.gz 83 else 84 echo "Getting 32 bit imagemagick precompiled binary" 85 wget http://trac.greenstone.org/export/head/gs2-extensions/imagemagick/trunk/imagemagick-linux.tar.gz 86 tar -xvzf imagemagick-linux.tar.gz 87 fi 88 89 mv imagemagick/linux ../bin/linux/imagemagick 90 popd 91 fi 92 93 fi
Note:
See TracChangeset
for help on using the changeset viewer.