Ticket #2889: patch-1.5.15hg.vl.reldate.1

File patch-1.5.15hg.vl.reldate.1, 0.7 kB (added by vinc17, 16 months ago)

patch to use hg tip...

Line 
1diff -r f6861b85f22b Makefile.am
2--- a/Makefile.am       Wed May 02 10:50:07 2007 -0700
3+++ b/Makefile.am       Thu May 03 14:11:04 2007 +0200
4@@ -121,8 +121,10 @@ keymap_defs.h: $(OPS) $(srcdir)/gen_defs
5                $(srcdir)/OPS.MIX $(srcdir)/OPS.CRYPT $(srcdir)/OPS.SMIME \
6                        > $(srcdir)/keymap_alldefs.h
7 
8-reldate.h: $(srcdir)/ChangeLog
9-       echo 'const char *ReleaseDate = "'`head -n 1 $(srcdir)/ChangeLog | LC_ALL=C cut -d ' ' -f 1`'";' > reldate.h.tmp; \
10+reldate.h: reldate
11+
12+reldate:
13+       echo 'const char *ReleaseDate = "'`(cd $(srcdir) && hg tip --template '{date|shortdate}') || head -n 1 $(srcdir)/ChangeLog | LC_ALL=C cut -d ' ' -f 1`'";' > reldate.h.tmp; \
14        cmp -s reldate.h.tmp reldate.h || cp reldate.h.tmp reldate.h; \
15        rm reldate.h.tmp
16