summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/baselayout/baselayout-1.11.13-r2.ebuild')
-rw-r--r--sys-apps/baselayout/baselayout-1.11.13-r2.ebuild12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys-apps/baselayout/baselayout-1.11.13-r2.ebuild b/sys-apps/baselayout/baselayout-1.11.13-r2.ebuild
index b66e3be61ad9..84ba6d9bb5a3 100644
--- a/sys-apps/baselayout/baselayout-1.11.13-r2.ebuild
+++ b/sys-apps/baselayout/baselayout-1.11.13-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-1.11.13-r2.ebuild,v 1.1 2005/11/08 11:03:48 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-1.11.13-r2.ebuild,v 1.2 2005/12/22 04:07:40 vapier Exp $
inherit flag-o-matic eutils toolchain-funcs multilib
@@ -100,10 +100,12 @@ kdir() {
if [[ $d == /* ]]; then
install -d "${args[@]}" "${D}/${d}"
cat >> "${D}/usr/share/baselayout/mkdirs.sh" <<EOF
-install -d ${args[@]} "\${ROOT}/${d}" 2>/dev/null \\
- || ewarn " can't create ${d}"
-touch "\${ROOT}/${d}/.keep" 2>/dev/null \\
- || ewarn " can't create ${d}/.keep"
+if [ ! -d "\${ROOT}/${d}" ] ; then \\
+ install -d ${args[@]} "\${ROOT}/${d}" 2>/dev/null \\
+ || ewarn " can't create ${d}"
+ touch "\${ROOT}/${d}/.keep" 2>/dev/null \\
+ || ewarn " can't create ${d}/.keep"
+fi
EOF
else
args=("${args[@]}" "${d}")