summaryrefslogtreecommitdiff
path: root/usr.bin/m4/m4.1
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/m4/m4.1')
-rw-r--r--usr.bin/m4/m4.114
1 files changed, 12 insertions, 2 deletions
diff --git a/usr.bin/m4/m4.1 b/usr.bin/m4/m4.1
index e0b541d0d44..c01f5fea377 100644
--- a/usr.bin/m4/m4.1
+++ b/usr.bin/m4/m4.1
@@ -1,4 +1,4 @@
-.\" @(#) $OpenBSD: m4.1,v 1.6 1999/09/06 13:07:17 espie Exp $
+.\" @(#) $OpenBSD: m4.1,v 1.7 1999/09/14 08:21:37 espie Exp $
.\"
.\"
.Dd January 26, 1993
@@ -13,6 +13,7 @@
.Fl D Ns Ar name Ns Op Ar =value
.Oc
.Op Fl U Ns Ar name
+.Op Fl I Ar dirname
.Sh DESCRIPTION
The
.Nm m4
@@ -50,7 +51,10 @@ to have some value (or NULL).
.It Fl "U" Ns Ar "name"
Undefine the symbol
.Ar name .
-.El
+.It Fl I Ar "dirname"
+Add directory
+.Ar dirname
+to the include path.
.Sh SYNTAX
.Nm m4
provides the following built-in macros. They may be
@@ -120,6 +124,12 @@ zero or one arguments left, either this last argument or NULL is
returned if no other matches were found.
.It Ic include
Returns the contents of the file specified in the first argument.
+If the file is not found as is, look through the include path:
+first the directories specified with
+.Fl I
+on the command line, then the environment variable
+.Va M4PATH ,
+as a colon-separated list of directories.
Include aborts with an error message if the file cannot be included.
.It Ic incr
Increments the argument by 1. The argument must be a valid numeric string.