/[gentoo-src]/build-docbook-catalog/build-docbook-catalog
Gentoo

Diff of /build-docbook-catalog/build-docbook-catalog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.10 Revision 1.11
1#!/bin/bash 1#!/bin/bash
2# $Header: /var/cvsroot/gentoo-src/build-docbook-catalog/build-docbook-catalog,v 1.10 2012/03/27 22:39:03 vapier Exp $ 2# $Header: /var/cvsroot/gentoo-src/build-docbook-catalog/build-docbook-catalog,v 1.11 2012/03/27 22:41:10 vapier Exp $
3# 3#
4# build-docbook-catalog: populate /etc/xml/docbook based in 4# build-docbook-catalog: populate /etc/xml/docbook based in
5# installed docbook-xml-dtd versions. 5# installed docbook-xml-dtd versions.
6# 6#
7# Copyright 2004-2012 Gentoo Foundation 7# Copyright 2004-2012 Gentoo Foundation
91 91
92# 92#
93# fill in the DTDS variable based on installed versions 93# fill in the DTDS variable based on installed versions
94# 94#
95set_dtds() { 95set_dtds() {
96 DTDS= SIMPLE_DTS=
97
98 if [[ -d ${DOCBOOKDIR} ]] ; then
96 DTDS=$(find ${DOCBOOKDIR} -path '*/xml-dtd-*/docbookx.dtd') 99 DTDS=$(find ${DOCBOOKDIR} -path '*/xml-dtd-*/docbookx.dtd')
97 SIMPLE_DTDS=$(find ${DOCBOOKDIR} -path '*/xml-simple-dtd-*/sdocbook.dtd') 100 SIMPLE_DTDS=$(find ${DOCBOOKDIR} -path '*/xml-simple-dtd-*/sdocbook.dtd')
101 fi
102
98 if [[ -z ${DTDS} ]]; then 103 if [[ -z ${DTDS} ]]; then
99 echo "No installed DocBook XML DTDs found" 104 echo "No installed DocBook XML DTDs found"
100 return 1 105 return 1
101 else 106 else
102 return 0 107 return 0

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20