summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMartin Natano <natano@cvs.openbsd.org>2016-11-08 19:04:50 +0000
committerMartin Natano <natano@cvs.openbsd.org>2016-11-08 19:04:50 +0000
commit2ae6b7d7b3cd6b6a6ff2821ad66bb300ae4b23bd (patch)
treeea237fe56307dbe01d652e11ed0ecfaf9b9ce688 /share
parente715b2251e60d212c8308ab72e656faee68dbd5f (diff)
Use sed -i to post-process .depend. This avoids permission issues caused
by the file being created in /tmp. tweaks and ok tb
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.lib.mk10
1 files changed, 2 insertions, 8 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk
index 167cf6cb053..44571bc05d0 100644
--- a/share/mk/bsd.lib.mk
+++ b/share/mk/bsd.lib.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.lib.mk,v 1.78 2016/10/15 13:00:07 espie Exp $
+# $OpenBSD: bsd.lib.mk,v 1.79 2016/11/08 19:04:49 natano Exp $
# $NetBSD: bsd.lib.mk,v 1.67 1996/01/17 20:39:26 mycroft Exp $
# @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91
@@ -227,13 +227,7 @@ cleandir: _SUBDIRUSE clean
.if defined(SRCS)
afterdepend: .depend
- @TMP=`mktemp .dependXXXXXXXXXX` || exit 1; \
- if sed -e 's/^\([^\.]*\).o[ ]*:/\1.o \1.po \1.so \1.do:/' \
- < .depend > $$TMP; then \
- mv $$TMP .depend; \
- else \
- rm -f $$TMP; \
- fi
+ @sed -i 's/^\([^\.]*\).o[ ]*:/\1.o \1.po \1.so \1.do:/' .depend
.endif
.if !target(install)