changeset 424:2e4f82453446

Add build date to /etc/zrouter_version on rootfs build.
author Aleksandr Rybalko <ray@ddteam.net>
date Fri, 14 Sep 2012 02:42:39 +0300
parents c8c7935faa90
children 3bd5c2e9e8ac
files Makefile
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Fri Sep 14 02:24:33 2012 +0300
+++ b/Makefile	Fri Sep 14 02:42:39 2012 +0300
@@ -581,7 +581,9 @@
 	rm -rf ${NEW_ROOTFS}/etc/mpd
 	ln -s /tmp/etc/mpd ${NEW_ROOTFS}/etc/mpd
 	hg --repository "${ZROUTER_ROOT}" tip \
-	    --template 'revision="{rev}"\ntimestamp="{date|isodate}"\ndate="{date|isodate}"\n' > \
+	    --template 'revision="{rev}"\ndate="{date|isodate}"\n' > \
+	    "${NEW_ROOTFS}/etc/zrouter_version"
+	LANG=C date '+build="%Y-%m-%d %H:%M:%S"' >> \
 	    "${NEW_ROOTFS}/etc/zrouter_version"
 	cd ${ZROUTER_OBJ}/${TARGET_VENDOR}_${TARGET_DEVICE}_rootfs_clean ; \
 	    find ./usr/ -type d -empty -delete