diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1995-12-19 10:44:20 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1995-12-19 10:44:20 +0000 |
commit | ad67d180ef6bc62c9e254ead857a7c89ae53cc80 (patch) | |
tree | 720320bd6743dff6ca7cf0dd439d3f6f561c2043 /share | |
parent | 5a2d7a05eec9ae8194f5d31fda86c153a24650c7 (diff) |
When doing Makefile.bsd-wrapper-style importing, it's nice to be able
to specify the man-pages with a subdir-path prepended to them. This
subdir component must be removed when installing.
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.man.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/mk/bsd.man.mk b/share/mk/bsd.man.mk index 9fd3f6e21df..8ca15945eb7 100644 --- a/share/mk/bsd.man.mk +++ b/share/mk/bsd.man.mk @@ -33,7 +33,7 @@ maninstall: .if defined(MANALL) @for page in ${MANALL}; do \ dir=${DESTDIR}${MANDIR}`expr $$page : '.*\.cat\([1-9]\)'`; \ - instpage=$${dir}${MANSUBDIR}/`expr $$page : '\(.*\)\.cat[1-9]'`.0${MCOMPRESSSUFFIX}; \ + instpage=$${dir}${MANSUBDIR}/`expr \`basename $$page\` : '\(.*\)\.cat[1-9]'`.0${MCOMPRESSSUFFIX}; \ if [ X"${MCOMPRESS}" = X ]; then \ echo ${MINSTALL} $$page $$instpage; \ ${MINSTALL} $$page $$instpage; \ |