]> code.delx.au - gnu-emacs/commitdiff
msys-to-w32: Do not translate paths starting with %emacs_dir%.
authorDani Moncayo <dmoncayo@gmail.com>
Sat, 30 Nov 2013 15:42:13 +0000 (16:42 +0100)
committerJuanma Barranquero <lekktu@gmail.com>
Sat, 30 Nov 2013 15:42:13 +0000 (16:42 +0100)
* build-aux/msys-to-w32 (w32pathlist): Do not translate paths
  starting with %emacs_dir%.

ChangeLog
build-aux/msys-to-w32

index 28d67634c7990dbccb1d3a3f08b4c392263a851b..33f9f6bca15781875b4d3b7bf5fc379086c4b6b2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-11-30  Dani Moncayo  <dmoncayo@gmail.com>
+
+       * build-aux/msys-to-w32 (w32pathlist): Do not translate paths
+       starting with %emacs_dir%.
+
 2013-11-30  Glenn Morris  <rgm@gnu.org>
 
        Stop keeping (most) generated cedet grammar files in the repository.
index e45ec3cb7e2f243663c7572b06d5211ad4247208..a617f18af4bf182c6f2bafdd77e3ace2d2c97b0e 100755 (executable)
@@ -36,7 +36,8 @@ transformations:
 3. Replace two consecutive slashes with single ones.
 4. Translate to Windows-native format those paths that are not in such
    format already. The translated paths will not end with a slash,
-   except for root directories (e.g. 'c:/' or 'c:/foo').
+   except for root directories (e.g. 'c:/' or 'c:/foo').  Paths
+   starting with '%emacs_dir%' will not be translated.
 5. Escape with backslashes every occurrence of SEPARATOR2 within the paths.
 6. Concatenate the translated paths with SEPARATOR2.
 
@@ -100,7 +101,11 @@ do
     p="${p//\\//}"
     p="${p//\/\///}"
 
-    if test -d "$p"
+    if test "${p:0:11}" = "%emacs_dir%"
+    then
+       # Paths starting with "%emacs_dir%" will not be translated
+       w32p=$p
+    elif test -d "$p"
     then
        # The path exists, so just translate it
        w32p=`cd "$p" && pwd -W`
@@ -162,4 +167,4 @@ do
 done
 
 # Write the translated pathlist to the standard output
-printf "${w32pathlist}"
+printf "%s" "${w32pathlist}"