emulator: logging for the latest git tag
authorGiWoong Kim <giwoong.kim@samsung.com>
Wed, 3 Jul 2013 07:41:03 +0000 (16:41 +0900)
committerGiWoong Kim <giwoong.kim@samsung.com>
Wed, 3 Jul 2013 07:41:03 +0000 (16:41 +0900)
logging for the latest git tag

Change-Id: I49ed234f644b9ab73bcd592251afed6cf806a5c5
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
tizen/src/Makefile
tizen/src/emulator.c

index ec4c96c8f51ebf1376e46da792e1cd59538e7a89..4b35d6f29eaa6aa1691934243347e103be7004d7 100644 (file)
@@ -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)
index 63656c7d74ca5e25bf67a907d58fc1a67640b8a5..cba2669f7be3ecacfbedcdcb5d1b4432c11f99c9 100644 (file)
@@ -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());