[Zrouter-src] ZRouter.org: push to ZRouter Makefile

zrouter-src at zrouter.org zrouter-src at zrouter.org
Thu Sep 13 23:39:58 UTC 2012


details:   http://zrouter.org/hg/zrouter//rev/2e4f82453446
changeset: 424:2e4f82453446
user:      Aleksandr Rybalko <ray at ddteam.net>
date:      Fri Sep 14 02:42:39 2012 +0300
description:
Add build date to /etc/zrouter_version on rootfs build.

diffstat:

 Makefile |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r c8c7935faa90 -r 2e4f82453446 Makefile
--- 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


More information about the Zrouter-src mailing list