- fixup version.h generation to always use VERSION.svn (renamed from VERSION.data) via make(1) dependency (hopefully _this_ was the last time I had to deal with it)
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@441
e385b8ad-14ed-0310-8656-
cc95a2468c6d
$(srcdir)/OPS.MIX $(srcdir)/OPS.CRYPT $(srcdir)/OPS.SMIME \
> keymap_alldefs.h
$(srcdir)/OPS.MIX $(srcdir)/OPS.CRYPT $(srcdir)/OPS.SMIME \
> keymap_alldefs.h
+version.h: $(srcdir)/VERSION.svn
echo "#undef MUTT_VERSION" > version.h
echo "#undef MUTT_VERSION" > version.h
- if test -f "$(srcdir)/.svn/entries" ; then \
- echo "#define MUTT_VERSION \"`cat $(srcdir)/VERSION.in`-r`grep revision $(srcdir)/.svn/entries | sort -r | uniq | head -n 1 | cut -d '"' -f 2`\"" >> version.h ; \
- else \
- echo "#define MUTT_VERSION \"`cat $(srcdir)/VERSION.in`-`cat $(srcdir)/VERSION.date`\"" >> version.h ; \
- fi
+ echo "#define MUTT_VERSION \"`cat $(srcdir)/VERSION.in`-r`cat $(srcdir)/VERSION.svn`\"" >> version.h ; \
reldate:
echo 'const char *ReleaseDate = "'`date +%Y-%m-%d`'";' > $(srcdir)/reldate.h
reldate:
echo 'const char *ReleaseDate = "'`date +%Y-%m-%d`'";' > $(srcdir)/reldate.h
#!/bin/sh
svn update
CURREV=`svn info | grep '^Revision' | cut -d : -f 2`
#!/bin/sh
svn update
CURREV=`svn info | grep '^Revision' | cut -d : -f 2`
-echo "`echo $CURREV+1 | bc`" > ./VERSION.date
+echo "`echo $CURREV+1 | bc`" > ./VERSION.svn