summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2008-04-30 15:06:00 -0700
committerDan Nicholson <dbn.lists@gmail.com>2008-05-05 14:21:28 -0700
commit00994ac08cb84937ca1e35b7a556d8924229bacb (patch)
treef5d5f53953e25610826567a02b0a409e36fdbb81 /bin
parent2ed0f7278e389ecc0cf568518799a9a8f33b1365 (diff)
downloadmesa-00994ac08cb84937ca1e35b7a556d8924229bacb.tar.gz
autoconf: Scrape the version from configs/default
Added the make script version.mk to print the various version numbers from configs/default. This is used to substitute the version in autoconf rather than duplicating it in both places.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/version.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/version.mk b/bin/version.mk
new file mode 100755
index 00000000000..ab20d79daee
--- /dev/null
+++ b/bin/version.mk
@@ -0,0 +1,17 @@
+#!/usr/bin/make -sf
+# Print the various Mesa version fields. This is mostly used to add the
+# version to configure.
+
+# This reflects that this script is usually called from the toplevel
+TOP = .
+
+include $(TOP)/configs/default
+
+version:
+ @echo $(MESA_VERSION)
+major:
+ @echo $(MESA_MAJOR)
+minor:
+ @echo $(MESA_MINOR)
+tiny:
+ @echo $(MESA_TINY)