diff options
Diffstat (limited to 'util')
-rwxr-xr-x | util/getdate.sh | 12 | ||||
-rwxr-xr-x | util/getversion.sh | 1 |
2 files changed, 12 insertions, 1 deletions
diff --git a/util/getdate.sh b/util/getdate.sh new file mode 100755 index 0000000000..8099b398e8 --- /dev/null +++ b/util/getdate.sh @@ -0,0 +1,12 @@ +#!/bin/bash +# +# Copyright (c) 2014 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. +# +# Generate build date information for the EC binary + +echo "/* This file is generated by util/getdate.sh */" + +echo "/* DATE is used to form build info string in common/version.c. */" +echo "#define DATE \"$(date '+%F %T')\"" diff --git a/util/getversion.sh b/util/getversion.sh index 4d1931d4a2..c1da044690 100755 --- a/util/getversion.sh +++ b/util/getversion.sh @@ -46,5 +46,4 @@ echo "#define CROS_EC_VERSION32 \"${ver:0:31}\"" echo "/* Sub-fields for use in Makefile.rules and to form build info string" echo " * in common/version.c. */" echo "#define VERSION \"${ver}\"" -echo "#define DATE \"`date '+%F %T'`\"" echo "#define BUILDER \"${USER}@`hostname`\"" |