From: Mark Wooding Date: Tue, 10 Apr 2012 11:19:09 +0000 (+0100) Subject: Build: get version from Git. X-Git-Tag: 1.2.1~2 X-Git-Url: https://git.distorted.org.uk/~mdw/mdwfonts/commitdiff_plain/a7875f2f332efb4251417e929c761bbf4fd1e03b Build: get version from Git. --- 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 a359493..e50b079 100644 --- a/Makefile.m4 +++ b/Makefile.m4 @@ -94,6 +94,10 @@ CLEANFILES = \ Makefile.am: Makefile.m4 cd $(srcdir) && m4 Makefile.m4 >Makefile.am +dist-hook:: + echo $(VERSION) >$(distdir)/RELEASE +EXTRA_DIST += auto-version + .PHONY: dvi ##----- That's all, folks --------------------------------------------------- diff --git a/configure.in b/configure.in index dc92fe7..7fa9776 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 mdwfonts; if not, write to the Free Software Foundation, dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -AC_INIT(mdwfonts.ins) -AM_INIT_AUTOMAKE(mdwfonts, 1.2.0) +mdw_AUTO_VERSION +AC_INIT(mdwfonts, AUTO_VERSION, mdw@distorted.org.uk) +AC_CONFIG_SRCDIR(mdwfonts.ins) +AM_INIT_AUTOMAKE(foreign) mdw_DIR_TEXMF AC_CHECK_PROGS(FONTINST, fontinst, tex) AC_OUTPUT(Makefile)