Changeset 6657


Ignore:
Timestamp:
2004-01-29T14:31:30+13:00 (20 years ago)
Author:
jmt12
Message:

Temporarily disabled wget error messages as they aren't multilingual, and we have the UNESCO multilingual prototype release bearing down upon us.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/gli.sh

    r6624 r6657  
    123123
    124124wok="NoWGet"
     125
     126# Commented out until after UNESCO release
    125127# Some users may set the above line manually
    126 if [ "$wgetpath" == "" ]; then
    127     # Check if WGet is on the search path
    128     wgetpath=`which wget 2> /dev/null`
    129 fi
     128#if [ "$wgetpath" == "" ]; then
     129#    # Check if WGet is on the search path
     130#    wgetpath=`which wget 2> /dev/null`
     131#fi
    130132
    131133# Check that a WGet executable has been found
    132 echo "Checking WGet: $wgetpath"
    133 if [ ! -x "$wgetpath" ]; then
    134     echo
    135     echo "Failed to locate an appropriate version of WGet. Web mirroring will"
    136     echo "be disabled. Greenstone Librarian Interface requires WGet installed"
    137     echo "in order to fully access this feature."
    138 else
     134#echo "Checking WGet: $wgetpath"
     135#if [ ! -x "$wgetpath" ]; then
     136#    echo
     137#    echo "Failed to locate an appropriate version of WGet. Web mirroring will"
     138#    echo "be disabled. Greenstone Librarian Interface requires WGet installed"
     139#    echo "in order to fully access this feature."
     140#else
    139141    ## -- Check the version of WGet is new enough (1.9 or higher) to run properly --
    140     wgetversion=`$wgetpath --version 2>&1 | sed -n 's/^GNU Wget \(.*\)/\1/p'`   
    141     wvmajor=`echo $wgetversion | sed -n 's/^\([0-9]*\).*$/\1/p'`
    142     wvminor=`echo $wgetversion | sed -n 's/^[0-9]*\.\(.*\)$/\1/p'`
     142#    wgetversion=`$wgetpath --version 2>&1 | sed -n 's/^GNU Wget \(.*\)/\1/p'`   
     143#    wvmajor=`echo $wgetversion | sed -n 's/^\([0-9]*\).*$/\1/p'`
     144#    wvminor=`echo $wgetversion | sed -n 's/^[0-9]*\.\(.*\)$/\1/p'`
    143145
    144     wok="WGet1.9"
    145     if [ $wvmajor -lt 1 ] ; then
    146     wok="<WGet1.9"
    147     fi
    148     if [ $wvmajor -eq 1 ] && [ $wvminor -lt 9 ] ; then
    149     wok="<WGet1.9"
    150     fi
    151     if [ $wok == "<WGet1.9" ] ; then
    152     echo
    153     echo "The version of the WGet you have installed has a known bug when"
    154     echo "mirroring files which contain encoded characters such as space and"
    155     echo "tilde in their URL. While this shouldn't be a problem, we recommend"
    156         echo "installing WGet 1.9 or higher."
    157     fi
    158 fi
     146#    wok="WGet1.9"
     147#    if [ $wvmajor -lt 1 ] ; then
     148#   wok="<WGet1.9"
     149#    fi
     150#    if [ $wvmajor -eq 1 ] && [ $wvminor -lt 9 ] ; then
     151#   wok="<WGet1.9"
     152#    fi
     153#    if [ $wok == "<WGet1.9" ] ; then
     154#   echo
     155#   echo "The version of the WGet you have installed has a known bug when"
     156#   echo "mirroring files which contain encoded characters such as space and"
     157#   echo "tilde in their URL. While this shouldn't be a problem, we recommend"
     158#        echo "installing WGet 1.9 or higher."
     159#    fi
     160#fi
    159161
    160162## ---- Check that the GLI has been compiled ----
Note: See TracChangeset for help on using the changeset viewer.