summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2010-05-18 23:48:17 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2010-05-18 23:48:17 (GMT)
commit8aca52bcbb6b9c710771087dddeadf4adb05dc66 (patch)
tree318c6768748fb01bf5bac03772d331970b7ed323
parentf21c313fdfd9237a77a6c8ae52949ad6068e3930 (diff)
Defined the pattern of the revision.h file.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@159 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
-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 */