9 SET XCOPY_COMMAND=%windir%\system32\xcopy
11 SET BUILD_DIR=%BUILD_DIR:"=%
12 SET BUILD_DIR=%BUILD_DIR:/=\%
13 SET INSTALL_DIR=%INSTALL_DIR:"=%
14 SET INSTALL_DIR=%INSTALL_DIR:/=\%
16 IF "" == "%PLATFORM%" (
17 ECHO Error: No platform parameter set.
22 ECHO Error: No configuration parameter set.
26 IF "" == "%BUILD_DIR%" (
27 ECHO Error: No MONO_BUILD_DIR_PREFIX parameter set.
31 IF "" == "%INSTALL_DIR%" (
32 ECHO Error: No MONO_INSTALLATION_DIR_PREFIX parameter set.
36 IF "\" == "%BUILD_DIR:~-1%" (
37 SET BUILD_DIR=%BUILD_DIR:~0,-1%
40 IF "\" == "%INSTALL_DIR:~-1%" (
41 SET INSTALL_DIR=%INSTALL_DIR:~0,-1%
44 IF NOT EXIST %BUILD_DIR% (
45 ECHO Error: '%BUILD_DIR%', directory doesn't eixst.
49 IF NOT EXIST %INSTALL_DIR% (
50 ECHO Install directory '%INSTALL_DIR%', directory doesn't eixst, creating....
52 ECHO Install directory '%INSTALL_DIR%' created.
55 SET PACKAGE_DIR=%BUILD_DIR%\package\%PLATFORM%\%CONFIG%
57 IF NOT EXIST %PACKAGE_DIR% (
58 ECHO Error: '%PACKAGE_DIR%' directory unavailable.
64 IF "-v" == "%ARGUMENTS%" (
65 SET OPTIONS=/f /s /e /y
68 IF "-q" == "%ARGUMENTS%" (
69 SET "OPTIONS=/s /e /q /y"
72 ECHO Installing mono build %PLATFORM% %CONFIG% from %PACKAGE_DIR% into %INSTALL_DIR% ...
74 SET RUN=%XCOPY_COMMAND% "%PACKAGE_DIR%\*.*" "%INSTALL_DIR%" %OPTIONS%
75 call :runCommand "%RUN%" %ARGUMENTS%
77 ECHO Installing of mono build %PLATFORM% %CONFIG% from %PACKAGE_DIR% into %INSTALL_DIR% DONE.
82 ECHO "install.bat [win32|x64] [Debug|Release] [MONO_BUILD_DIR_PREFIX] [MONO_INSTALLATION_DIR_PREFIX] [ARGUMENTS]"