diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-07-20 19:48:27 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-07-20 19:48:27 +0000 |
commit | f306a2b49207a3896d25e5fbcbe3cbe3313d08a1 (patch) | |
tree | e92f16d9ddafd643641fdac10e94164303abb15e /share/mk/bsd.prog.mk | |
parent | 53a62aec27bf2b212ce013e43261d03e569d10fb (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.mk | 18 |
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 |