diff options
-rw-r--r-- | Android.common.mk | 3 | ||||
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | SConstruct | 4 | ||||
-rw-r--r-- | VERSION | 1 | ||||
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | docs/devinfo.html | 10 |
6 files changed, 10 insertions, 12 deletions
diff --git a/Android.common.mk b/Android.common.mk index dd37104b08..3e6d4c3989 100644 --- a/Android.common.mk +++ b/Android.common.mk @@ -33,9 +33,10 @@ endif LOCAL_C_INCLUDES += \ $(MESA_TOP)/include +MESA_VERSION=$(shell cat $(MESA_TOP)/VERSION) # define ANDROID_VERSION (e.g., 4.0.x => 0x0400) LOCAL_CFLAGS += \ - -DPACKAGE_VERSION=\"9.3.0-devel\" \ + -DPACKAGE_VERSION=\"$(MESA_VERSION)\" \ -DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\" \ -DANDROID_VERSION=0x0$(MESA_ANDROID_MAJOR_VERSION)0$(MESA_ANDROID_MINOR_VERSION) diff --git a/Makefile.am b/Makefile.am index 63e02c6a0f..ce391c409a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -36,6 +36,7 @@ PACKAGE_NAME = MesaLib-$(PACKAGE_VERSION) EXTRA_FILES = \ aclocal.m4 \ configure \ + VERSION \ bin/ar-lib \ bin/compile \ bin/config.sub \ diff --git a/SConstruct b/SConstruct index b00a7fe1c9..de735e94c3 100644 --- a/SConstruct +++ b/SConstruct @@ -69,8 +69,10 @@ if env['gles']: ####################################################################### # Environment setup +with open("VERSION") as f: + mesa_version = f.read().strip() env.Append(CPPDEFINES = [ - ('PACKAGE_VERSION', '\\"9.3.0-devel\\"'), + ('PACKAGE_VERSION', '\\"%s\\"' % mesa_version), ('PACKAGE_BUGREPORT', '\\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\\"'), ]) diff --git a/VERSION b/VERSION new file mode 100644 index 0000000000..b260649025 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +9.3.0-devel diff --git a/configure.ac b/configure.ac index 425b6eef79..62d06e0357 100644 --- a/configure.ac +++ b/configure.ac @@ -6,7 +6,8 @@ dnl Tell the user about autoconf.html in the --help output m4_divert_once([HELP_END], [ See docs/autoconf.html for more details on the options for Mesa.]) -AC_INIT([Mesa], [9.3.0-devel], +m4_define(MESA_VERSION, m4_normalize(m4_include(VERSION))) +AC_INIT([Mesa], [MESA_VERSION], [https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa]) AC_CONFIG_AUX_DIR([bin]) AC_CONFIG_MACRO_DIR([m4]) diff --git a/docs/devinfo.html b/docs/devinfo.html index bd11e5ccc1..bf7725961c 100644 --- a/docs/devinfo.html +++ b/docs/devinfo.html @@ -193,15 +193,7 @@ branch is relevant. </p> -<h3>Verify and update version info</h3> - -<dl> - <dt>SConstruct</dt> - <dt>Android.common.mk</dt> - <dd>PACKAGE_VERSION</dd> - <dt>configure.ac</dt> - <dd>AC_INIT</dd> -</dl> +<h3>Verify and update version info in VERSION</h3> <p> Create a docs/relnotes/x.y.z.html file. |