Changeset 837362b for common


Ignore:
Timestamp:
12/13/2021 03:05:39 PM (2 years ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
ablfs-more, legacy, trunk
Children:
0870a7c
Parents:
e57e029
Message:

Ticket #1732: add Docbook XSL and XML to check_alfs_tools

This is an oversight of when we moved to profiling and when we
removed the docbook xsl stylesheets from the LFS directory.
Docbook XML DTD and XSL stylesheets are needed, so test them
at start. This has the effect of removing the need for check_blfs_tools.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/libs/func_check_version.sh

    re57e029 r837362b  
    228228    exit 1
    229229  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.
    244233  # Minimal docbook-xml code for testing
    245234  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'?>
    247236<!DOCTYPE article PUBLIC '-//OASIS//DTD DocBook XML V4.5//EN'
    248237  'http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd'>
     
    255244</article>"
    256245
    257   if `echo $XML_FILE | xmllint -nonet -noout -postvalid - 2>/dev/null` ; then
     246  if echo $XML_FILE | xmllint -nonet -noout -postvalid - 2>/dev/null ; then
    258247    check_version "4.5" "4.5" "DocBook XML DTD"
    259248  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
    262258  fi
    263259}
Note: See TracChangeset for help on using the changeset viewer.