diff options
author | rillig <rillig@pkgsrc.org> | 2018-12-20 16:57:04 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2018-12-20 16:57:04 +0000 |
commit | c715c3a2df1e2945d5794cde4e4a7df33a025a16 (patch) | |
tree | 00c56a4d17eaa739ca9707f6c795cb84855d9809 /mk | |
parent | a804570950a4fcbcf869b5af05748ec2b0258a3f (diff) | |
download | pkgsrc-c715c3a2df1e2945d5794cde4e4a7df33a025a16.tar.gz |
mk/help: if no help is found, output releative path names
Diffstat (limited to 'mk')
-rw-r--r-- | mk/help/help.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/help/help.mk b/mk/help/help.mk index f5a69ca80f8..3470e8cf5d7 100644 --- a/mk/help/help.mk +++ b/mk/help/help.mk @@ -1,4 +1,4 @@ -# $NetBSD: help.mk,v 1.15 2018/03/11 14:50:49 rillig Exp $ +# $NetBSD: help.mk,v 1.16 2018/12/20 16:57:04 rillig Exp $ # # This is the integrated pkgsrc online help system. To query for the @@ -40,8 +40,8 @@ help: @${ECHO} " The special topic :index lists all available topics." @${ECHO} "" . else - ${RUN} cd ${PKGSRCDIR}; \ - env TOPIC=${TOPIC:Q} ${AWK} -f ${PKGSRCDIR}/mk/help/help.awk ${_HELP_FILES} \ + ${RUN} env TOPIC=${TOPIC:Q} ${AWK} -f ${PKGSRCDIR}/mk/help/help.awk \ + ${_HELP_FILES:S|^|${_PKGSRC_TOPDIR}/|:S|^${.CURDIR}|.|:S,^./,,} \ | $${PAGER:-cat} . endif .endif |