]> code.delx.au - gnu-emacs/blobdiff - build-aux/msys-to-w32
* build-aux/msys-to-w32: Prevent double slashes in w32 path list.
[gnu-emacs] / build-aux / msys-to-w32
index f8a0a81b9fa8a1b626d56ae7f384abac26e08f6d..d30047ffa9977ee07345c77ba20955f7ed2bfdf8 100755 (executable)
@@ -96,7 +96,7 @@ do
        # translate the existing part and append the rest
        w32p=$(cd "${p1}" && pwd -W)
        remainder=${p#$p1}
-       w32p+=/${remainder#/}
+       w32p=${w32p%/}/${remainder#/}
     fi
 
     w32pathlist="${w32pathlist};${w32p}"