bin/run | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
New commits:
commit 482264a7c2058d50906c83219566d79c1cf3cbb9
Author: Hossein <[email protected]>
AuthorDate: Fri Aug 19 16:55:39 2022 +0200
Commit: Hossein <[email protected]>
CommitDate: Sat Aug 20 12:12:19 2022 +0200
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 <[email protected]>
diff --git a/bin/run b/bin/run
index 660dfbe273a6..695905e09e6b 100755
--- a/bin/run
+++ b/bin/run
@@ -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()