Source-Changes-HG archive

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

[src/trunk]: src/etc add 'help' as a synonym for 'usage'



details:   https://anonhg.NetBSD.org/src/rev/51eb38892a75
branches:  trunk
changeset: 526167:51eb38892a75
user:      lukem <lukem%NetBSD.org@localhost>
date:      Fri Apr 26 15:49:09 2002 +0000

description:
add 'help' as a synonym for 'usage'

diffstat:

 etc/postinstall |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r 438df8aeb0e6 -r 51eb38892a75 etc/postinstall
--- a/etc/postinstall   Fri Apr 26 15:47:21 2002 +0000
+++ b/etc/postinstall   Fri Apr 26 15:49:09 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postinstall,v 1.1 2002/04/26 15:37:25 lukem Exp $
+# $NetBSD: postinstall,v 1.2 2002/04/26 15:49:09 lukem Exp $
 #
 # Copyright (c) 2002 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -335,6 +335,7 @@
        -d destdir      Destination directory to check.    [${DEST_ETC}]
 
        Operation may be one of:
+               help    display this help
                list    list available items
                check   perform post-installation checks on items
                fix     apply fixes that 'check' determines need to be applied
@@ -381,8 +382,12 @@
 
        case "${op}" in
 
-       list|usage)
-               eval ${op} $*
+       usage|help)
+               usage
+               ;;
+
+       list)
+               list
                ;;
 
        check|fix)



Home | Main Index | Thread Index | Old Index