aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/m4/m4.1
diff options
context:
space:
mode:
authorJuli Mallett <jmallett@FreeBSD.org>2002-04-19 17:26:21 +0000
committerJuli Mallett <jmallett@FreeBSD.org>2002-04-19 17:26:21 +0000
commitacc9d4083840bce63fb8b3ff7ee8195d8f67d49e (patch)
treee50607d075b4fa99ab7d040c1f22f13cfc865fff /usr.bin/m4/m4.1
parent29fc00b3fb827a8962ad1b28c740c4bb6ce11e07 (diff)
downloadsrc-acc9d4083840bce63fb8b3ff7ee8195d8f67d49e.tar.gz
src-acc9d4083840bce63fb8b3ff7ee8195d8f67d49e.zip
Bring OpenBSD m4(1) off of the OPENBSD vendor branch, and add the -s option,
$FreeBSD$ identifiers, and fix initialisation to stderr to happen in a function as stderr is not the same in CURRENT as in OpenBSD. Reviewed by: obrien
Notes
Notes: svn path=/head/; revision=95060
Diffstat (limited to 'usr.bin/m4/m4.1')
-rw-r--r--usr.bin/m4/m4.120
1 files changed, 8 insertions, 12 deletions
diff --git a/usr.bin/m4/m4.1 b/usr.bin/m4/m4.1
index ffe8f2d9e5d6..0ba26f8eb836 100644
--- a/usr.bin/m4/m4.1
+++ b/usr.bin/m4/m4.1
@@ -1,7 +1,7 @@
.\" @(#) $OpenBSD: m4.1,v 1.24 2002/04/18 18:57:23 espie Exp $
-.\" $FreeBSD$
+.\" $FreeBSD$
.\"
-.Dd January 26, 1993
+.Dd April 17, 2002
.Dt M4 1
.Os
.Sh NAME
@@ -11,7 +11,7 @@
.Nm m4
.Op Fl d Ar flags
.Op Fl t Ar name
-.Op Fl g
+.Op Fl gs
.Oo
.Fl D Ns Ar name Ns Op Ar =value
.Oc
@@ -54,6 +54,11 @@ recognized as special when not followed by an open parenthesis.
.Pp
The options are as follows:
.Bl -tag -width Ds
+.It Fl s
+Emit
+.Em #line
+directives for
+.Xr cpp 1 .
.It Fl D Ns Ar name Ns Oo
.Ar =value
.Oc
@@ -332,15 +337,6 @@ Returns the current file's name.
follows the Single Unix 2 specification, along with a few extensions taken
from
.Nm gnu-m4 .
-.Pp
-The
-.Fl s
-option
-.Po
-.Xr cpp 1 's
-#line directives
-.Pc
-is currently not supported.
Flags
.Fl I ,
.Fl d ,