1 @echo off |
1 @echo off |
2 REM |
2 REM |
3 REM Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
3 REM Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
4 REM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 REM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 REM |
5 REM |
6 REM This code is free software; you can redistribute it and/or modify it |
6 REM This code is free software; you can redistribute it and/or modify it |
7 REM under the terms of the GNU General Public License version 2 only, as |
7 REM under the terms of the GNU General Public License version 2 only, as |
8 REM published by the Free Software Foundation. |
8 REM published by the Free Software Foundation. |
65 if "%1" == "tree" goto test1 |
65 if "%1" == "tree" goto test1 |
66 goto usage |
66 goto usage |
67 |
67 |
68 :test1 |
68 :test1 |
69 if "%2" == "core" goto test2 |
69 if "%2" == "core" goto test2 |
70 if "%2" == "kernel" goto test2 |
|
71 if "%2" == "compiler1" goto test2 |
70 if "%2" == "compiler1" goto test2 |
72 if "%2" == "compiler2" goto test2 |
71 if "%2" == "compiler2" goto test2 |
73 if "%2" == "tiered" goto test2 |
72 if "%2" == "tiered" goto test2 |
74 if "%2" == "adlc" goto build_adlc |
73 if "%2" == "adlc" goto build_adlc |
75 |
74 |
107 :usage |
106 :usage |
108 echo Usage: build flavor version workspace bootstrap_dir [build_id] [windbg_home] |
107 echo Usage: build flavor version workspace bootstrap_dir [build_id] [windbg_home] |
109 echo. |
108 echo. |
110 echo where: |
109 echo where: |
111 echo flavor is "product", "debug" or "fastdebug", |
110 echo flavor is "product", "debug" or "fastdebug", |
112 echo version is "core", "kernel", "compiler1", "compiler2", or "tiered", |
111 echo version is "core", "compiler1", "compiler2", or "tiered", |
113 echo workspace is source directory without trailing slash, |
112 echo workspace is source directory without trailing slash, |
114 echo bootstrap_dir is a full path to a JDK in which bin/java |
113 echo bootstrap_dir is a full path to a JDK in which bin/java |
115 echo and bin/javac are present and working, and build_id is an |
114 echo and bin/javac are present and working, and build_id is an |
116 echo optional build identifier displayed by java -version |
115 echo optional build identifier displayed by java -version |
117 exit /b 1 |
116 exit /b 1 |