chiark / gitweb /
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 c23faf1c319252f55d7fabb75f8975427c3a1204..db8c707268edc4d0f09c581bf1abc2a7de6a53ac 100644 (file)
--- a/.links
+++ b/.links
@@ -1,2 +1,3 @@
 COPYING
 gpl.tex
+auto-version
index f8442a90df7b4d2a6f53fddb7221018cd1869893..2b080073e52695ff1becffeb767b33c44ead348f 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 11657eb24d108f9295c0361568f26a29dbc978f6..e5d838e3a1bec74b36acdba20228299c9cded255 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)