diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2001-07-20 23:02:22 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2001-07-20 23:02:22 +0000 |
commit | 4e68f58da0d0f68dc5175735361df4aea6790778 (patch) | |
tree | ed414a3e038a01bd3493ecf93a35bf11d85c9366 /share/mk/bsd.man.mk | |
parent | b071c2985573490b9ab71582e4176d6b6bea44e1 (diff) |
One BINDIR too many, I don't know how I pulled that one.
Diffstat (limited to 'share/mk/bsd.man.mk')
-rw-r--r-- | share/mk/bsd.man.mk | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/share/mk/bsd.man.mk b/share/mk/bsd.man.mk index 5ec9adb58ae..873c1505126 100644 --- a/share/mk/bsd.man.mk +++ b/share/mk/bsd.man.mk @@ -1,4 +1,4 @@ -# $OpenBSD: bsd.man.mk,v 1.22 2001/07/20 19:48:26 mickey Exp $ +# $OpenBSD: bsd.man.mk,v 1.23 2001/07/20 23:02:21 espie Exp $ # $NetBSD: bsd.man.mk,v 1.23 1996/02/10 07:49:33 jtc Exp $ # @(#)bsd.man.mk 5.2 (Berkeley) 5/11/90 @@ -116,21 +116,13 @@ maninstall: done .endif .if defined(MLINKS) && !empty(MLINKS) -. for _subdir in ${MANSUBDIR} - @set ${MLINKS}; \ - while test $$# -ge 2; do \ - name=$$1; \ - shift; \ - dir=${DESTDIR}${MANDIR}$${name##*.}; \ - l=$${dir}${_subdir}/$${name%.*}.0${MCOMPRESSSUFFIX}; \ - name=$$1; \ - shift; \ - dir=${DESTDIR}${MANDIR}$${name##*.}; \ - t=$${dir}${_subdir}/$${name%.*}.0${MCOMPRESSSUFFIX}; \ - echo $$t -\> $$l; \ - rm -f $$t; \ - ln $$l $$t; \ - done +. for sub in ${MANSUBDIR} +. for lnk file in ${MLINKS} + @l=${DESTDIR}${MANDIR}${lnk:E}${sub}/${lnk:R}.0${MCOMPRESSSUFFIX}; \ + t=${DESTDIR}${MANDIR}${file:E}${sub}/${file:R}.0${MCOMPRESSSUFFIX}; \ + echo $$t -\> $$l; \ + rm -f $$t; ln $$l $$t; +. endfor . endfor .endif |