From patchwork Fri Feb 22 17:08:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: update_version.sh: Insert just date + time in date stamp Date: Fri, 22 Feb 2013 07:08:16 -0000 From: Colin King X-Patchwork-Id: 222572 Message-Id: <1361552896-1656-1-git-send-email-colin.king@canonical.com> To: fwts-devel@lists.ubuntu.com From: Colin Ian King 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 Acked-by: Keng-Yu Lin Acked-by: Alex Hung --- 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