[PATCH] update_version.sh: Insert just date + time in date stamp

Colin King colin.king at canonical.com
Fri Feb 22 17:08:16 UTC 2013


From: Colin Ian King <colin.king at canonical.com>

The update_version.sh script is inserting some international strings
into the FWTS_DATE string which is not was intended.  For example:

fwts -v
fwts, Version V0.26.05, 四 2月 7 09:14:47 CST 2013

..so alter this so we just dump the date and time as digits and
don't dump out the day or month strings.

Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
 update_version.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/update_version.sh b/update_version.sh
index dae8141..2eefe10 100755
--- a/update_version.sh
+++ b/update_version.sh
@@ -27,7 +27,7 @@ cat << EOF > src/lib/include/fwts_version.h
  */
 EOF
 echo '#define FWTS_VERSION "'$version'"' >> src/lib/include/fwts_version.h
-echo '#define FWTS_DATE    "'`date`'"' >> src/lib/include/fwts_version.h
+echo '#define FWTS_DATE    "'`date "+%x %T"`'"' >> src/lib/include/fwts_version.h
 git add src/lib/include/fwts_version.h
 git commit -s -m"lib: fwts_version.h - update to $version"
 git tag -m'"Version '$1'"' $1
-- 
1.8.1.2




More information about the fwts-devel mailing list