Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/sys_info Sort options and their descriptions in man ...



details:   https://anonhg.NetBSD.org/src/rev/9ee78bca4a96
branches:  trunk
changeset: 826660:9ee78bca4a96
user:      wiz <wiz%NetBSD.org@localhost>
date:      Thu Sep 21 07:07:28 2017 +0000

description:
Sort options and their descriptions in man page and usage.

diffstat:

 usr.bin/sys_info/sys_info.1  |  24 ++++++++++++------------
 usr.bin/sys_info/sys_info.sh |   4 ++--
 2 files changed, 14 insertions(+), 14 deletions(-)

diffs (74 lines):

diff -r fe05f961780a -r 9ee78bca4a96 usr.bin/sys_info/sys_info.1
--- a/usr.bin/sys_info/sys_info.1       Thu Sep 21 04:44:32 2017 +0000
+++ b/usr.bin/sys_info/sys_info.1       Thu Sep 21 07:07:28 2017 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: sys_info.1,v 1.7 2017/09/21 01:15:45 agc Exp $
+.\" $NetBSD: sys_info.1,v 1.8 2017/09/21 07:07:28 wiz Exp $
 .\"
 .\" Copyright (c) 2016 Alistair Crooks <agc%NetBSD.org@localhost>
 .\" All rights reserved.
@@ -31,10 +31,10 @@
 .Nd script to show system version information
 .Sh SYNOPSIS
 .Nm
+.Op Fl v
+.Op Fl d Ar destination-dir
 .Op Fl L Ar lib-path
 .Op Fl P Ar path
-.Op Fl d Ar destination-dir
-.Op Fl v
 .Op Ar component No ...
 .Sh DESCRIPTION
 The
@@ -49,6 +49,15 @@
 .Sh OPTIONS
 The following options are available:
 .Bl -tag -width inits
+.It Fl d
+This option provides a destination directory, used
+as the root directory of an alternative set of programs
+and libraries.
+This can be useful for finding versions of utilities
+and libraries rooted in the file system directory,
+such as the destination directory from a
+.Dv build.sh
+run.
 .It Fl L
 Give a list of directories
 .Pq "colon separated"
@@ -67,15 +76,6 @@
 is used.
 To use the current value of $PATH from the caller, use:
 .Dl -P \*q$PATH\*q
-.It Fl d
-This option provides a destination directory, used
-as the root directory of an alternative set of programs
-and libraries.
-This can be useful for finding versions of utilities
-and libraries rooted in the file system directory,
-such as the destination directory from a
-.Dv build.sh
-run.
 .It Fl v
 Show the commands used to obtain the version information
 for each component
diff -r fe05f961780a -r 9ee78bca4a96 usr.bin/sys_info/sys_info.sh
--- a/usr.bin/sys_info/sys_info.sh      Thu Sep 21 04:44:32 2017 +0000
+++ b/usr.bin/sys_info/sys_info.sh      Thu Sep 21 07:07:28 2017 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $NetBSD: sys_info.sh,v 1.15 2017/09/21 01:15:45 agc Exp $
+# $NetBSD: sys_info.sh,v 1.16 2017/09/21 07:07:28 wiz Exp $
 
 # Copyright (c) 2016 Alistair Crooks <agc%NetBSD.org@localhost>
 # All rights reserved.
@@ -251,7 +251,7 @@
                destdir=${OPTARG};;
        v)      verbose=true;;
        \?)     printf >&2 '%s\n' \
-                   "Usage: $0 [-P path] [-L libdirs] [-d destdir] [-v] [system...]"
+                   "Usage: $0 [-v] [-d destdir] [-L libdirs] [-P path] [system...]"
                exit 2
        esac
 done



Home | Main Index | Thread Index | Old Index