Module Name: othersrc
Committed By: cheusov
Date: Thu Oct 11 07:59:02 UTC 2012
Modified Files:
othersrc/usr.sbin/pkg_setup: pkg_setup
Log Message:
Fix in OSVER initialization
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 othersrc/usr.sbin/pkg_setup/pkg_setup
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: othersrc/usr.sbin/pkg_setup/pkg_setup
diff -u othersrc/usr.sbin/pkg_setup/pkg_setup:1.4 othersrc/usr.sbin/pkg_setup/pkg_setup:1.5
--- othersrc/usr.sbin/pkg_setup/pkg_setup:1.4 Thu Sep 13 20:09:03 2012
+++ othersrc/usr.sbin/pkg_setup/pkg_setup Thu Oct 11 07:59:02 2012
@@ -1,6 +1,6 @@
#!/bin/sh
-# $NetBSD: pkg_setup,v 1.4 2012/09/13 20:09:03 cheusov Exp $
+# $NetBSD: pkg_setup,v 1.5 2012/10/11 07:59:02 cheusov Exp $
#
# Copyright (c) 2011 Aleksey Cheusov <[email protected]>
#
@@ -27,7 +27,7 @@
# Variables changable by user
: ${OPSYS:=`uname -s`}
-: ${OSVER:=`uname -r | sed 's/[_-]*$//'`}
+: ${OSVER:=`uname -r | sed 's/[_-].*$//'`}
: ${ARCH:=`uname -m`}
: ${MIRROR:='http://ftp.NetBSD.org'}
: ${URL:="$MIRROR/pub/pkgsrc/packages/$OPSYS/$ARCH/$OSVER"}