summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorDani Moncayo <dmoncayo@gmail.com>2013-11-30 16:42:13 +0100
committerJuanma Barranquero <lekktu@gmail.com>2013-11-30 16:42:13 +0100
commita1209bc38de1f31cfae91239e85d449b4e11e110 (patch)
tree0cdd28caccf749497e68aa99f5ad7d15cccf40af /build-aux
parenteb6f376dd4553e048ae8d2192ae13c021201c41d (diff)
downloademacs-a1209bc38de1f31cfae91239e85d449b4e11e110.tar.gz
msys-to-w32: Do not translate paths starting with %emacs_dir%.
* build-aux/msys-to-w32 (w32pathlist): Do not translate paths starting with %emacs_dir%.
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/msys-to-w3211
1 files changed, 8 insertions, 3 deletions
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:
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}"