aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2012-05-18 11:21:19 +0300
committerEli Zaretskii2012-05-18 11:21:19 +0300
commitce1287227544c3a131e002352cff2a01276f2e24 (patch)
tree2f8841fd9bd769f53b6492874af3ca591a56abcd
parent6d4a05e3e06c9891ba953c28eb5a721cce412a9a (diff)
downloademacs-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/ChangeLog6
-rwxr-xr-xnt/configure.bat22
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 @@
12012-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
12012-04-11 Dani Moncayo <dmoncayo@gmail.com> (tiny change) 72012-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
725rem except when there is a preceding digit, when a space is required. 725rem except when there is a preceding digit, when a space is required.
726rem 726rem
727echo # Start of settings from configure.bat >config.settings 727echo # Start of settings from configure.bat >config.settings
728echo COMPILER=%COMPILER%>>config.settings 728echo COMPILER=%COMPILER% >>config.settings
729if not "(%mf%)" == "()" echo MCPU_FLAG=%mf%>>config.settings 729if not "(%mf%)" == "()" echo MCPU_FLAG=%mf% >>config.settings
730if not "(%dbginfo%)" == "()" echo DEBUG_INFO=%dbginfo%>>config.settings 730if not "(%dbginfo%)" == "()" echo DEBUG_INFO=%dbginfo% >>config.settings
731if (%nodebug%) == (Y) echo NODEBUG=1 >>config.settings 731if (%nodebug%) == (Y) echo NODEBUG=1 >>config.settings
732if (%noopt%) == (Y) echo NOOPT=1 >>config.settings 732if (%noopt%) == (Y) echo NOOPT=1 >>config.settings
733if (%enablechecking%) == (Y) echo ENABLECHECKS=1 >>config.settings 733if (%enablechecking%) == (Y) echo ENABLECHECKS=1 >>config.settings
734if (%profile%) == (Y) echo PROFILE=1 >>config.settings 734if (%profile%) == (Y) echo PROFILE=1 >>config.settings
735if (%nocygwin%) == (Y) echo NOCYGWIN=1 >>config.settings 735if (%nocygwin%) == (Y) echo NOCYGWIN=1 >>config.settings
736if not "(%prefix%)" == "()" echo INSTALL_DIR=%prefix%>>config.settings 736if not "(%prefix%)" == "()" echo INSTALL_DIR=%prefix% >>config.settings
737if not "(%distfiles%)" == "()" echo DIST_FILES=%distfiles%>>config.settings 737if not "(%distfiles%)" == "()" echo DIST_FILES=%distfiles% >>config.settings
738rem We go thru docflags because usercflags could be "-DFOO=bar" -something 738rem We go thru docflags because usercflags could be "-DFOO=bar" -something
739rem and the if command cannot cope with this 739rem and the if command cannot cope with this
740for %%v in (%usercflags%) do if not (%%v)==() set docflags=Y 740for %%v in (%usercflags%) do if not (%%v)==() set docflags=Y
741if (%docflags%)==(Y) echo USER_CFLAGS=%usercflags%>>config.settings 741if (%docflags%)==(Y) echo USER_CFLAGS=%usercflags% >>config.settings
742if (%docflags%)==(Y) echo ESC_USER_CFLAGS=%escusercflags%>>config.settings 742if (%docflags%)==(Y) echo ESC_USER_CFLAGS=%escusercflags% >>config.settings
743for %%v in (%userldflags%) do if not (%%v)==() set doldflags=Y 743for %%v in (%userldflags%) do if not (%%v)==() set doldflags=Y
744if (%doldflags%)==(Y) echo USER_LDFLAGS=%userldflags%>>config.settings 744if (%doldflags%)==(Y) echo USER_LDFLAGS=%userldflags% >>config.settings
745for %%v in (%extrauserlibs%) do if not (%%v)==() set doextralibs=Y 745for %%v in (%extrauserlibs%) do if not (%%v)==() set doextralibs=Y
746if (%doextralibs%)==(Y) echo USER_LIBS=%extrauserlibs%>>config.settings 746if (%doextralibs%)==(Y) echo USER_LIBS=%extrauserlibs% >>config.settings
747echo # End of settings from configure.bat>>config.settings 747echo # End of settings from configure.bat>>config.settings
748echo. >>config.settings 748echo. >>config.settings
749 749
@@ -752,8 +752,8 @@ echo. >>config.tmp
752echo /* Start of settings from configure.bat. */ >>config.tmp 752echo /* Start of settings from configure.bat. */ >>config.tmp
753rem We write USER_CFLAGS and USER_LDFLAGS starting with a space to simplify 753rem We write USER_CFLAGS and USER_LDFLAGS starting with a space to simplify
754rem processing of compiler options in w32.c:get_emacs_configuration_options 754rem processing of compiler options in w32.c:get_emacs_configuration_options
755if (%docflags%) == (Y) echo #define USER_CFLAGS " %escusercflags%">>config.tmp 755if (%docflags%) == (Y) echo #define USER_CFLAGS " %escusercflags%" >>config.tmp
756if (%doldflags%) == (Y) echo #define USER_LDFLAGS " %escuserldflags%">>config.tmp 756if (%doldflags%) == (Y) echo #define USER_LDFLAGS " %escuserldflags%" >>config.tmp
757if (%profile%) == (Y) echo #define PROFILING 1 >>config.tmp 757if (%profile%) == (Y) echo #define PROFILING 1 >>config.tmp
758if not "(%HAVE_PNG%)" == "()" echo #define HAVE_PNG 1 >>config.tmp 758if not "(%HAVE_PNG%)" == "()" echo #define HAVE_PNG 1 >>config.tmp
759if not "(%HAVE_GNUTLS%)" == "()" echo #define HAVE_GNUTLS 1 >>config.tmp 759if not "(%HAVE_GNUTLS%)" == "()" echo #define HAVE_GNUTLS 1 >>config.tmp