driconf: fix force_gl_vendor description
[mesa.git] / bin / install_megadrivers.py
index c9ab99a283302e47f8ae699891b5358f4a5c3f3f..0a28dd7c0c57c94c5475e8c8e4a2879a96ca502c 100644 (file)
@@ -1,5 +1,6 @@
+#!/usr/bin/env python3
 # encoding=utf-8
-# Copyright © 2017-2018 Intel Corporation
+# Copyright 2017-2018 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
@@ -24,7 +25,6 @@
 from __future__ import print_function
 import argparse
 import os
-import shutil
 
 
 def main():
@@ -70,7 +70,14 @@ def main():
                 name, ext = os.path.splitext(name)
         finally:
             os.chdir(ret)
+
+    # Remove meson-created master .so and symlinks
     os.unlink(master)
+    name, ext = os.path.splitext(master)
+    while ext != '.so':
+        if os.path.lexists(name):
+            os.unlink(name)
+        name, ext = os.path.splitext(name)
 
 
 if __name__ == '__main__':