Changeset 20303 for greenstone3

Show
Ignore:
Timestamp:
17.08.2009 13:26:28 (11 years ago)
Author:
oranfry
Message:

doover: modeled setup of imagemagick, ghostscript and wvware on the code from greenstone2

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/gs3-setup.sh

    r20302 r20303  
    8383  addtopath PATH "$GSDL3SRCHOME/bin/script" 
    8484  addtopath PATH "$GSDL3SRCHOME/bin" 
    85   addtopath PATH "$GSDL3SRCHOME/gs2build/bin/linux/imagemagick/bin" 
    86   addtopath PATH "$GSDL3SRCHOME/gs2build/bin/darwin/imagemagick/bin" 
    87   addtopath PATH "$GSDL3SRCHOME/gs2build/bin/linux/ghostscript/bin" 
    88   addtopath PATH "$GSDL3SRCHOME/gs2build/bin/darwin/ghostscript/bin" 
    89   addtopath PATH "$GSDL3SRCHOME/gs2build/bin/linux/wv/bin" 
    90   addtopath PATH "$GSDL3SRCHOME/gs2build/bin/darwin/wv/bin" 
    9185  echo "  - Adjusted PATH" 
    9286 
     
    120114  addtopath LD_LIBRARY_PATH "$GSDL3SRCHOME/lib/jni" 
    121115  addtopath DYLD_LIBRARY_PATH "$GSDL3SRCHOME/lib/jni" 
    122   addtopath LD_LIBRARY_PATH "$GSDL3SRCHOME/gs2build/bin/linux/imagemagick/lib" 
    123   addtopath DYLD_LIBRARY_PATH "$GSDL3SRCHOME/gs2build/bin/darwin/imagemagick/lib" 
    124   addtopath LD_LIBRARY_PATH "$GSDL3SRCHOME/gs2build/bin/linux/ghostscript/lib" 
    125   addtopath DYLD_LIBRARY_PATH "$GSDL3SRCHOME/gs2build/bin/darwin/ghostscript/lib" 
    126   addtopath LD_LIBRARY_PATH "$GSDL3SRCHOME/gs2build/bin/linux/wv/lib" 
    127   addtopath DYLD_LIBRARY_PATH "$GSDL3SRCHOME/gs2build/bin/darwin/wv/lib" 
    128116  echo "  - Adjusted LD_LIBRARY_PATH and DYLD_LIBRARY_PATH" 
    129117 
     
    158146  fi 
    159147 
     148  #ImageMagick 
     149  if test -d "$GSDL3SRCHOME/gs2build/bin/$GSDLOS/imagemagick" ; then 
     150    addtopath PATH "$GSDL3SRCHOME/gs2build/bin/$GSDLOS/imagemagick/bin" 
     151    MAGICK_HOME="$GSDL3SRCHOME/gs2build/bin/$GSDLOS/imagemagick" 
     152    export MAGICK_HOME 
     153    if test "$GSDLOS" = "linux"; then 
     154      addtopath LD_LIBRARY_PATH "$GSDL3SRCHOME/gs2build/bin/$GSDLOS/imagemagick/lib" 
     155    elif test "$GSDLOS" = "darwin"; then 
     156      addtopath DYLD_LIBRARY_PATH "$GSDL3SRCHOME/gs2build/bin/$GSDLOS/imagemagick/lib" 
     157    fi 
     158    echo "  - Setup ImageMagick" 
     159  fi 
     160 
     161  #Ghostscript 
     162  if test -d "$GSDL3SRCHOME/gs2build/bin/$GSDLOS/ghostscript"; then 
     163    addtopath PATH "$GSDL3SRCHOME/gs2build/bin/$GSDLOS/ghostscript/bin" 
     164    GS_LIB="$GSDL3SRCHOME/gs2build/bin/$GSDLOS/ghostscript/share/ghostscript/8.63/lib" 
     165    export GS_LIB 
     166    GS_FONTPATH="$GSDL3SRCHOME/gs2build/bin/$GSDLOS/ghostscript/share/ghostscript/8.63/Resource/Font" 
     167    export GS_FONTPATH 
     168    echo "  - Setup GhostScript" 
     169  fi 
     170 
     171  #wvWare 
     172  if test -d "$GSDL3SRCHOME/gs2build/bin/$GSDLOS/wv"; then 
     173    if test "$GSDLOS" = "linux"; then 
     174      addtopath LD_LIBRARY_PATH "$GSDL3SRCHOME/gs2build/bin/$GSDLOS/wv/lib" 
     175    elif test "$GSDLOS" = "darwin"; then 
     176      addtopath DYLD_LIBRARY_PATH "$GSDL3SRCHOME/gs2build/bin/$GSDLOS/wv/lib" 
     177    fi 
     178    echo "  - Setup wvWare" 
     179  fi 
     180 
    160181} 
    161182