Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/stand/common save 4.3 bytes on the date strin...
details: https://anonhg.NetBSD.org/src/rev/10fcfebbcd84
branches: trunk
changeset: 471667:10fcfebbcd84
user: cgd <cgd%NetBSD.org@localhost>
date: Wed Apr 07 06:30:34 1999 +0000
description:
save 4.3 bytes on the date string! 4 == day of week plus space,
.3 == a space on days of the month 1-9.
diffstat:
sys/arch/alpha/stand/common/newvers.sh | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r 235a88cfcd9e -r 10fcfebbcd84 sys/arch/alpha/stand/common/newvers.sh
--- a/sys/arch/alpha/stand/common/newvers.sh Wed Apr 07 06:14:33 1999 +0000
+++ b/sys/arch/alpha/stand/common/newvers.sh Wed Apr 07 06:30:34 1999 +0000
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: newvers.sh,v 1.1 1999/04/05 06:56:23 cgd Exp $
+# $NetBSD: newvers.sh,v 1.2 1999/04/07 06:30:34 cgd Exp $
#
# Copyright (c) 1984, 1986, 1990, 1993
# The Regents of the University of California. All rights reserved.
@@ -35,7 +35,9 @@
#
# @(#)newvers.sh 8.1 (Berkeley) 4/20/94
-u=${USER-root} h=`hostname` t=`date`
+u=${USER-root}
+h=`hostname`
+t=`date +"%b %e %H:%M:%S %Z %Y" | sed -e 's, *, ,g'`
r=`awk '/^Version:/ { print $2 } ' $1`
echo "char bootprog_rev[] = \"${r}\";" > vers.c
Home |
Main Index |
Thread Index |
Old Index