summaryrefslogtreecommitdiff
path: root/share/mk/bsd.prog.mk
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-07-20 19:48:27 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-07-20 19:48:27 +0000
commitf306a2b49207a3896d25e5fbcbe3cbe3313d08a1 (patch)
treee92f16d9ddafd643641fdac10e94164303abb15e /share/mk/bsd.prog.mk
parent53a62aec27bf2b212ce013e43261d03e569d10fb (diff)
undo broken changes, i dunno a fix for these; how many times you gonna repeat the same mistake espie@ and millert@ ?
Diffstat (limited to 'share/mk/bsd.prog.mk')
-rw-r--r--share/mk/bsd.prog.mk18
1 files changed, 11 insertions, 7 deletions
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk
index 435a43296f3..807a442285e 100644
--- a/share/mk/bsd.prog.mk
+++ b/share/mk/bsd.prog.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.prog.mk,v 1.26 2001/07/20 19:15:39 mickey Exp $
+# $OpenBSD: bsd.prog.mk,v 1.27 2001/07/20 19:48:26 mickey Exp $
# $NetBSD: bsd.prog.mk,v 1.55 1996/04/08 21:19:26 jtc Exp $
# @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
@@ -141,12 +141,16 @@ realinstall:
install: maninstall _SUBDIRUSE
.if defined(LINKS) && !empty(LINKS)
-. for lnk file in ${LINKS}
- @l=${DESTDIR}${BINDIR}${lnk}; \
- t=${DESTDIR}${BINDIR}${file}; \
- echo $$t -\> $$l; \
- rm -f $$t; ln $$l $$t
-. endfor
+ @set ${LINKS}; \
+ while test $$# -ge 2; do \
+ l=${DESTDIR}$$1; \
+ shift; \
+ t=${DESTDIR}$$1; \
+ shift; \
+ echo $$t -\> $$l; \
+ rm -f $$t; \
+ ln $$l $$t; \
+ done; true
.endif
maninstall: afterinstall