/[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.11 Revision 1.12
1#!/bin/bash 1#!/bin/bash
2# $Header: /var/cvsroot/gentoo-src/build-docbook-catalog/build-docbook-catalog,v 1.11 2012/03/27 22:41:10 vapier Exp $ 2# $Header: /var/cvsroot/gentoo-src/build-docbook-catalog/build-docbook-catalog,v 1.12 2012/03/27 22:44:46 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
112# create the catalogs root and docbook specific 112# create the catalogs root and docbook specific
113# 113#
114create_catalogs() { 114create_catalogs() {
115 if [[ ! -r ${ROOTCATALOG} ]] ; then 115 if [[ ! -r ${ROOTCATALOG} ]] ; then
116 echo "Creating XML Catalog root ${ROOTCATALOG}" 116 echo "Creating XML Catalog root ${ROOTCATALOG}"
117 /usr/bin/xmlcatalog --noout --create ${ROOTCATALOG} 117 xmlcatalog --noout --create ${ROOTCATALOG}
118 if [[ ! -r ${ROOTCATALOG} ]] ; then 118 if [[ ! -r ${ROOTCATALOG} ]] ; then
119 error "failed creating ${ROOTCATALOG}" 119 error "failed creating ${ROOTCATALOG}"
120 fi 120 fi
121 else 121 else
122 verb "Found XML Catalog root ${ROOTCATALOG}" 122 verb "Found XML Catalog root ${ROOTCATALOG}"
125 clean_catalog "file://${CATALOG}" ${ROOTCATALOG} 125 clean_catalog "file://${CATALOG}" ${ROOTCATALOG}
126 fi 126 fi
127 127
128 if [[ ! -r ${CATALOG} ]] ; then 128 if [[ ! -r ${CATALOG} ]] ; then
129 echo "Creating DocBook XML Catalog ${CATALOG}" 129 echo "Creating DocBook XML Catalog ${CATALOG}"
130 /usr/bin/xmlcatalog --noout --create ${CATALOG} 130 xmlcatalog --noout --create ${CATALOG}
131 if [[ ! -r ${CATALOG} ]] ; then 131 if [[ ! -r ${CATALOG} ]] ; then
132 error "failed creating ${CATALOG}" 132 error "failed creating ${CATALOG}"
133 fi 133 fi
134 else 134 else
135 verb "Found DocBook XML Catalog ${CATALOG}" 135 verb "Found DocBook XML Catalog ${CATALOG}"

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

  ViewVC Help
Powered by ViewVC 1.1.20