commit: d56d1e147b23e972036fa9f6727bb2a675154435
Author: William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Sat May 26 20:16:59 2018 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sat May 26 20:16:59 2018 +0000
URL: https://gitweb.gentoo.org/proj/baselayout.git/commit/?id=d56d1e14
Makefile: do not touch .keep file if it already exists
Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/Makefile b/Makefile
index 5bfcad80..63a2ec4f 100644
--- a/Makefile
+++ b/Makefile
@@ -65,6 +65,7 @@ install:
layout-dirs:
# Create base filesytem layout
for x in $(KEEP_DIRS) ; do \
+ test -e $(DESTDIR)$$x/.keep && continue ; \
$(INSTALL_DIR) $(DESTDIR)$$x || exit $$? ; \
touch $(DESTDIR)$$x/.keep || echo "ignoring touch failure;
mounted fs?" ; \
done