Source-Changes-HG archive

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

[src/trunk]: src/sys/conf If config(8) left a "ident" file (from the "ident" ...



details:   https://anonhg.NetBSD.org/src/rev/5e5d187d9cfa
branches:  trunk
changeset: 481151:5e5d187d9cfa
user:      hubertf <hubertf%NetBSD.org@localhost>
date:      Sun Jan 23 23:39:19 2000 +0000

description:
If config(8) left a "ident" file (from the "ident" command), set the
kernel id from the contents of that file.

diffstat:

 sys/conf/newvers.sh |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r b7805d2771fe -r 5e5d187d9cfa sys/conf/newvers.sh
--- a/sys/conf/newvers.sh       Sun Jan 23 23:38:32 2000 +0000
+++ b/sys/conf/newvers.sh       Sun Jan 23 23:39:19 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: newvers.sh,v 1.29 1999/02/17 08:13:12 itohy Exp $
+#      $NetBSD: newvers.sh,v 1.30 2000/01/23 23:39:19 hubertf Exp $
 #
 # Copyright (c) 1984, 1986, 1990, 1993
 #      The Regents of the University of California.  All rights reserved.
@@ -42,7 +42,11 @@
 
 touch version
 v=`cat version` u=${USER-root} d=`pwd` h=`hostname` t=`date`
-id=`basename ${d}`
+if [ -f ident ]; then
+       id="`cat ident`"
+else
+       id=`basename ${d}`
+fi
 osrelcmd=`dirname $0`/osrelease.sh
 
 ost="NetBSD"



Home | Main Index | Thread Index | Old Index