diff options
| author | Dani Moncayo | 2013-11-30 16:42:13 +0100 |
|---|---|---|
| committer | Juanma Barranquero | 2013-11-30 16:42:13 +0100 |
| commit | a1209bc38de1f31cfae91239e85d449b4e11e110 (patch) | |
| tree | 0cdd28caccf749497e68aa99f5ad7d15cccf40af | |
| parent | eb6f376dd4553e048ae8d2192ae13c021201c41d (diff) | |
| download | emacs-a1209bc38de1f31cfae91239e85d449b4e11e110.tar.gz emacs-a1209bc38de1f31cfae91239e85d449b4e11e110.zip | |
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%.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rwxr-xr-x | build-aux/msys-to-w32 | 11 |
2 files changed, 13 insertions, 3 deletions
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-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 | |||
| 1 | 2013-11-30 Glenn Morris <rgm@gnu.org> | 6 | 2013-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: | |||
| 36 | 3. Replace two consecutive slashes with single ones. | 36 | 3. Replace two consecutive slashes with single ones. |
| 37 | 4. Translate to Windows-native format those paths that are not in such | 37 | 4. 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. | ||
| 40 | 5. Escape with backslashes every occurrence of SEPARATOR2 within the paths. | 41 | 5. Escape with backslashes every occurrence of SEPARATOR2 within the paths. |
| 41 | 6. Concatenate the translated paths with SEPARATOR2. | 42 | 6. 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 | |||
| 162 | done | 167 | done |
| 163 | 168 | ||
| 164 | # Write the translated pathlist to the standard output | 169 | # Write the translated pathlist to the standard output |
| 165 | printf "${w32pathlist}" | 170 | printf "%s" "${w32pathlist}" |