From 36bc1cc40c76ec8e66ec72b6d18d041593cdda50 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Tue, 10 Apr 2012 11:29:33 +0100 Subject: [PATCH] Build: version from Git. --- .links | 1 + Makefile.m4 | 6 ++++-- configure.in | 6 ++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.links b/.links index c23faf1..db8c707 100644 --- a/.links +++ b/.links @@ -1,2 +1,3 @@ COPYING gpl.tex +auto-version diff --git a/Makefile.m4 b/Makefile.m4 index f8442a9..2b08007 100644 --- a/Makefile.m4 +++ b/Makefile.m4 @@ -23,8 +23,6 @@ ## along with strayman; if not, write to the Free Software Foundation, ## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -AUTOMAKE_OPTIONS = foreign - pkglatexdir = ${texmfdir}/tex/latex/${PACKAGE} pkgdocdir = ${texmfdir}/doc/latex/${PACKAGE} @@ -67,6 +65,10 @@ EXTRA_DIST = $(SRC) $(AUX) $(DVI) $(OBJ) strayman.ins Makefile.m4 MAINTAINERCLEANFILES = $(OBJ) $(DVI) CLEANFILES = *.tmp *.aux *.idx *.ilg *.log *.toc *.ind *.lot *.ans *.ps *.pdf +dist-hook:: + echo $(VERSION) >$(distdir)/RELEASE +EXTRA_DIST += auto-version + Makefile.am: Makefile.m4 cd $(srcdir) && m4 Makefile.m4 >Makefile.am diff --git a/configure.in b/configure.in index 11657eb..e5d838e 100644 --- a/configure.in +++ b/configure.in @@ -23,8 +23,10 @@ dnl You should have received a copy of the GNU General Public License dnl along with strayman; if not, write to the Free Software Foundation, dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -AC_INIT(strayman.ins) -AM_INIT_AUTOMAKE(strayman, 1.1.2) +mdw_AUTO_VERSION +AC_INIT(strayman, AUTO_VERSION, mdw@distorted.org.uk) +AC_CONFIG_SRCDIR(strayman.ins) +AM_INIT_AUTOMAKE(foreign) mdw_DIR_TEXMF AC_OUTPUT(Makefile) -- 2.11.0