OSDN Git Service

Delegate version assignment to VERSION.m4 auxiliary file.
authorKeith Marshall <keithmarshall@users.sourceforge.net>
Tue, 8 Oct 2013 12:29:27 +0000 (13:29 +0100)
committerKeith Marshall <keithmarshall@users.sourceforge.net>
Tue, 8 Oct 2013 12:29:27 +0000 (13:29 +0100)
ChangeLog
VERSION.m4 [new file with mode: 0644]
configure.ac

index b9b0262..9617462 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2013-10-08  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Delegate version assignment to VERSION.m4 auxiliary file.
+
+       * VERSION.m4: New file.
+       * configure.ac (AC_INIT): m4_include, and use it.
+
 2013-10-04  Keith Marshall  <keithmarshall@users.sourceforge.net>
 
        Reduce "Basic Setup" group GCC inventory to only "bin" packages.
diff --git a/VERSION.m4 b/VERSION.m4
new file mode 100644 (file)
index 0000000..62cbba8
--- /dev/null
@@ -0,0 +1,31 @@
+# VERSION.m4 -*- autoconf -*- vim: filetype=config
+#
+# $Id$
+#
+# Written by Keith Marshall <keithmarshall@users.sourceforge.net>
+# Copyright (C) 2013, MinGW.org Project
+#
+#
+# Configuration script version specification for mingw-dist
+#
+#
+# This is free software.  Permission is granted to copy, modify and
+# redistribute this software, under the provisions of the GNU General
+# Public License, Version 3, (or, at your option, any later version),
+# as published by the Free Software Foundation; see the file COPYING
+# for licensing details.
+#
+# Note, in particular, that this software is provided "as is", in the
+# hope that it may prove useful, but WITHOUT WARRANTY OF ANY KIND; not
+# even an implied WARRANTY OF MERCHANTABILITY, nor of FITNESS FOR ANY
+# PARTICULAR PURPOSE.  Under no circumstances will the author, or the
+# MinGW.org Project, accept liability for any damages, however caused,
+# arising from the use of this software.
+#
+  m4_define([VERSION_MAJOR], [2])
+  m4_define([VERSION_MINOR], [3])
+  m4_define([VERSION_PATCH], [0])
+#
+  m4_define([__VERSION__], [VERSION_MAJOR.VERSION_MINOR.VERSION_PATCH])
+#
+# $RCSfile$: end of file
index 616f8d1..0354053 100644 (file)
@@ -22,7 +22,8 @@
 # MinGW Project, accept liability for any damages, however caused,
 # arising from the use of this software.
 #
-  AC_INIT([mingw-dist],[2.2],[http://mingw.org/reporting_bugs])
+  m4_include([VERSION.m4])
+  AC_INIT([mingw-dist],__VERSION__,[http://mingw.org/reporting_bugs])
 
 # Specify a default (invalid) user name, for authentication to FRS.
 #