diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-03-28 19:02:47 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-03-28 19:02:47 +0000 |
commit | 9fbe4e4529cff8fc0a6d48fbf52657b98cdd20ad (patch) | |
tree | 1c0873332a15e4019f57507fe4d7e0ffbe54e637 | |
parent | be consistent in variable style: ${foo} rather than $foo (diff) | |
download | build-docbook-catalog-9fbe4e4529cff8fc0a6d48fbf52657b98cdd20ad.tar.gz build-docbook-catalog-9fbe4e4529cff8fc0a6d48fbf52657b98cdd20ad.tar.bz2 build-docbook-catalog-9fbe4e4529cff8fc0a6d48fbf52657b98cdd20ad.zip |
use $DOCBOOKDIR rather than hardcoding the full path twice
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-x | build-docbook-catalog | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build-docbook-catalog b/build-docbook-catalog index 8e34f15..478e346 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.16 2012/03/28 18:46:29 vapier Exp $ +# $Header: /usr/local/src/gentoo/gentoo-src/cvsroot/gentoo-src/build-docbook-catalog/build-docbook-catalog,v 1.17 2012/03/28 19:02:47 vapier Exp $ # # build-docbook-catalog: populate /etc/xml/docbook based in # installed docbook-xml-dtd versions. @@ -346,7 +346,7 @@ populate_xsl() { clean_catalog "${DOCBOOKDIR}/${type}-stylesheets(-[0-9\.]+)?" "${CATALOG}" clean_catalog "${DOCBOOKDIR}/${type}-stylesheets(-[0-9\.]+)?" "${ROOTCATALOG}" - local xsldir=/usr/share/sgml/docbook/${type}-stylesheets + local xsldir=${DOCBOOKDIR}/${type}-stylesheets if [[ ! -d ${xsldir} ]]; then echo "DocBook XSL stylesheets (${type}) not found" >&2 |