build-aux/msys-to-w32: Simplify implementation and docstring.

* build-aux/msys-to-w32: Simplify implementation and docstring;
Paths starting with '%emacs_dir%' are just considered relative.
This commit is contained in:
Dani Moncayo 2014-11-19 21:15:32 +01:00
parent f437176169
commit f5d77aafa9
2 changed files with 7 additions and 12 deletions

View file

@ -1,3 +1,8 @@
2014-11-19 Dani Moncayo <dmoncayo@gmail.com>
* build-aux/msys-to-w32: Simplify implementation and docstring;
Paths starting with '%emacs_dir%' are just considered relative.
2014-11-16 Christoph Scholtes <cschol2112@gmail.com> 2014-11-16 Christoph Scholtes <cschol2112@gmail.com>
* .gitignore: Ignore generated file lib/stdalign.h. * .gitignore: Ignore generated file lib/stdalign.h.

View file

@ -32,14 +32,7 @@ written to the standard output after performing these transformations:
1. Discard empty paths. 1. Discard empty paths.
2. Replace: '\' with '/', '//' with '/' and ':' with ';'. 2. Replace: '\' with '/', '//' with '/' and ':' with ';'.
3. Translate each path to Windows-native format. 3. Translate absolute paths to Windows-native format.
Relative paths or paths starting with '%emacs_dir%' will be passed
verbatim to the standard output.
Each non existing absolute path will be translated by looking for its
deepest existing directory, which will be translated and the remainder
appended.
Options: Options:
--help display this help and exit --help display this help and exit
@ -78,10 +71,7 @@ for p
do do
[ -z "$p" ] && continue [ -z "$p" ] && continue
if [ "${p:0:11}" = "%emacs_dir%" ] if [ "${p:0:1}" != "/" ]
then
w32p=$p
elif [ "${p:0:1}" != "/" ]
then then
w32p=$p w32p=$p
elif [ -d "$p" ] elif [ -d "$p" ]