[Libreoffice-commits] core.git: configure.ac
Tor Lillqvist (via logerrit)
logerrit at kemper.freedesktop.org
Sun Oct 25 13:24:27 UTC 2020
configure.ac | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
New commits:
commit abca9819d95a96c2b8f6d194282f942d6aefbb89
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Sun Oct 25 12:05:52 2020 +0200
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Sun Oct 25 14:23:49 2020 +0100
Improve PathFormat on WSL: Don't lose a final slash
Change-Id: If0f09dab3a7eb0849aeabcb52bfee39c3a71b719
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104769
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml at collabora.com>
diff --git a/configure.ac b/configure.ac
index 563fd831f18e..85ff8c3c0f55 100644
--- a/configure.ac
+++ b/configure.ac
@@ -142,7 +142,21 @@ PathFormat()
fi
if test "$build_os" = "wsl"; then
if test "$fp_count_colon" != "0"; then
- formatted_path=$(wslpath -m $(wslpath "$formatted_path"))
+ formatted_path=$(wslpath "$formatted_path")
+ local final_slash=
+ case "$formatted_path" in
+ */)
+ final_slash=/
+ ;;
+ esac
+ formatted_path=$(wslpath -m $formatted_path)
+ case "$formatted_path" in
+ */)
+ ;;
+ *)
+ formatted_path="$formatted_path"$final_slash
+ ;;
+ esac
else
formatted_path=$(wslpath -m "$formatted_path")
fi
More information about the Libreoffice-commits
mailing list