diff options
author | Hossein <hossein@libreoffice.org> | 2022-08-19 16:55:39 +0200 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2022-08-20 12:12:19 +0200 |
commit | 482264a7c2058d50906c83219566d79c1cf3cbb9 (patch) | |
tree | f881b8a3b0e3e32277dffd768a21f59f9201c317 /bin | |
parent | 3c9777436db6a2600206949951420ccc2387a960 (diff) |
Remove extra output from "bin/run -l" on Windows
The previous output contained extra file names other than executables,
but now we limit the output to *.bat and *.exe files.
Change-Id: Ie785d1e4388780b290f6580d02af635279080412
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138556
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/run | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -26,7 +26,14 @@ print_usage() list_executables() { echo "Listing executables inside workdir/LinkTarget/Executable folder:" - find workdir/LinkTarget/Executable -executable -printf "%P\n" | grep -v batch | awk -F. {'print $1'} | sort -u + if uname | grep -i CYGWIN >/dev/null + then + echo + find workdir/LinkTarget/Executable -iname "*.bat" -printf "%P\n" + find workdir/LinkTarget/Executable -iname "*.exe" -printf "%P\n" + else + find workdir/LinkTarget/Executable -executable -printf "%P\n" + fi } print_executable_name() |