@echo off if "%MOZ_TOOLS%" == "" goto no_moz_tools echo. echo MOZ_TOOLS is set to %MOZ_TOOLS% echo It should NOT be set to anything in your cygwin echo directory, such as c:\cygwin or c:\cygwin\bin echo where C:\cygwin represents where you installed cygwin. echo In that case files will be overwritten. echo. echo It should be set to some empty directory. echo. e.g. echo. mkdir c:\moz_tools echo. set MOZ_TOOLS=c:\moz_tools echo. echo Please verify this. echo. pause echo copying exes and dlls to %MOZ_TOOLS%\bin if not exist %MOZ_TOOLS%\bin\NUL mkdir %MOZ_TOOLS%\bin >NUL copy bin\x86\* %MOZ_TOOLS%\bin >NUL echo copying include files to %MOZ_TOOLS%\include if not exist %MOZ_TOOLS%\include\NUL mkdir %MOZ_TOOLS%\include >NUL copy include\* %MOZ_TOOLS%\include >NUL echo copying include files to %MOZ_TOOLS%\include\libIDL if not exist %MOZ_TOOLS%\include\libIDL\NUL mkdir %MOZ_TOOLS%\include\libIDL >NUL copy include\libIDL\* %MOZ_TOOLS%\include\libIDL >NUL echo copying lib files to %MOZ_TOOLS%\lib if not exist %MOZ_TOOLS%\lib\NUL mkdir %MOZ_TOOLS%\lib >NUL copy lib\* %MOZ_TOOLS%\lib >NUL echo. echo done copying echo. echo make sure that MOZ_TOOLS\bin is on your path echo. goto done :no_moz_tools echo. echo. ERROR! echo. echo You need to set MOZ_TOOLS in your environment. echo MOZ_TOOLS should be the name of a directory that echo you create to hold these tools. echo. echo. e.g. echo. mkdir c:\moz_tools echo. set MOZ_TOOLS=c:\moz_tools echo. echo MOZ_TOOLS should be set permanently so that it is echo available to the build system whenever mozilla is building. echo. echo. echo Please set MOZ_TOOLS and run install.bat again echo. :done pause