From 8aca52bcbb6b9c710771087dddeadf4adb05dc66 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Tue, 18 May 2010 23:48:17 +0000 Subject: Defined the pattern of the revision.h file. git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@159 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a --- ChangeLog | 11 +++++++++++ Makefile.am | 2 +- revision.h | 31 ------------------------------- revision.h.in | 31 +++++++++++++++++++++++++++++++ 4 files changed, 43 insertions(+), 32 deletions(-) delete mode 100644 revision.h create mode 100644 revision.h.in diff --git a/ChangeLog b/ChangeLog index da7ce4b..51280b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,17 @@ 10-05-19 Cyrille Bagard * Makefile.am: + Update code. + + * revision.h: + Deleted entry. + + * revision.h.in: + New entry: define the pattern of the revision.h file. + +10-05-19 Cyrille Bagard + + * Makefile.am: Fix the computing. 10-05-19 Cyrille Bagard diff --git a/Makefile.am b/Makefile.am index 0bee3b5..de72d75 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,7 +6,7 @@ BUILT_SOURCES = revision.h revision.h: .svn @nb=`svn log ChangeLog -l 1 -q | grep r | cut -d ' ' -f 1 | tr -d 'r'` ; \ - sed -i "s/#define REVISION .*$$/#define REVISION $$nb/" $@ ; \ + cat $@.in | sed "s/#define REVISION .*$$/#define REVISION $$nb/" > $@ ; \ [ -f $< ] && rm $< || true EXTRA_DIST = config.rpath config.rpath config.rpath config.rpath ChangeLog diff --git a/revision.h b/revision.h deleted file mode 100644 index c9fa02f..0000000 --- a/revision.h +++ /dev/null @@ -1,31 +0,0 @@ - -/* OpenIDA - Outil d'analyse de fichiers binaires - * revision.h - inscription du numéro de révision SVN - * - * Copyright (C) 2010 Cyrille Bagard - * - * This file is part of OpenIDA. - * - * OpenIDA is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * OpenIDA is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Foobar. If not, see . - */ - - -#ifndef _DIALOGS_REVISION_H -#define _DIALOGS_REVISION_H - - -#define REVISION 157 - - -#endif /* _DIALOGS_REVISION_H */ diff --git a/revision.h.in b/revision.h.in new file mode 100644 index 0000000..10234d0 --- /dev/null +++ b/revision.h.in @@ -0,0 +1,31 @@ + +/* OpenIDA - Outil d'analyse de fichiers binaires + * revision.h - inscription du numéro de révision SVN + * + * Copyright (C) 2010 Cyrille Bagard + * + * This file is part of OpenIDA. + * + * OpenIDA is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * OpenIDA is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Foobar. If not, see . + */ + + +#ifndef _DIALOGS_REVISION_H +#define _DIALOGS_REVISION_H + + +#define REVISION XXX + + +#endif /* _DIALOGS_REVISION_H */ -- cgit v0.11.2-87-g4458