:: :: This script, copy-dlls-to-1.5x_build-dir.bat, has a prerequisite that is run :: in order to create the subdirectories, e.g. debug/release and 32/64 :: :: This script, located withint the scribus-common-libs, will copy the python DLLs and :: other required files hereunder to the staging area for the Scribus build. :: :: User variables to set: :: SCRIBUS_BUILDS_DIR is where we marshall all the DLLs of the dependent projects :: SCRIBUS_LIB_TOOLSET = Don't know what this number represents, was v110, but using v120 :: set SCRIBUS_BUILDS_DIR=D:\Temp\scribus\Scribus-builds set SCRIBUS_LIB_TOOLSET=v120 if "%1"=="v100" set SCRIBUS_LIB_TOOLSET=v100 if "%1"=="v110" set SCRIBUS_LIB_TOOLSET=v110 if "%1"=="v110_xp" set SCRIBUS_LIB_TOOLSET=v110_xp if "%1"=="v120" set SCRIBUS_LIB_TOOLSET=v120 if "%1"=="v120_xp" set SCRIBUS_LIB_TOOLSET=v120_xp :: :: Define Release/Debug and 32/64 subdirectory names :: Note: you have to manually create these subdirectories!! :: set SCRIBUS_DEBUG_BUILD_WIN32=%SCRIBUS_BUILDS_DIR%\scribus-debug-win32-%SCRIBUS_LIB_TOOLSET% set SCRIBUS_RELEASE_BUILD_WIN32=%SCRIBUS_BUILDS_DIR%\scribus-release-win32-%SCRIBUS_LIB_TOOLSET% set SCRIBUS_DEBUG_BUILD_X64=%SCRIBUS_BUILDS_DIR%\scribus-debug-x64-%SCRIBUS_LIB_TOOLSET% set SCRIBUS_RELEASE_BUILD_X64=%SCRIBUS_BUILDS_DIR%\scribus-release-x64-%SCRIBUS_LIB_TOOLSET% :: :: Use the locally shipped Python that is are sibling directories to this batch file :: set PYTHON_DIR_WIN32=python-2.7.10-win32 set PYTHON_DIR_X64=python-2.7.10-amd64 IF NOT EXIST %SCRIBUS_DEBUG_BUILD_WIN32% GOTO NO_DEBUG_DIR_WIN32 IF NOT EXIST %SCRIBUS_DEBUG_BUILD_WIN32%\python mkdir %SCRIBUS_DEBUG_BUILD_WIN32%\python copy %PYTHON_DIR_WIN32%\python27.dll %SCRIBUS_DEBUG_BUILD_WIN32% xcopy %PYTHON_DIR_WIN32%\dlls %SCRIBUS_DEBUG_BUILD_WIN32%\python\dlls /s /q xcopy %PYTHON_DIR_WIN32%\lib %SCRIBUS_DEBUG_BUILD_WIN32%\python\lib /s /q xcopy %PYTHON_DIR_WIN32%\tcl %SCRIBUS_DEBUG_BUILD_WIN32%\python\tcl /s /q :NO_DEBUG_DIR_WIN32 IF NOT EXIST %SCRIBUS_RELEASE_BUILD_WIN32% GOTO NO_RELEASE_DIR_WIN32 IF NOT EXIST %SCRIBUS_RELEASE_BUILD_WIN32%\python mkdir %SCRIBUS_RELEASE_BUILD_WIN32%\python copy %PYTHON_DIR_WIN32%\python27.dll %SCRIBUS_RELEASE_BUILD_WIN32% xcopy %PYTHON_DIR_WIN32%\dlls %SCRIBUS_RELEASE_BUILD_WIN32%\python\dlls /s /q xcopy %PYTHON_DIR_WIN32%\lib %SCRIBUS_RELEASE_BUILD_WIN32%\python\lib /s /q xcopy %PYTHON_DIR_WIN32%\tcl %SCRIBUS_RELEASE_BUILD_WIN32%\python\tcl /s /q :NO_RELEASE_DIR_WIN32 IF NOT EXIST %SCRIBUS_DEBUG_BUILD_X64% GOTO NO_DEBUG_DIR_X64 IF NOT EXIST %SCRIBUS_DEBUG_BUILD_X64%\python mkdir %SCRIBUS_DEBUG_BUILD_X64%\python copy %PYTHON_DIR_X64%\python27.dll %SCRIBUS_DEBUG_BUILD_X64% xcopy %PYTHON_DIR_X64%\dlls %SCRIBUS_DEBUG_BUILD_X64%\python\dlls /s /q xcopy %PYTHON_DIR_X64%\lib %SCRIBUS_DEBUG_BUILD_X64%\python\lib /s /q xcopy %PYTHON_DIR_X64%\tcl %SCRIBUS_DEBUG_BUILD_X64%\python\tcl /s /q :NO_DEBUG_DIR_X64 IF NOT EXIST %SCRIBUS_RELEASE_BUILD_X64% GOTO NO_RELEASE_DIR_X64 IF NOT EXIST %SCRIBUS_RELEASE_BUILD_X64%\python mkdir %SCRIBUS_RELEASE_BUILD_X64%\python copy %PYTHON_DIR_X64%\python27.dll %SCRIBUS_RELEASE_BUILD_X64% xcopy %PYTHON_DIR_X64%\dlls %SCRIBUS_RELEASE_BUILD_X64%\python\dlls /s /q xcopy %PYTHON_DIR_X64%\lib %SCRIBUS_RELEASE_BUILD_X64%\python\lib /s /q xcopy %PYTHON_DIR_X64%\tcl %SCRIBUS_RELEASE_BUILD_X64%\python\tcl /s /q :NO_RELEASE_DIR_X64