[Libreoffice-commits] core.git: configure.ac

Tor Lillqvist (via logerrit) logerrit at kemper.freedesktop.org
Sun Oct 4 08:49:52 UTC 2020


 configure.ac |   23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

New commits:
commit 7f55f453886e6aba9401da5f984db3e4fcf020e1
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Sun Oct 4 11:40:05 2020 +0300
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Sun Oct 4 11:40:11 2020 +0300

    Document what PathFormat does
    
    Change-Id: If8b0ca9b55fb601bc3da2172f5acc00a7d83ea85

diff --git a/configure.ac b/configure.ac
index da140708196b..08469ca830a5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -61,6 +61,29 @@ FilterLibs()
 
 PathFormat()
 {
+    # Args: $1: A pathname. On Cygwin, in either the Unix or the Windows format.
+    #
+    # Return value: $formatted_path. The pathname in Windows format, but using forward slashes instead
+    # of backslashes, using 8.3 pathnames if necessary.
+    #
+    # Errors out if 8.3 names are needed but aren't present for some of the path component.
+
+    # Examples:
+    #
+    # /home/tml/lo/master-optimised => C:/cygwin64/home/tml/lo/master-optimised
+    #
+    # C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe => C:/PROGRA~2/MICROS~3/INSTAL~1/vswhere.exe
+    #
+    # C:\Program Files (x86)\Microsoft Visual Studio\2019\Community => C:/PROGRA~2/MICROS~3/2019/COMMUN~1
+    #
+    # C:/PROGRA~2/WI3CF2~1/10/Include/10.0.18362.0/ucrt => C:/PROGRA~2/WI3CF2~1/10/Include/10.0.18362.0/ucrt
+    #
+    # /cygdrive/c/PROGRA~2/WI3CF2~1/10 => C:/PROGRA~2/WI3CF2~1/10
+    #
+    # C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\ => C:/PROGRA~2/WI3CF2~1/NETFXSDK/4.8/
+    #
+    # /usr/bin/find.exe => C:/cygwin64/bin/find.exe
+
     formatted_path="$1"
     if test "$build_os" = "cygwin"; then
         pf_conv_to_dos=


More information about the Libreoffice-commits mailing list