Build: version from Git.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 10 Apr 2012 10:29:33 +0000 (11:29 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 10 Apr 2012 10:37:46 +0000 (11:37 +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 f8442a9..2b08007 100644 (file)
@@ -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
 
index 11657eb..e5d838e 100644 (file)
@@ -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)