[med-svn] [SCM] aghermann branch, master, updated. 99b1d5a023eee9df74b0e0d6f894516fc79435ad
Andrei Zavada
johnhommer at gmail.com
Sun Jul 7 23:03:45 UTC 2013
The following commit has been merged in the master branch:
commit aaa55ad6c3f84f2ac9b671ce761ea31808c9402e
Author: Andrei Zavada <johnhommer at gmail.com>
Date: Tue May 28 15:55:52 2013 +0300
ensure printed version and built-by is up-to-date
diff --git a/src/aghermann/Makefile.am b/src/aghermann/Makefile.am
index e64f578..bc4529f 100644
--- a/src/aghermann/Makefile.am
+++ b/src/aghermann/Makefile.am
@@ -16,9 +16,13 @@ AM_CXXFLAGS := \
bin_PROGRAMS := aghermann
aghermann_SOURCES := \
+ print_version.cc \
main.cc \
ui/sm/sm.hh
+print_version.o: FORCE
+FORCE:
+
aghermann_LDADD := \
ui/sm/liba.a \
ui/mw/liba.a \
diff --git a/src/aghermann/main.cc b/src/aghermann/main.cc
index 0bf940e..a687b49 100644
--- a/src/aghermann/main.cc
+++ b/src/aghermann/main.cc
@@ -54,12 +54,12 @@ message_received_cb( UniqueApp *,
-
+void print_version();
int
main( int argc, char **argv)
{
- printf( PACKAGE_STRING " built " __DATE__ " " __TIME__ " by " BUILT_BY "\n");
+ print_version();
int c;
while ( (c = getopt( argc, argv, "h")) != -1 )
diff --git a/src/aghermann/print_version.cc b/src/aghermann/print_version.cc
new file mode 100644
index 0000000..86bba46
--- /dev/null
+++ b/src/aghermann/print_version.cc
@@ -0,0 +1,24 @@
+/*
+ * File name: aghermann/print_version.cc
+ * Project: Aghermann
+ * Author: Andrei Zavada <johnhommer at gmail.com>
+ * Initial version: 2013-05-28
+ *
+ * Purpose: print version (separate file for every make to always touch it)
+ *
+ * License: GPL
+ */
+
+#include <cstdio>
+#include "config.h"
+
+void
+print_version()
+{
+ printf( PACKAGE_STRING " built " __DATE__ " " __TIME__ " by " BUILT_BY "\n");
+}
+
+// Local Variables:
+// Mode: c++
+// indent-tabs-mode: nil
+// End:
--
Sleep experiment manager
More information about the debian-med-commit
mailing list