Module Name: othersrc
Committed By: wiz
Date: Mon Jan 21 07:33:59 UTC 2019
Modified Files:
othersrc/external/bsd/file2c: file2c.1 file2c.sh
Log Message:
Sort options. Use appropriate section name.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 othersrc/external/bsd/file2c/file2c.1 \
othersrc/external/bsd/file2c/file2c.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: othersrc/external/bsd/file2c/file2c.1
diff -u othersrc/external/bsd/file2c/file2c.1:1.1 othersrc/external/bsd/file2c/file2c.1:1.2
--- othersrc/external/bsd/file2c/file2c.1:1.1 Mon Jan 21 07:30:48 2019
+++ othersrc/external/bsd/file2c/file2c.1 Mon Jan 21 07:33:59 2019
@@ -1,4 +1,4 @@
-.\" $NetBSD: file2c.1,v 1.1 2019/01/21 07:30:48 agc Exp $
+.\" $NetBSD: file2c.1,v 1.2 2019/01/21 07:33:59 wiz Exp $
.\"
.\" Copyright (c) 2019 Alistair Crooks <[email protected]>
.\" All rights reserved.
@@ -31,7 +31,7 @@
.Nd script to convert input to a C language character array
.Sh SYNOPSIS
.Nm
-.Op Fl sxv
+.Op Fl svx
.Op Header\-text
.Op Footer\-text
.Sh DESCRIPTION
@@ -50,10 +50,10 @@ The following options are available:
.Bl -tag -width inits
.It Fl s
Prefix the output lines with a leading tab character.
-.It Fl x
-Display the output characters as hexadecimal byte constants.
.It Fl v
Perform the operations in a verbose manner.
+.It Fl x
+Display the output characters as hexadecimal byte constants.
.El
.Pp
Internally, the
@@ -61,7 +61,7 @@ Internally, the
utility uses the
.Xr awk 1
utility to transform the input into output.
-.Sh RETURN VALUES
+.Sh EXIT STATUS
The
.Nm
utility will return 0 for success,
Index: othersrc/external/bsd/file2c/file2c.sh
diff -u othersrc/external/bsd/file2c/file2c.sh:1.1 othersrc/external/bsd/file2c/file2c.sh:1.2
--- othersrc/external/bsd/file2c/file2c.sh:1.1 Mon Jan 21 07:30:48 2019
+++ othersrc/external/bsd/file2c/file2c.sh Mon Jan 21 07:33:59 2019
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: file2c.sh,v 1.1 2019/01/21 07:30:48 agc Exp $
+# $NetBSD: file2c.sh,v 1.2 2019/01/21 07:33:59 wiz Exp $
# Copyright (c) 2019 Alistair Crooks <[email protected]>
# All rights reserved.
@@ -38,9 +38,9 @@ hex=0
while getopts "sxv" arg; do
case "${arg}" in
s) space=1 ;;
- x) hex=1 ;;
v) set -x ;;
- \?) printf"Usage: $0 [-s] [-x] [-v] [header] [footer]" >&2
+ x) hex=1 ;;
+ \?) printf"Usage: $0 [-svx] [header] [footer]" >&2
exit 1 ;;
esac
done