Source-Changes-HG archive

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

[src/trunk]: src/sys/conf Append ".${BUILDID}" to the default value of <id>,



details:   https://anonhg.NetBSD.org/src/rev/fc7d36ce3d48
branches:  trunk
changeset: 796699:fc7d36ce3d48
user:      apb <apb%NetBSD.org@localhost>
date:      Sat Jun 14 12:35:18 2014 +0000

description:
Append ".${BUILDID}" to the default value of <id>,
provided the "-i <id>" command line option was not used.

diffstat:

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

diffs (25 lines):

diff -r 712d3293657d -r fc7d36ce3d48 sys/conf/newvers.sh
--- a/sys/conf/newvers.sh       Sat Jun 14 12:26:26 2014 +0000
+++ b/sys/conf/newvers.sh       Sat Jun 14 12:35:18 2014 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: newvers.sh,v 1.57 2010/01/10 23:55:03 snj Exp $
+#      $NetBSD: newvers.sh,v 1.58 2014/06/14 12:35:18 apb Exp $
 #
 # Copyright (c) 1984, 1986, 1990, 1993
 #      The Regents of the University of California.  All rights reserved.
@@ -65,6 +65,13 @@
        else
                id=$(basename ${d})
        fi
+       # Append ".${BUILDID}" to the default value of <id>.
+       # If the "-i <id>" command line option was used then this
+       # branch is not taken, so the command-line value of <id>
+       # is used without change.
+       if [ -n "${BUILDID}" ]; then
+               id="${id}.${BUILDID}"
+       fi
 fi
 
 osrelcmd=${cwd}/osrelease.sh



Home | Main Index | Thread Index | Old Index