aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Haubenwallner <haubi@gentoo.org>2016-05-23 15:53:13 +0000
committerMichael Haubenwallner <haubi@gentoo.org>2016-05-23 15:53:13 +0000
commitc8e101858b4caed5787a762a6c9f086382055e3b (patch)
tree41e04594c128c0513655581adb0dbdd2f8467dc3 /build-docbook-catalog
parentmerge prefix patches (diff)
downloadbuild-docbook-catalog-c8e101858b4caed5787a762a6c9f086382055e3b.tar.gz
build-docbook-catalog-c8e101858b4caed5787a762a6c9f086382055e3b.tar.bz2
build-docbook-catalog-c8e101858b4caed5787a762a6c9f086382055e3b.zip
Prepend ROOT with "/." when "//" redirects to network (as in Cygwin).v1.21
Signed-off-by: Michael Haubenwallner <haubi@gentoo.org>
Diffstat (limited to 'build-docbook-catalog')
-rwxr-xr-xbuild-docbook-catalog3
1 files changed, 2 insertions, 1 deletions
diff --git a/build-docbook-catalog b/build-docbook-catalog
index 04914f2..1c7f103 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.20 2013/09/28 02:30:06 ottxor Exp $
+# $Header: /usr/local/src/gentoo/gentoo-src/cvsroot/gentoo-src/build-docbook-catalog/build-docbook-catalog,v 1.21 2016/05/23 15:53:13 haubi Exp $
#
# build-docbook-catalog: populate /etc/xml/docbook based in
# installed docbook-xml-dtd versions.
@@ -62,6 +62,7 @@ main() {
if [[ ${ROOT} != "/" ]] ; then
echo "Working on root ${ROOT}"
fi
+ [[ // -ef / ]] || ROOT="/.${ROOT}" # "//" might refer to network
if [[ ! -d ${ROOT}${ROOTCONFDIR} ]] ; then
mkdir -p "${ROOT}${ROOTCONFDIR}" || error "could not create ${ROOTCONFDIR}"