Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/conf Use a shell variable instead of a cpp #define to pr...
details: https://anonhg.NetBSD.org/src/rev/e0d987e8dd10
branches: trunk
changeset: 553351:e0d987e8dd10
user: lukem <lukem%NetBSD.org@localhost>
date: Wed Oct 15 01:28:49 2003 +0000
description:
Use a shell variable instead of a cpp #define to provide the full
version string; it's more consistent.
diffstat:
sys/conf/newvers.sh | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diffs (37 lines):
diff -r 4635031caa61 -r e0d987e8dd10 sys/conf/newvers.sh
--- a/sys/conf/newvers.sh Wed Oct 15 01:28:28 2003 +0000
+++ b/sys/conf/newvers.sh Wed Oct 15 01:28:49 2003 +0000
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: newvers.sh,v 1.35 2003/10/14 16:59:54 christos Exp $
+# $NetBSD: newvers.sh,v 1.36 2003/10/15 01:28:49 lukem Exp $
#
# Copyright (c) 1984, 1986, 1990, 1993
# The Regents of the University of California. All rights reserved.
@@ -58,6 +58,8 @@
ost="NetBSD"
osr=$(sh $osrelcmd)
+fullversion="${ost} ${osr} (${id}) #${v}: ${t}\n\t${u}@${h}:${d}\n"
+
cat << _EOF > vers.c
/*
* Automatically generated file from $0
@@ -69,14 +71,10 @@
#include <sys/exec.h>
#include <sys/exec_elf.h>
-#define NETBSDVERSION \
- "${ost} ${osr} (${id}) #${v}: ${t}\n" \
- "\t${u}@${h}:${d}\n"
-
const char ostype[] = "${ost}";
const char osrelease[] = "${osr}";
-const char sccs[] = "@(#)" NETBSDVERSION;
-const char version[] = NETBSDVERSION;
+const char sccs[] = "@(#)${fullversion}";
+const char version[] = "${fullversion}";
#ifdef notyet
/*
Home |
Main Index |
Thread Index |
Old Index