summaryrefslogtreecommitdiffstats
path: root/usr.bin/xstr/xstr.1
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1997-08-28 06:28:08 +0000
committercharnier <charnier@FreeBSD.org>1997-08-28 06:28:08 +0000
commit301a83d5c0bd9ed745ccf115a2e2a94696a9bf37 (patch)
tree3237e1dfd7f33efd0a00f151a7f82de6efc1ff50 /usr.bin/xstr/xstr.1
parentfafa82ed458b2bf5b02cb354a894aba75fe8dfd9 (diff)
downloadFreeBSD-src-301a83d5c0bd9ed745ccf115a2e2a94696a9bf37.zip
FreeBSD-src-301a83d5c0bd9ed745ccf115a2e2a94696a9bf37.tar.gz
Use err(3). Add usage and prototypes. Use getopt(). Document -v flag.
Diffstat (limited to 'usr.bin/xstr/xstr.1')
-rw-r--r--usr.bin/xstr/xstr.19
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/xstr/xstr.1 b/usr.bin/xstr/xstr.1
index 8795a2d..ee3bc5d 100644
--- a/usr.bin/xstr/xstr.1
+++ b/usr.bin/xstr/xstr.1
@@ -41,6 +41,7 @@
.Nm xstr
.Op Fl c
.Op Fl
+.Op Fl v
.Op Ar file
.Sh DESCRIPTION
.Nm Xstr
@@ -66,7 +67,7 @@ replacing
string references by expressions of the form (&xstr[number])
for some number.
An appropriate declaration of
-.Nm xstr
+.Nm
is prepended to the file.
The resulting C text is placed in the file
.Pa x.c ,
@@ -76,6 +77,8 @@ The strings from this file are placed in the
data base if they are not there already.
Repeated strings and strings which are suffixes of existing strings
do not cause changes to the data base.
+.It Fl v
+Verbose mode.
.El
.Pp
After all components of a large program have been compiled a file
@@ -110,7 +113,7 @@ as before, without using or affecting any
file in the same directory.
.Pp
It may be useful to run
-.Nm xstr
+.Nm
after the C preprocessor if any macro definitions yield strings
or if there is conditional code which contains strings
which may not, in fact, be needed.
@@ -149,7 +152,7 @@ Temp file when `xstr name' doesn't touch
.Sh BUGS
If a string is a suffix of another string in the data base,
but the shorter string is seen first by
-.Nm xstr
+.Nm
both strings will be placed in the data base, when just
placing the longer one there will do.
.Sh HISTORY
OpenPOWER on IntegriCloud