diff options
author | 2016-05-23 15:53:13 +0000 | |
---|---|---|
committer | 2016-05-23 15:53:13 +0000 | |
commit | c8e101858b4caed5787a762a6c9f086382055e3b (patch) | |
tree | 41e04594c128c0513655581adb0dbdd2f8467dc3 | |
parent | merge prefix patches (diff) | |
download | build-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>
-rwxr-xr-x | build-docbook-catalog | 3 |
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}" |