diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-07-30 15:19:11 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-07-30 15:20:01 +0530 |
commit | 577b6dfdf63cde697ff33226950175a93578e2b8 (patch) | |
tree | 48058766e57be3559518295db3d9c908489734c4 /mesonbuild/scripts/depfixer.py | |
parent | 4a92b78e6e4508afb8ca988cb47c91ea4a765fee (diff) | |
download | meson-577b6dfdf63cde697ff33226950175a93578e2b8.zip meson-577b6dfdf63cde697ff33226950175a93578e2b8.tar.gz meson-577b6dfdf63cde697ff33226950175a93578e2b8.tar.bz2 |
find_program: Find scripts without extensions on Windows
Because of how files and executables work on Windows, scripts that use
an interpreter must have an extension, and that extension must be
associated with an interpreter. The full list of executable extensions
is available in the PATHEXT environment variable.
However, UNIX-like OSes use an executable bit and read the shebang to
figure out what interpreter to use, and the scripts don't need to have
extensions. We can now detect these scripts using find_program by
manually searching in PATH and reading the shebang.
Diffstat (limited to 'mesonbuild/scripts/depfixer.py')
0 files changed, 0 insertions, 0 deletions