From 1ad2fdbe5b0c869bfd015e9cba8040e9b8099e5f Mon Sep 17 00:00:00 2001 From: GiWoong Kim Date: Wed, 3 Jul 2013 16:41:03 +0900 Subject: [PATCH] emulator: logging for the latest git tag logging for the latest git tag Change-Id: I49ed234f644b9ab73bcd592251afed6cf806a5c5 Signed-off-by: GiWoong Kim --- tizen/src/Makefile | 2 ++ tizen/src/emulator.c | 1 + 2 files changed, 3 insertions(+) diff --git a/tizen/src/Makefile b/tizen/src/Makefile index ec4c96c8f5..4b35d6f29e 100644 --- a/tizen/src/Makefile +++ b/tizen/src/Makefile @@ -44,12 +44,14 @@ skin_client: ant -buildfile skin/client/build.xml make-jar build_info: + @echo "Generate a build information file" @echo "/* Automatically generated by Makefile - do not modify! */" > build_info.h @echo "const char build_version[] = \"`cat VERSION`\";" >> build_info.h @echo "const char build_date[] = \"`date +"%F %T %Z"`\";" >> build_info.h @echo "const char pkginfo_version[] = \"`sed -n '1p' ./../../package/pkginfo.manifest`\";" >> build_info.h @echo "const char pkginfo_maintainer[] = \"`sed -n '2p' ./../../package/pkginfo.manifest`\";" >> build_info.h @echo "const char pkginfo_githead[] = \"`git rev-parse HEAD`\";" >> build_info.h + @echo "const char latest_gittag[] = \"`git for-each-ref --count=1 --sort=-taggerdate refs/tags/ --format='Latest Git Tag : %(refname:short) (%(subject))'`\";" >> build_info.h ffmpeg: cd ../distrib/libav/ && $(MAKE) diff --git a/tizen/src/emulator.c b/tizen/src/emulator.c index 63656c7d74..cba2669f7b 100644 --- a/tizen/src/emulator.c +++ b/tizen/src/emulator.c @@ -309,6 +309,7 @@ static void print_system_info(void) INFO("* Package %s\n", pkginfo_version); INFO("* Package %s\n", pkginfo_maintainer); INFO("* Git Head : %s\n", pkginfo_githead); + INFO("* %s\n", latest_gittag); INFO("* User name : %s\n", g_get_real_name()); INFO("* Host name : %s\n", g_get_host_name()); -- 2.34.1