← Back to team overview

hipl-core team mailing list archive

[Branch ~hipl-core/hipl/trunk] Rev 4901: Add build date in version information.

 

------------------------------------------------------------
revno: 4901
committer: Andrius.Bentkus@xxxxxxxxxxxxxx
branch nick: version
timestamp: Thu 2010-08-19 18:26:27 +0200
message:
  Add build date in version information.
modified:
  Makefile.am
  lib/core/util.h


--
lp:hipl
https://code.launchpad.net/~hipl-core/hipl/trunk

Your team HIPL core team is subscribed to branch lp:hipl.
To unsubscribe from this branch go to https://code.launchpad.net/~hipl-core/hipl/trunk/+edit-subscription
=== modified file 'Makefile.am'
--- Makefile.am	2010-06-30 11:49:50 +0000
+++ Makefile.am	2010-08-19 16:26:27 +0000
@@ -247,7 +247,7 @@
 # when creating specific objects that may depend on version.h directly.
 BUILT_SOURCES = version.h
 $(srcdir)/version.h: $(wildcard $(srcdir)/.bzr/branch/last-revision)
-	echo "$$(bzr version-info $(srcdir) --custom --template="#define BZR_REVISION \"{revno}\"\n\n#define BZR_BRANCH \"{branch_nick}\"")" > $@
+	echo "$$(bzr version-info $(srcdir) --custom --template="#define BZR_REVISION \"{revno}\"\n\n#define BZR_DATE \"{date}\"\n\n#define BZR_BRANCH \"{branch_nick}\"")" > $@
 
 # The complete doc/ subdirectory is in EXTRA_DIST, so files that should
 # not be distributed need to be deleted manually from the distribution.

=== modified file 'lib/core/util.h'
--- lib/core/util.h	2010-05-03 19:38:42 +0000
+++ lib/core/util.h	2010-08-19 16:26:27 +0000
@@ -16,8 +16,8 @@
  */
 static inline void hip_print_version(const char *name)
 {
-    printf("%s %s (Bazaar branch-nick: '%s', revision: %s)\n",
-           name, VERSION, BZR_BRANCH, BZR_REVISION);
+    printf("%s %s (Bazaar branch-nick: '%s', revision: %s, build at: '%s')\n",
+           name, VERSION, BZR_BRANCH, BZR_REVISION, BZR_DATE);
     printf("build configuration: %s\n", HIPL_CONFIGURATION);
 }