summaryrefslogtreecommitdiff
path: root/mk/help
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2008-02-19 22:25:23 +0000
committerrillig <rillig@pkgsrc.org>2008-02-19 22:25:23 +0000
commit1b593da1e67ee49b82b16d9ab42e7a9dfe612be7 (patch)
tree19219fd75130eaab6b1b0d5bba081a28fffb220f /mk/help
parent19c38b12b9d78be1c4aaa9727121f4c12282f362 (diff)
downloadpkgsrc-1b593da1e67ee49b82b16d9ab42e7a9dfe612be7.tar.gz
Documented the pkgsrc online help.
Diffstat (limited to 'mk/help')
-rw-r--r--mk/help/help.help35
1 files changed, 35 insertions, 0 deletions
diff --git a/mk/help/help.help b/mk/help/help.help
new file mode 100644
index 00000000000..28a25ffaca1
--- /dev/null
+++ b/mk/help/help.help
@@ -0,0 +1,35 @@
+# $NetBSD: help.help,v 1.1 2008/02/19 22:25:23 rillig Exp $
+#
+# The reference documentation of pkgsrc contains mostly of comments in
+# various files. To save users and developers from knowing where to find
+# what, this online help provides a convenient way to query the
+# documentation for keywords.
+#
+# === Using the online help ===
+#
+# The online help is called like "bmake help topic=<topic>", where
+# <topic> may be a variable name (like SUBST_VARS), a make target (like
+# pre-configure), or some other keyword (like mount, lvalue).
+#
+# === Making the documentation accessible to the online help ===
+#
+# The online help searches all files called *.mk or *.help in the mk/
+# directory and some others. It looks at the comments (like this one) to
+# find keywords. The most obvious way to declare keywords is in a line
+# that starts with "# Keywords:". Since it would be annoying to declare
+# all these keywords explicitly, some keywords are extracted
+# automatically, if they have one of the following forms:
+#
+# * A default definition of a variable, for example "PAPERSIZE?= a4".
+# This occurs often in mk/defaults/mk.conf.
+#
+# * An overriding definition of a variable.
+#
+# * A variable definition that is commented out, without any white-space
+# between the comment character (#) and the variable name.
+#
+# * A make target, either commented out or not. It may not have any
+# upper-case letters and must end with a colon.
+#
+# Keywords: help
+#