summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDylan Baker <dylan.c.baker@intel.com>2023-01-17 09:50:26 -0800
committerMarge Bot <emma+marge@anholt.net>2023-01-19 23:06:07 +0000
commita79e6457d8aa6eb10b0c3dd0359f25d2e9a839eb (patch)
tree269d0fa5923823ec74b3b60d96942a816e776cac /bin
parentc31629ee786db9d34ef19bcc96f8cf47308aa0cf (diff)
downloadmesa-a79e6457d8aa6eb10b0c3dd0359f25d2e9a839eb.tar.gz
mesa-a79e6457d8aa6eb10b0c3dd0359f25d2e9a839eb.tar.bz2
mesa-a79e6457d8aa6eb10b0c3dd0359f25d2e9a839eb.zip
meson: use builtin support for reading version from a file
In meson 0.57 support was added for reading a version from a file to meson natively, so we don't need this workaround anymore. Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20752>
Diffstat (limited to 'bin')
-rw-r--r--bin/meson_get_version.py39
1 files changed, 0 insertions, 39 deletions
diff --git a/bin/meson_get_version.py b/bin/meson_get_version.py
deleted file mode 100644
index 91a7e7030d1..00000000000
--- a/bin/meson_get_version.py
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/usr/bin/env python3
-# encoding=utf-8
-# Copyright © 2017 Intel Corporation
-
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-# SOFTWARE.
-
-import argparse
-import os
-
-
-def main():
- parser = argparse.ArgumentParser()
- parser.add_argument('version_dir', help="Directory with VERSION file")
- args = parser.parse_args()
-
- filename = os.path.join(args.version_dir, 'VERSION')
- with open(filename) as f:
- version = f.read().strip()
- print(version, end='')
-
-
-if __name__ == '__main__':
- main()