summaryrefslogtreecommitdiff
path: root/new_vers.sh
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@1ts.org>2011-11-25 01:54:33 -0500
committerGravatar Karl Ramm <kcr@1ts.org>2011-11-25 01:55:12 -0500
commit5aec58b8494a6bc47727623dad2353ac7fc27299 (patch)
treeb3c01ac66ded9280e8bbcf28dd1c5087477b3503 /new_vers.sh
parentf276622ace757977fec43633e43577350e0cf6fe (diff)
New version propagation to replace keyword substitution, part 1
Diffstat (limited to 'new_vers.sh')
-rwxr-xr-xnew_vers.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/new_vers.sh b/new_vers.sh
new file mode 100755
index 0000000..af0f403
--- /dev/null
+++ b/new_vers.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+top_srcdir=${1:-`pwd`}
+
+u=${USER-the_zephyr_builder}
+h=`hostname`
+t=`date`
+v=`sh ${top_srcdir}/get_vers.sh ${top_srcdir}`
+
+umask 002
+/bin/echo "#define ZEPHYR_VERSION_STRING \"${v} (${t}) ${u}@${h}\"" > h/zephyr_version.h