Source-Changes-HG archive

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

[src/pkgviews]: src/usr.sbin/pkg_install/view Execute "pkg_info -V" to displa...



details:   https://anonhg.NetBSD.org/src/rev/85c9d6918c07
branches:  pkgviews
changeset: 534244:85c9d6918c07
user:      jlam <jlam%NetBSD.org@localhost>
date:      Tue Jul 29 06:08:18 2003 +0000

description:
Execute "pkg_info -V" to display the version.  This keeps the version info
kept in a single place in the pkg_install sources (lib/version.h).

diffstat:

 usr.sbin/pkg_install/view/linkfarm.sh |  5 +++--
 usr.sbin/pkg_install/view/pkg_view.sh |  5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (56 lines):

diff -r f00766de04fe -r 85c9d6918c07 usr.sbin/pkg_install/view/linkfarm.sh
--- a/usr.sbin/pkg_install/view/linkfarm.sh     Tue Jul 29 01:46:12 2003 +0000
+++ b/usr.sbin/pkg_install/view/linkfarm.sh     Tue Jul 29 06:08:18 2003 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $NetBSD: linkfarm.sh,v 1.1.2.9 2003/07/29 01:46:13 jlam Exp $
+# $NetBSD: linkfarm.sh,v 1.1.2.10 2003/07/29 06:08:18 jlam Exp $
 
 #
 # Copyright (c) 2002 Alistair G. Crooks.  All rights reserved.
@@ -39,6 +39,7 @@
 grepprog=/usr/bin/grep
 lnprog=/bin/ln
 mkdirprog=/bin/mkdir
+pkginfoprog=/usr/sbin/pkg_info
 rmprog=/bin/rm
 rmdirprog=/bin/rmdir
 sedprog=/usr/bin/sed
@@ -50,7 +51,7 @@
 }
 
 version() {
-       echo "20030728"
+       $pkginfoprog -V
        exit 0
 }
 
diff -r f00766de04fe -r 85c9d6918c07 usr.sbin/pkg_install/view/pkg_view.sh
--- a/usr.sbin/pkg_install/view/pkg_view.sh     Tue Jul 29 01:46:12 2003 +0000
+++ b/usr.sbin/pkg_install/view/pkg_view.sh     Tue Jul 29 06:08:18 2003 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $NetBSD: pkg_view.sh,v 1.1.2.19 2003/07/29 01:46:13 jlam Exp $
+# $NetBSD: pkg_view.sh,v 1.1.2.20 2003/07/29 06:08:18 jlam Exp $
 
 #
 # Copyright (c) 2001 Alistair G. Crooks.  All rights reserved.
@@ -44,6 +44,7 @@
 lnprog=/bin/ln
 mkdirprog=/bin/mkdir
 paxprog=/bin/pax
+pkginfoprog=/usr/sbin/pkg_info
 rmprog=/bin/rm
 rmdirprog=/bin/rmdir
 sedprog=/usr/bin/sed
@@ -55,7 +56,7 @@
 }
 
 version() {
-       echo "20030728"
+       $pkginfoprog -V
        exit 0
 }
 



Home | Main Index | Thread Index | Old Index