Switch to generating the version string during make process rather than
at configure time. This makes it easier to keep the detailed version
string accurate when doing development which doesn't require that the
configure script be rerun.
/smime_keys
/txt2c
/stamp-doc-rc
+/version.h
/doc/instdoc
/doc/manual.txt
/doc/manual.xml
HCVERSION = hcversion.h
endif
-BUILT_SOURCES = keymap_defs.h patchlist.c reldate.h conststrings.c $(HCVERSION)
+BUILT_SOURCES = keymap_defs.h patchlist.c reldate.h conststrings.c version.h $(HCVERSION)
bin_PROGRAMS = mutt $(DOTLOCK_TARGET) $(PGPAUX_TARGET)
mutt_SOURCES = \
$(srcdir)/OPS.MIX $(srcdir)/OPS.CRYPT $(srcdir)/OPS.SMIME \
> keymap_alldefs.h
+version.h: FORCE
+ echo '#define MUTT_VERSION "'`sh "$(srcdir)/version.sh"`'"' > $@.tmp
+ cmp -s $@ $@.tmp && rm -f $@.tmp || mv $@.tmp $@
+FORCE:
+
reldate.h: $(srcdir)/mkreldate.sh $(srcdir)/ChangeLog
echo 'const char *ReleaseDate = "'`(cd $(srcdir) && ./mkreldate.sh)`'";' > reldate.h
# include "config.h"
#endif
+#include "version.h"
#include "mutt.h"
#include "mutt_curses.h"
#include "mutt_menu.h"
# include "config.h"
#endif
+#include "version.h"
#include "mutt.h"
#include "mutt_curses.h"
#include "mutt_idna.h"
AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$(top_srcdir)/VERSION'])
-MUTT_VERSION=`env sh "$srcdir/version.sh"`
-AC_DEFINE_UNQUOTED(MUTT_VERSION,"$MUTT_VERSION", [Full textual version string.])
-
AC_USE_SYSTEM_EXTENSIONS
ALL_LINGUAS="de eu ru it es uk fr pl nl cs id sk ko el zh_TW zh_CN pt_BR eo gl sv da lt tr ja hu et ca bg ga fi"
#include <limits.h>
#endif
+#include "version.h"
#include "dotlock.h"
#ifdef HAVE_GETOPT_H
# include "config.h"
#endif
+#include "version.h"
#include "mutt.h"
#include "mapping.h"
#include "mutt_curses.h"
# include "config.h"
#endif
+#include "version.h"
#include "mutt.h"
#include "mutt_curses.h"
#include "mime.h"
# include "config.h"
#endif
+#include "version.h"
#include "mutt.h"
#include "mutt_curses.h"
#include "rfc2047.h"
# include "config.h"
#endif
+#include "version.h"
#include "mutt.h"
#include "mutt_menu.h"
#include "mutt_curses.h"