summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorHossein <hossein@libreoffice.org>2022-08-19 16:55:39 +0200
committerHossein <hossein@libreoffice.org>2022-08-20 12:12:19 +0200
commit482264a7c2058d50906c83219566d79c1cf3cbb9 (patch)
treef881b8a3b0e3e32277dffd768a21f59f9201c317 /bin
parent3c9777436db6a2600206949951420ccc2387a960 (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-xbin/run9
1 files changed, 8 insertions, 1 deletions
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()