aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2004-11-27 18:22:45 +0000
committerEli Zaretskii2004-11-27 18:22:45 +0000
commite8237370691e426352390c70fc3f66501ac95ccf (patch)
tree1a972438fcd05168cb7a2bac278adf41e8003020
parent96bff12f4c7982fb14be6aa8dc8f659b5f9631a8 (diff)
downloademacs-e8237370691e426352390c70fc3f66501ac95ccf.tar.gz
emacs-e8237370691e426352390c70fc3f66501ac95ccf.zip
Protect & with "" since & is special for cmd.exe;
filter through Sed to remove the quotes. ----------------------------------------------------------------------
-rw-r--r--config.bat5
1 files changed, 3 insertions, 2 deletions
diff --git a/config.bat b/config.bat
index 5417513ea7c..9617dfb4af7 100644
--- a/config.bat
+++ b/config.bat
@@ -161,8 +161,9 @@ sed -f ../msdos/sed2v2.inp <config.tmp >config.h2
161Rem See if DECL_ALIGN can be supported with this GCC 161Rem See if DECL_ALIGN can be supported with this GCC
162rm -f junk.c junk.o junk junk.exe 162rm -f junk.c junk.o junk junk.exe
163echo struct { int i; char *p; } __attribute__((__aligned__(8))) foo; >junk.c 163echo struct { int i; char *p; } __attribute__((__aligned__(8))) foo; >junk.c
164rem Two percent signs because it is a special character for COMMAND.COM 164rem Two percent signs because it is a special character for COMMAND.COM/CMD
165echo int main(void) { return (unsigned long)&foo %% 8; } >>junk.c 165rem Filter thru Sed because "&" is special for CMD.EXE
166echo int main(void) { return (unsigned long)"&"foo %% 8; } | sed "s/.&./\&/" >>junk.c
166gcc -o junk junk.c 167gcc -o junk junk.c
167if not exist junk.exe coff2exe junk 168if not exist junk.exe coff2exe junk
168junk 169junk