From: Warren Young Date: September 15 2005 8:09pm Subject: Re: RELEASE: v2.0.5 List-Archive: http://lists.mysql.com/plusplus/4924 Message-Id: <4329D511.6070901@etr-usa.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030505090203040704000505" --------------030505090203040704000505 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Thomas Werth wrote: > > "BUILDSYSd" ist syntaktisch an dieser Stelle nicht verarbeitbar. Grrr.... cmd.exe is brain-dead. Use the attached makemake.bat instead. If anyone out there has batch-fu, I would really like to know why you cannot assign %1 to another variable and then make tests based on the new variable. The cmd.exe batch interpreter behaves differently depending on whether you use %1 or %BUILDSYS, even when both have the same value! Lame, lame, lame! > Do i need to call makemake running under cygwin box with previous set up > msvc vars I see. The answer is, you only have Cygwin installed to get GNU make. You still run everything from the regular Windows command prompt, because Cygwin's command shell doesn't understand batch files. I will make this clearer in README.vc. --------------030505090203040704000505 Content-Type: text/plain; name="makemake.bat" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="makemake.bat" @echo off if "%1" == "vc" goto build_makefiles if "%1" == "mingw" goto build_makefiles echo Unrecognized build system %1. echo. goto usage :build_makefiles rem Create Makefiles in subdirectories for %%d in ( lib examples ) do call buildmf.bat %1 %%d rem Create top-level Makefile echo all: > Makefile echo @cmd /c mkbindirs.bat >> Makefile echo cd lib ^&^& $(MAKE) BIN_DIR=debug all example_setup >> Makefile echo cd lib ^&^& $(MAKE) BIN_DIR=release >> Makefile echo cd examples ^&^& $(MAKE) >> Makefile echo. >> Makefile echo install: all >> Makefile echo @cmd /c install.bat %1 >> Makefile echo. >> Makefile echo clean debug release: >> Makefile echo cd lib ^&^& $(MAKE) $@ >> Makefile echo cd examples ^&^& $(MAKE) $@ >> Makefile echo Created Makefiles successfully. goto end rem Display usage message :usage echo usage: makemake {vc, mingw} echo. echo You must give one of the compiler parameters: echo. echo vc: Visual C++ command-line compiler (cl) echo mingw: MinGW GCC (g++) goto end :end --------------030505090203040704000505--