summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog11
-rw-r--r--Makefile.am2
-rw-r--r--revision.h.in (renamed from revision.h)2
3 files changed, 13 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index da7ce4b..51280b3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,17 @@
10-05-19 Cyrille Bagard <nocbos@gmail.com>
* 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 <nocbos@gmail.com>
+
+ * Makefile.am:
Fix the computing.
10-05-19 Cyrille Bagard <nocbos@gmail.com>
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.in
index c9fa02f..10234d0 100644
--- a/revision.h
+++ b/revision.h.in
@@ -25,7 +25,7 @@
#define _DIALOGS_REVISION_H
-#define REVISION 157
+#define REVISION XXX
#endif /* _DIALOGS_REVISION_H */