Changeset 6657
- Timestamp:
- 2004-01-29T14:31:30+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/gli.sh
r6624 r6657 123 123 124 124 wok="NoWGet" 125 126 # Commented out until after UNESCO release 125 127 # Some users may set the above line manually 126 if [ "$wgetpath" == "" ]; then127 # Check if WGet is on the search path128 wgetpath=`which wget 2> /dev/null`129 fi128 #if [ "$wgetpath" == "" ]; then 129 # # Check if WGet is on the search path 130 # wgetpath=`which wget 2> /dev/null` 131 #fi 130 132 131 133 # Check that a WGet executable has been found 132 echo "Checking WGet: $wgetpath"133 if [ ! -x "$wgetpath" ]; then134 echo135 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 else134 #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 139 141 ## -- 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'` 143 145 144 wok="WGet1.9"145 if [ $wvmajor -lt 1 ] ; then146 wok="<WGet1.9"147 fi148 if [ $wvmajor -eq 1 ] && [ $wvminor -lt 9 ] ; then149 wok="<WGet1.9"150 fi151 if [ $wok == "<WGet1.9" ] ; then152 echo153 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 fi158 fi146 # 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 159 161 160 162 ## ---- Check that the GLI has been compiled ----
Note:
See TracChangeset
for help on using the changeset viewer.