mesa/bin
Gert Wollny 7a46b2d641 meson, install_megadrivers: Also remove stale symlinks
os.path.exists doesn't return True for stale symlinks, but they are in
the way later, when a link/file with the same name is to be created.
For instance it is conceivable that the pointed to file is replaced by
a file with a new name, and then the symlink is dead.

To handle this check specifically for all existing symlinks to be
removed. (This bugged me for some time with a link libXvMCr600.so
always being in the way of installing this file)

v2: use only os.lexist and replace all instances of os.exist (Dylan Baker)

v3: handle directory check correctly (Eric Engestrom)

Fixes: f7f1b30f81
       ("meson: extend install_megadrivers script to handle symmlinking")

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>(v2 minus dir check)
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
2018-08-06 18:42:01 +02:00
..
.editorconfig bin: use tabs for coding style on *.sh files 2017-05-09 14:05:00 +03:00
.gitignore Add new .gitignore entries for Automake 1.13 tests 2013-01-03 15:24:45 -08:00
bugzilla_mesa.sh bin/bugzilla_mesa.sh: explicitly set the --pretty argument 2018-05-23 09:54:00 -07:00
get-extra-pick-list.sh bin/get-{extra,fixes}-pick-list.sh: improve output 2017-04-20 10:28:54 +02:00
get-fixes-pick-list.sh bin: force git show to use default pretty setting 2018-04-27 10:19:55 -07:00
get-pick-list.sh bin/get-pick-listh.sh: force git --pretty=medium 2018-05-23 09:54:17 -07:00
get-typod-pick-list.sh bin/get-typod-pick-list.sh: limit `git grep ...' to only as needed 2017-02-16 15:17:52 +00:00
git_sha1_gen.py git_sha1_gen: create empty file in fallback path 2017-10-30 17:21:58 +00:00
install_megadrivers.py meson, install_megadrivers: Also remove stale symlinks 2018-08-06 18:42:01 +02:00
meson.build meson: bring MESA_GIT_SHA1 in line with other build systems 2017-10-27 13:38:37 +01:00
meson_get_version.py meson: Add script to use VERSION file for getting version 2017-11-09 11:19:53 -08:00
perf-annotate-jit.py bin/*py: honor editorconfig formatting 2017-05-09 14:06:52 +03:00
shortlog_mesa.sh bin/shortlog_mesa.sh: remove the final bashism 2017-03-10 14:12:48 +00:00