aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-03-27 22:44:46 +0000
committerMike Frysinger <vapier@gentoo.org>2012-03-27 22:44:46 +0000
commit40b906a6de8fd9b998436b620ff15dcee69e73aa (patch)
treeda7a120d25d2f19b9c6506b2f6c9a28c237c55c7
parentcheck to see if DOCBOOKDIR exists before running `find` to avoid ugly errors ... (diff)
downloadbuild-docbook-catalog-40b906a6de8fd9b998436b620ff15dcee69e73aa.tar.gz
build-docbook-catalog-40b906a6de8fd9b998436b620ff15dcee69e73aa.tar.bz2
build-docbook-catalog-40b906a6de8fd9b998436b620ff15dcee69e73aa.zip
drop hardcoded full paths as there is no need for that -- $PATH works just fine
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-xbuild-docbook-catalog6
1 files changed, 3 insertions, 3 deletions
diff --git a/build-docbook-catalog b/build-docbook-catalog
index f3246bd..c0f5f5d 100755
--- a/build-docbook-catalog
+++ b/build-docbook-catalog
@@ -1,5 +1,5 @@
#!/bin/bash
-# $Header: /usr/local/src/gentoo/gentoo-src/cvsroot/gentoo-src/build-docbook-catalog/build-docbook-catalog,v 1.11 2012/03/27 22:41:10 vapier Exp $
+# $Header: /usr/local/src/gentoo/gentoo-src/cvsroot/gentoo-src/build-docbook-catalog/build-docbook-catalog,v 1.12 2012/03/27 22:44:46 vapier Exp $
#
# build-docbook-catalog: populate /etc/xml/docbook based in
# installed docbook-xml-dtd versions.
@@ -114,7 +114,7 @@ set_dtds() {
create_catalogs() {
if [[ ! -r ${ROOTCATALOG} ]] ; then
echo "Creating XML Catalog root ${ROOTCATALOG}"
- /usr/bin/xmlcatalog --noout --create ${ROOTCATALOG}
+ xmlcatalog --noout --create ${ROOTCATALOG}
if [[ ! -r ${ROOTCATALOG} ]] ; then
error "failed creating ${ROOTCATALOG}"
fi
@@ -127,7 +127,7 @@ create_catalogs() {
if [[ ! -r ${CATALOG} ]] ; then
echo "Creating DocBook XML Catalog ${CATALOG}"
- /usr/bin/xmlcatalog --noout --create ${CATALOG}
+ xmlcatalog --noout --create ${CATALOG}
if [[ ! -r ${CATALOG} ]] ; then
error "failed creating ${CATALOG}"
fi