Changeset 837362b for common/libs/func_check_version.sh
- Timestamp:
- 12/13/2021 03:05:39 PM (3 years ago)
- Branches:
- ablfs-more, legacy, trunk
- Children:
- 0870a7c
- Parents:
- e57e029
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/libs/func_check_version.sh
re57e029 r837362b 228 228 exit 1 229 229 fi 230 } 231 232 #----------------------------# 233 check_blfs_tools() { # 234 #----------------------------# 235 : << inline_doc 236 In addition to the tools needed for the LFS part, docbook-xml 237 is needed for installing the BLFS tools 238 inline_doc 239 240 # Avoid translation of version strings 241 local LC_ALL=C 242 export LC_ALL 243 230 231 # Now that we do profiling, we need the docbook DTD, and the docbook XSL 232 # stylesheets. 244 233 # Minimal docbook-xml code for testing 245 234 XML_FILE="<?xml version='1.0' encoding='ISO-8859-1'?> 246 <?xml-stylesheet type='text/xsl' href='http://docbook.sourceforge.net/release/xsl/ 1.69.1/xhtml/docbook.xsl'?>235 <?xml-stylesheet type='text/xsl' href='http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl'?> 247 236 <!DOCTYPE article PUBLIC '-//OASIS//DTD DocBook XML V4.5//EN' 248 237 'http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd'> … … 255 244 </article>" 256 245 257 if `echo $XML_FILE | xmllint -nonet -noout -postvalid - 2>/dev/null`; then246 if echo $XML_FILE | xmllint -nonet -noout -postvalid - 2>/dev/null ; then 258 247 check_version "4.5" "4.5" "DocBook XML DTD" 259 248 else 260 echo "Error: you need the Docbook XML DTD for installing BLFS tools" 261 exit 2 249 echo "Error: you need the Docbook XML DTD for running jhalfs" 250 exit 1 251 fi 252 253 if echo $XML_FILE | xsltproc -nonet -noout - 2>/dev/null ; then 254 check_version "current" "current" "DocBook XSL stylesheets" 255 else 256 echo "Error: you need the Docbook XSL stylesheets for running jhalfs" 257 exit 1 262 258 fi 263 259 }
Note:
See TracChangeset
for help on using the changeset viewer.