From b7bf873aa0512c672a36cad852ebd6742ffaf681 Mon Sep 17 00:00:00 2001 From: mathias Date: Thu, 3 Feb 2005 16:46:46 +0000 Subject: fixes the year for fluxbox -version added a way to display the svn-revision-number in fluxbox -info --- src/Makefile.am | 13 +++++++++++-- src/main.cc | 5 ++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index e6f7dad..243cb1d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -41,11 +41,20 @@ defaults.hh: Makefile echo '#define DEFAULTKEYSFILE "$(DEFAULT_KEYSFILE)"' >> defaults.hh echo '#define DEFAULT_INITFILE "$(pkgdatadir)/init"' >> defaults.hh echo '#define LOCALEPATH "$(pkgdatadir)/nls"' >> defaults.hh + echo 'const char* svnversion(void);' >> defaults.hh -# an extra dep for fluxbox +defaults.cc: force + echo 'const char* svnversion(void) {' > defaults.cc + echo ' return "'`(svnversion . | sed "s/[^0-9].*//") 2> /dev/null`'";' >> defaults.cc + echo '}' >> defaults.cc + +force: ; +# an extra dep for fluxbox fluxbox.$(OBJEXT): defaults.hh + + if NEWWMSPEC newwmspec_SOURCE= Ewmh.hh Ewmh.cc endif @@ -120,4 +129,4 @@ fluxbox_SOURCES = AtomHandler.hh ArrowButton.hh ArrowButton.cc \ ${REMEMBER_SOURCE} ${REGEXP_SOURCE} ${TOOLBAR_SOURCE} -LDADD=FbTk/libFbTk.a +LDADD=FbTk/libFbTk.a defaults.$(OBJEXT) diff --git a/src/main.cc b/src/main.cc index 3da300e..ce93186 100644 --- a/src/main.cc +++ b/src/main.cc @@ -63,6 +63,9 @@ using namespace std; void showInfo(ostream &ostr) { _FB_USES_NLS; ostr<<_FBTEXT(Common, FluxboxVersion, "Fluxbox version", "Fluxbox version heading")<<": "<<__fluxbox_version< 0) + ostr<<"SVN Revision: "<