path: root/bin
diff options
authorDan Nicholson <>2008-04-30 15:06:00 -0700
committerDan Nicholson <>2008-05-05 14:21:28 -0700
commit00994ac08cb84937ca1e35b7a556d8924229bacb (patch)
treef5d5f53953e25610826567a02b0a409e36fdbb81 /bin
parent2ed0f7278e389ecc0cf568518799a9a8f33b1365 (diff)
autoconf: Scrape the version from configs/default
Added the make script 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')
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/ b/bin/
new file mode 100755
index 00000000000..ab20d79daee
--- /dev/null
+++ b/bin/
@@ -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
+ @echo $(MESA_VERSION)
+ @echo $(MESA_MAJOR)
+ @echo $(MESA_MINOR)
+ @echo $(MESA_TINY)