/[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.12 Revision 1.13
1#!/bin/bash 1#!/bin/bash
2# $Header: /var/cvsroot/gentoo-src/build-docbook-catalog/build-docbook-catalog,v 1.12 2012/03/27 22:44:46 vapier Exp $ 2# $Header: /var/cvsroot/gentoo-src/build-docbook-catalog/build-docbook-catalog,v 1.13 2012/03/27 22:46:32 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
8# Distributed under the terms of the GNU General Public License v2 8# Distributed under the terms of the GNU General Public License v2
9# written by Aron Griffis 9# written by Aron Griffis
10# 10#
11 11
12ROOTCATALOG=/etc/xml/catalog 12ROOTCONFDIR=/etc/xml
13CATALOG=/etc/xml/docbook 13ROOTCATALOG=${ROOTCONFDIR}/catalog
14CATALOG=${ROOTCONFDIR}/docbook
14DOCBOOKDIR=/usr/share/sgml/docbook 15DOCBOOKDIR=/usr/share/sgml/docbook
15DTDS= 16DTDS=
16LATEST_DTD= 17LATEST_DTD=
17LATEST_DATE= 18LATEST_DATE=
18VERBOSE=false 19VERBOSE=false
110 111
111# 112#
112# create the catalogs root and docbook specific 113# create the catalogs root and docbook specific
113# 114#
114create_catalogs() { 115create_catalogs() {
116 if [[ ! -d ${ROOTCONFDIR} ]] ; then
117 mkdir -p "${ROOTCONFDIR}" || error "could not create ${ROOTCONFDIR}"
118 fi
119
115 if [[ ! -r ${ROOTCATALOG} ]] ; then 120 if [[ ! -r ${ROOTCATALOG} ]] ; then
116 echo "Creating XML Catalog root ${ROOTCATALOG}" 121 echo "Creating XML Catalog root ${ROOTCATALOG}"
117 xmlcatalog --noout --create ${ROOTCATALOG} 122 xmlcatalog --noout --create ${ROOTCATALOG}
118 if [[ ! -r ${ROOTCATALOG} ]] ; then 123 if [[ ! -r ${ROOTCATALOG} ]] ; then
119 error "failed creating ${ROOTCATALOG}" 124 error "failed creating ${ROOTCATALOG}"

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

  ViewVC Help
Powered by ViewVC 1.1.20