Upgrade to ExtJS 4.0.1 - Released 05/18/2011
[extjs.git] / build / build.bat
1 @echo off
2
3 set ERROR=0
4 set DEPLOY_DIR=%1
5 set BUILD_OPTION=%2
6
7 :: Error Check
8 IF "%DEPLOY_DIR%" == "" (
9     set ERROR=1
10 ) ELSE (
11     IF "%BUILD_OPTION%" == "" (
12         :: Empty second arg, build sdk/all
13         ..\..\jsbuilder\JSBuilder.bat --projectFile %CD%\sdk.jsb3 --deployDir %DEPLOY_DIR% --verbose"
14         ..\..\jsbuilder\JSBuilder.bat --projectFile %DEPLOY_DIR%\ext-all.jsb3 --deployDir %DEPLOY_DIR% --verbose"
15     ) ELSE (
16         IF "%BUILD_OPTION%" == "sdk" (
17             echo %CD%
18             ..\..\jsbuilder\JSBuilder.bat --projectFile %CD%\sdk.jsb3 --deployDir %DEPLOY_DIR% --verbose"
19         ) ELSE IF "%BUILD_OPTION%" == "ext-all" (
20             ..\..\jsbuilder\JSBuilder.bat --projectFile %DEPLOY_DIR%\ext-all.jsb3 --deployDir %DEPLOY_DIR% --verbose"
21         ) ELSE IF "%BUILD_OPTION%" == "sass" (
22             compass compile resources/sass -f
23         ) ELSE (
24             set ERROR=1
25         )
26     )
27
28 )
29
30 IF %ERROR% == 1 (
31     echo Usage: build.bat DEPLOY_DIR [TYPE]
32     echo.
33     echo The type option can be one of the following:
34     echo sdk     - Build the whole Ext SDK
35     echo ext-all - Build just the files required for Ext to run
36     echo sass    - Build css files. Assumes compass is installed
37 )