diff options
| author | Eli Zaretskii | 2012-05-18 11:21:19 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2012-05-18 11:21:19 +0300 |
| commit | ce1287227544c3a131e002352cff2a01276f2e24 (patch) | |
| tree | 2f8841fd9bd769f53b6492874af3ca591a56abcd | |
| parent | 6d4a05e3e06c9891ba953c28eb5a721cce412a9a (diff) | |
| download | emacs-ce1287227544c3a131e002352cff2a01276f2e24.tar.gz emacs-ce1287227544c3a131e002352cff2a01276f2e24.zip | |
Fix redirection in nt/configure.bat.
nt/configure.bat: Ensure a space between %var% expansion and
redirection symbol '>', which breaks when %var% ends in a digit,
such as 1.
| -rw-r--r-- | nt/ChangeLog | 6 | ||||
| -rwxr-xr-x | nt/configure.bat | 22 |
2 files changed, 17 insertions, 11 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index 23e93907552..15516c891cd 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-05-18 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * configure.bat: Ensure a space between %var% expansion and | ||
| 4 | redirection symbol '>', which breaks when %var% ends in a digit, | ||
| 5 | such as 1. | ||
| 6 | |||
| 1 | 2012-04-11 Dani Moncayo <dmoncayo@gmail.com> (tiny change) | 7 | 2012-04-11 Dani Moncayo <dmoncayo@gmail.com> (tiny change) |
| 2 | 8 | ||
| 3 | * makefile.w32-in: Fix typo (Bug#10261). | 9 | * makefile.w32-in: Fix typo (Bug#10261). |
diff --git a/nt/configure.bat b/nt/configure.bat index e0362c5c278..caee800bacf 100755 --- a/nt/configure.bat +++ b/nt/configure.bat | |||
| @@ -725,25 +725,25 @@ rem NB. Be very careful to not have a space before redirection symbols | |||
| 725 | rem except when there is a preceding digit, when a space is required. | 725 | rem except when there is a preceding digit, when a space is required. |
| 726 | rem | 726 | rem |
| 727 | echo # Start of settings from configure.bat >config.settings | 727 | echo # Start of settings from configure.bat >config.settings |
| 728 | echo COMPILER=%COMPILER%>>config.settings | 728 | echo COMPILER=%COMPILER% >>config.settings |
| 729 | if not "(%mf%)" == "()" echo MCPU_FLAG=%mf%>>config.settings | 729 | if not "(%mf%)" == "()" echo MCPU_FLAG=%mf% >>config.settings |
| 730 | if not "(%dbginfo%)" == "()" echo DEBUG_INFO=%dbginfo%>>config.settings | 730 | if not "(%dbginfo%)" == "()" echo DEBUG_INFO=%dbginfo% >>config.settings |
| 731 | if (%nodebug%) == (Y) echo NODEBUG=1 >>config.settings | 731 | if (%nodebug%) == (Y) echo NODEBUG=1 >>config.settings |
| 732 | if (%noopt%) == (Y) echo NOOPT=1 >>config.settings | 732 | if (%noopt%) == (Y) echo NOOPT=1 >>config.settings |
| 733 | if (%enablechecking%) == (Y) echo ENABLECHECKS=1 >>config.settings | 733 | if (%enablechecking%) == (Y) echo ENABLECHECKS=1 >>config.settings |
| 734 | if (%profile%) == (Y) echo PROFILE=1 >>config.settings | 734 | if (%profile%) == (Y) echo PROFILE=1 >>config.settings |
| 735 | if (%nocygwin%) == (Y) echo NOCYGWIN=1 >>config.settings | 735 | if (%nocygwin%) == (Y) echo NOCYGWIN=1 >>config.settings |
| 736 | if not "(%prefix%)" == "()" echo INSTALL_DIR=%prefix%>>config.settings | 736 | if not "(%prefix%)" == "()" echo INSTALL_DIR=%prefix% >>config.settings |
| 737 | if not "(%distfiles%)" == "()" echo DIST_FILES=%distfiles%>>config.settings | 737 | if not "(%distfiles%)" == "()" echo DIST_FILES=%distfiles% >>config.settings |
| 738 | rem We go thru docflags because usercflags could be "-DFOO=bar" -something | 738 | rem We go thru docflags because usercflags could be "-DFOO=bar" -something |
| 739 | rem and the if command cannot cope with this | 739 | rem and the if command cannot cope with this |
| 740 | for %%v in (%usercflags%) do if not (%%v)==() set docflags=Y | 740 | for %%v in (%usercflags%) do if not (%%v)==() set docflags=Y |
| 741 | if (%docflags%)==(Y) echo USER_CFLAGS=%usercflags%>>config.settings | 741 | if (%docflags%)==(Y) echo USER_CFLAGS=%usercflags% >>config.settings |
| 742 | if (%docflags%)==(Y) echo ESC_USER_CFLAGS=%escusercflags%>>config.settings | 742 | if (%docflags%)==(Y) echo ESC_USER_CFLAGS=%escusercflags% >>config.settings |
| 743 | for %%v in (%userldflags%) do if not (%%v)==() set doldflags=Y | 743 | for %%v in (%userldflags%) do if not (%%v)==() set doldflags=Y |
| 744 | if (%doldflags%)==(Y) echo USER_LDFLAGS=%userldflags%>>config.settings | 744 | if (%doldflags%)==(Y) echo USER_LDFLAGS=%userldflags% >>config.settings |
| 745 | for %%v in (%extrauserlibs%) do if not (%%v)==() set doextralibs=Y | 745 | for %%v in (%extrauserlibs%) do if not (%%v)==() set doextralibs=Y |
| 746 | if (%doextralibs%)==(Y) echo USER_LIBS=%extrauserlibs%>>config.settings | 746 | if (%doextralibs%)==(Y) echo USER_LIBS=%extrauserlibs% >>config.settings |
| 747 | echo # End of settings from configure.bat>>config.settings | 747 | echo # End of settings from configure.bat>>config.settings |
| 748 | echo. >>config.settings | 748 | echo. >>config.settings |
| 749 | 749 | ||
| @@ -752,8 +752,8 @@ echo. >>config.tmp | |||
| 752 | echo /* Start of settings from configure.bat. */ >>config.tmp | 752 | echo /* Start of settings from configure.bat. */ >>config.tmp |
| 753 | rem We write USER_CFLAGS and USER_LDFLAGS starting with a space to simplify | 753 | rem We write USER_CFLAGS and USER_LDFLAGS starting with a space to simplify |
| 754 | rem processing of compiler options in w32.c:get_emacs_configuration_options | 754 | rem processing of compiler options in w32.c:get_emacs_configuration_options |
| 755 | if (%docflags%) == (Y) echo #define USER_CFLAGS " %escusercflags%">>config.tmp | 755 | if (%docflags%) == (Y) echo #define USER_CFLAGS " %escusercflags%" >>config.tmp |
| 756 | if (%doldflags%) == (Y) echo #define USER_LDFLAGS " %escuserldflags%">>config.tmp | 756 | if (%doldflags%) == (Y) echo #define USER_LDFLAGS " %escuserldflags%" >>config.tmp |
| 757 | if (%profile%) == (Y) echo #define PROFILING 1 >>config.tmp | 757 | if (%profile%) == (Y) echo #define PROFILING 1 >>config.tmp |
| 758 | if not "(%HAVE_PNG%)" == "()" echo #define HAVE_PNG 1 >>config.tmp | 758 | if not "(%HAVE_PNG%)" == "()" echo #define HAVE_PNG 1 >>config.tmp |
| 759 | if not "(%HAVE_GNUTLS%)" == "()" echo #define HAVE_GNUTLS 1 >>config.tmp | 759 | if not "(%HAVE_GNUTLS%)" == "()" echo #define HAVE_GNUTLS 1 >>config.tmp |