Source-Changes-HG archive

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

[src/netbsd-1-5]: src/usr.sbin/pkg_install/info Pull up revision 1.24 (reques...



details:   https://anonhg.NetBSD.org/src/rev/b7f4e914d735
branches:  netbsd-1-5
changeset: 490918:b7f4e914d735
user:      he <he%NetBSD.org@localhost>
date:      Tue Mar 20 18:04:00 2001 +0000

description:
Pull up revision 1.24 (requested by hubertf):
  Various changes / updates:
   o add -V option to determine version

diffstat:

 usr.sbin/pkg_install/info/main.c |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (46 lines):

diff -r b37fec4df768 -r b7f4e914d735 usr.sbin/pkg_install/info/main.c
--- a/usr.sbin/pkg_install/info/main.c  Tue Mar 20 18:03:31 2001 +0000
+++ b/usr.sbin/pkg_install/info/main.c  Tue Mar 20 18:04:00 2001 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: main.c,v 1.23 2000/06/19 00:55:11 hubertf Exp $        */
+/*     $NetBSD: main.c,v 1.23.2.1 2001/03/20 18:04:00 he Exp $ */
 
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char *rcsid = "from FreeBSD Id: main.c,v 1.14 1997/10/08 07:47:26 charnier Exp";
 #else
-__RCSID("$NetBSD: main.c,v 1.23 2000/06/19 00:55:11 hubertf Exp $");
+__RCSID("$NetBSD: main.c,v 1.23.2.1 2001/03/20 18:04:00 he Exp $");
 #endif
 #endif
 
@@ -38,7 +38,7 @@
 #include "lib.h"
 #include "info.h"
 
-static char Options[] = "aBbcDde:fFhIikLl:mpqRrsSv";
+static char Options[] = "aBbcDde:fFhIikLl:mpqRrsSvV";
 
 int     Flags = 0;
 Boolean AllInstalled = FALSE;
@@ -55,7 +55,7 @@
 usage(void)
 {
        fprintf(stderr, "%s\n%s\n%s\n",
-           "usage: pkg_info [-BbcDdFfIikLmpqRrSsvh] [-e package] [-l prefix]",
+           "usage: pkg_info [-BbcDdFfIikLmpqRrSsVvh] [-e package] [-l prefix]",
            "                pkg-name [pkg-name ...]",
            "       pkg_info -a [flags]");
        exit(1);
@@ -176,6 +176,10 @@
                            SHOW_REQBY | SHOW_DEPENDS | SHOW_PKG_SIZE | SHOW_ALL_SIZE;
                        break;
 
+               case 'V':
+                       show_version();
+                       /* NOTREACHED */
+
                case 'h':
                case '?':
                default:



Home | Main Index | Thread Index | Old Index