Module Name: src
Committed By: perry
Date: Mon Mar 30 16:29:55 UTC 2009
Modified Files:
src/sys/conf: newvers.sh
Log Message:
Add a -r option that produces a version string without the time or kernel
build number in it. This will be used for reproducible builds.
To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/sys/conf/newvers.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/conf/newvers.sh
diff -u src/sys/conf/newvers.sh:1.53 src/sys/conf/newvers.sh:1.54
--- src/sys/conf/newvers.sh:1.53 Fri Feb 20 13:41:27 2009
+++ src/sys/conf/newvers.sh Mon Mar 30 16:29:55 2009
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: newvers.sh,v 1.53 2009/02/20 13:41:27 yamt Exp $
+# $NetBSD: newvers.sh,v 1.54 2009/03/30 16:29:55 perry Exp $
#
# Copyright (c) 1984, 1986, 1990, 1993
# The Regents of the University of California. All rights reserved.
@@ -58,7 +58,14 @@
ost="NetBSD"
osr=$(sh $osrelcmd)
-fullversion="${ost} ${osr} (${id}) #${v}: ${t}\n\t$...@${h}:${d}\n"
+case $1 in
+-r)
+ fullversion="${ost} ${osr} (${id})\n"
+ ;;
+*)
+ fullversion="${ost} ${osr} (${id}) #${v}: ${t}\n\t$...@${h}:${d}\n"
+ ;;
+esac
cat << _EOF > vers.c
/*