Build: get version from Git.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 10 Apr 2012 11:19:09 +0000 (12:19 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 10 Apr 2012 11:48:13 +0000 (12:48 +0100)
.links
Makefile.m4
configure.in

diff --git a/.links b/.links
index c23faf1..db8c707 100644 (file)
--- a/.links
+++ b/.links
@@ -1,2 +1,3 @@
 COPYING
 gpl.tex
+auto-version
index a359493..e50b079 100644 (file)
@@ -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 ---------------------------------------------------
index dc92fe7..7fa9776 100644 (file)
@@ -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)