aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rwxr-xr-xbuild-aux/msys-to-w3211
2 files changed, 13 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 28d67634c79..33f9f6bca15 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
12013-11-30 Dani Moncayo <dmoncayo@gmail.com>
2
3 * build-aux/msys-to-w32 (w32pathlist): Do not translate paths
4 starting with %emacs_dir%.
5
12013-11-30 Glenn Morris <rgm@gnu.org> 62013-11-30 Glenn Morris <rgm@gnu.org>
2 7
3 Stop keeping (most) generated cedet grammar files in the repository. 8 Stop keeping (most) generated cedet grammar files in the repository.
diff --git a/build-aux/msys-to-w32 b/build-aux/msys-to-w32
index e45ec3cb7e2..a617f18af4b 100755
--- a/build-aux/msys-to-w32
+++ b/build-aux/msys-to-w32
@@ -36,7 +36,8 @@ transformations:
363. Replace two consecutive slashes with single ones. 363. Replace two consecutive slashes with single ones.
374. Translate to Windows-native format those paths that are not in such 374. Translate to Windows-native format those paths that are not in such
38 format already. The translated paths will not end with a slash, 38 format already. The translated paths will not end with a slash,
39 except for root directories (e.g. 'c:/' or 'c:/foo'). 39 except for root directories (e.g. 'c:/' or 'c:/foo'). Paths
40 starting with '%emacs_dir%' will not be translated.
405. Escape with backslashes every occurrence of SEPARATOR2 within the paths. 415. Escape with backslashes every occurrence of SEPARATOR2 within the paths.
416. Concatenate the translated paths with SEPARATOR2. 426. Concatenate the translated paths with SEPARATOR2.
42 43
@@ -100,7 +101,11 @@ do
100 p="${p//\\//}" 101 p="${p//\\//}"
101 p="${p//\/\///}" 102 p="${p//\/\///}"
102 103
103 if test -d "$p" 104 if test "${p:0:11}" = "%emacs_dir%"
105 then
106 # Paths starting with "%emacs_dir%" will not be translated
107 w32p=$p
108 elif test -d "$p"
104 then 109 then
105 # The path exists, so just translate it 110 # The path exists, so just translate it
106 w32p=`cd "$p" && pwd -W` 111 w32p=`cd "$p" && pwd -W`
@@ -162,4 +167,4 @@ do
162done 167done
163 168
164# Write the translated pathlist to the standard output 169# Write the translated pathlist to the standard output
165printf "${w32pathlist}" 170printf "%s" "${w32pathlist}"