pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/mk/help



Module Name:    pkgsrc
Committed By:   rillig
Date:           Thu Dec 20 16:57:05 UTC 2018

Modified Files:
        pkgsrc/mk/help: help.mk

Log Message:
mk/help: if no help is found, output releative path names


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 pkgsrc/mk/help/help.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/help/help.mk
diff -u pkgsrc/mk/help/help.mk:1.15 pkgsrc/mk/help/help.mk:1.16
--- pkgsrc/mk/help/help.mk:1.15 Sun Mar 11 14:50:49 2018
+++ pkgsrc/mk/help/help.mk      Thu Dec 20 16:57:04 2018
@@ -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



Home | Main Index | Thread Index | Old Index