From f21c313fdfd9237a77a6c8ae52949ad6068e3930 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Tue, 18 May 2010 23:41:29 +0000 Subject: Fixed the computing of the revision number. git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@158 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a --- ChangeLog | 5 +++++ Makefile.am | 4 ++-- revision.h | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5334f77..da7ce4b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,11 @@ 10-05-19 Cyrille Bagard * Makefile.am: + Fix the computing. + +10-05-19 Cyrille Bagard + + * Makefile.am: Compute the revision number based on SVN. * pixmaps/Makefile.am: diff --git a/Makefile.am b/Makefile.am index 13a6314..0bee3b5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -5,9 +5,9 @@ BUILT_SOURCES = revision.h @[ -d $@ ] || touch $@ revision.h: .svn - @nb=`svn log . -l 1 -q | grep r | cut -d ' ' -f 1 | tr -d 'r'` ; \ + @nb=`svn log ChangeLog -l 1 -q | grep r | cut -d ' ' -f 1 | tr -d 'r'` ; \ sed -i "s/#define REVISION .*$$/#define REVISION $$nb/" $@ ; \ - [ -f $< ] && rm $< + [ -f $< ] && rm $< || true EXTRA_DIST = config.rpath config.rpath config.rpath config.rpath ChangeLog diff --git a/revision.h b/revision.h index 4178a11..c9fa02f 100644 --- a/revision.h +++ b/revision.h @@ -25,7 +25,7 @@ #define _DIALOGS_REVISION_H -#define REVISION 156 +#define REVISION 157 #endif /* _DIALOGS_REVISION_H */ -- cgit v0.11.2-87-g4458