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
.gitignore
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
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
git_sha1_gen.py
install_megadrivers.py meson, install_megadrivers: Also remove stale symlinks 2018-08-06 18:42:01 +02:00
meson.build
meson_get_version.py
perf-annotate-jit.py
shortlog_mesa.sh