summaryrefslogtreecommitdiff
path: root/bin/version.mk
diff options
context:
space:
mode:
Diffstat (limited to 'bin/version.mk')
-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 0000000..ab20d79
--- /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)