summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2003-11-22 11:52:50 +0000
committerMarc Espie <espie@cvs.openbsd.org>2003-11-22 11:52:50 +0000
commit4d3aba5550990eb260738201e994b1e2191de826 (patch)
tree0099c4210516776965e3c6466ca3f821252471c1 /usr.bin
parent77aa6f2212ac60ec8bac88369afbceec60727ab0 (diff)
:mod, simpler search patterns. Idea from NetBSD.
ok jmc@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/make/make.132
1 files changed, 16 insertions, 16 deletions
diff --git a/usr.bin/make/make.1 b/usr.bin/make/make.1
index cf3cf06905b..35cecdc1783 100644
--- a/usr.bin/make/make.1
+++ b/usr.bin/make/make.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: make.1,v 1.57 2003/09/29 11:35:11 jmc Exp $
+.\" $OpenBSD: make.1,v 1.58 2003/11/22 11:52:49 espie Exp $
.\" $OpenPackages$
.\" $NetBSD: make.1,v 1.18 1997/03/10 21:19:53 christos Exp $
.\"
@@ -660,15 +660,15 @@ special characters.
The colon may be escaped with a backslash
.Pq Ql \e .
.Bl -tag -width Ds
-.It Cm E
+.It Cm :E
Replaces each word in the variable with its suffix.
-.It Cm H
+.It Cm :H
Replaces each word in the variable with everything but the last component.
-.It Cm L
+.It Cm :L
Replaces each word in the variable with its lower case equivalent.
-.It Cm U
+.It Cm :U
Replaces each word in the variable with its upper case equivalent.
-.It Cm M Ns Ar pattern
+.It Cm :M Ns Ar pattern
Select only those words that match the rest of the modifier.
The standard shell wildcard characters
.Pf ( Ql * ,
@@ -679,19 +679,19 @@ may
be used.
The wildcard characters may be escaped with a backslash
.Pq Ql \e .
-.It Cm N Ns Ar pattern
+.It Cm :N Ns Ar pattern
This is identical to
-.Cm M ,
+.Cm :M ,
but selects all words which do not match
the rest of the modifier.
-.It Cm Q
+.It Cm :Q
Quotes every shell meta-character in the variable, so that it can be passed
safely through recursive invocations of
.Nm make .
-.It Cm R
+.It Cm :R
Replaces each word in the variable with everything but its suffix.
.Sm off
-.It Cm S No \&/ Ar old_string Xo
+.It Cm :S No \&/ Ar old_string Xo
.No \&/ Ar new_string
.No \&/ Op Cm 1g
.Xc
@@ -744,15 +744,15 @@ of a dollar sign
.Pq Ql \&$ ,
not a preceding dollar sign as is usual.
.Sm off
-.It Cm C No \&/ Ar pattern Xo
+.It Cm :C No \&/ Ar pattern Xo
.No \&/ Ar replacement
.No \&/ Op Cm 1g
.Xc
.Sm on
The
-.Cm C
+.Cm :C
modifier is just like the
-.Cm S
+.Cm :S
modifier except that the old and new strings, instead of being
simple strings, are a regular expression (see
.Xr regex 3 )
@@ -774,9 +774,9 @@ and
are orthogonal; the former specifies whether multiple words are
potentially affected, the latter whether multiple substitutions can
potentially occur within each affected word.
-.It Cm T
+.It Cm :T
Replaces each word in the variable with its last component.
-.It Ar old_string Ns No = Ns Ar new_string
+.It Ar :old_string Ns No = Ns Ar new_string
This is the
.At V
style variable substitution.