Changeset 91d7db1 for common/libs
- Timestamp:
- 03/20/2013 05:28:03 PM (12 years ago)
- Branches:
- ablfs
- Children:
- c88b48d
- Parents:
- 7b9c8a0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/libs/func_check_version.sh
r7b9c8a0 r91d7db1 130 130 fi 131 131 132 # Before checking libmxl2 and libxslt version information, ensure tools needed from those 133 # packages are actually available. Avoids a small cosmetic bug of book version information 134 # not being retrieved if xmllint is unavailable, especially when on recent non-LFS hosts. 135 136 XMLLINT_LOC="$(whereis -b xmllint | cut -d" " -f2)" 137 XSLTPROC_LOC="$(whereis -b xsltproc | cut -d" " -f2)" 138 XML_NOTE_MSG="${nl_} ${BOLD} This can happen when running jhalfs on non-LFS hosts. ${OFF}" 139 140 if [ ! -x $XMLLINT_LOC ]; then 141 echo "${nl_}\"${RED}xmllint${OFF}\" ${BOLD}must be installed on your system for jhalfs to run" 142 echo ${XML_NOTE_MSG} 143 exit 1 144 fi 145 146 if [ -x $XSLTPROC_LOC ]; then 147 132 148 # Check for minimum libxml2 and libxslt versions 133 149 xsltprocVer=$(xsltproc -V | head -n1 ) … … 138 154 check_version "2.06.20" "${libxmlVer:0:1}.${libxmlVer:1:2}.${libxmlVer:3:2}" "LIBXML2" 139 155 check_version "1.01.14" "${libxsltVer:0:1}.${libxsltVer:1:2}.${libxsltVer:3:2}" "LIBXSLT" 140 156 157 else 158 echo "${nl_}\"${RED}xsltproc${OFF}\" ${BOLD}must be installed on your system for jhalfs to run" 159 echo ${XML_NOTE_MSG} 160 exit 1 161 fi 141 162 # The next versions checks are required only when BLFS_TOOL is set and 142 163 # this dependencies has not be selected for installation
Note:
See TracChangeset
for help on using the changeset viewer.