configure.ac | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-)
New commits: commit abca9819d95a96c2b8f6d194282f942d6aefbb89 Author: Tor Lillqvist <t...@collabora.com> AuthorDate: Sun Oct 25 12:05:52 2020 +0200 Commit: Tor Lillqvist <t...@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 <t...@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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits