Last change
on this file since 29232 was 29232, checked in by ak19, 10 years ago |
Correction to syntax error, and checking locations set as env vars actually exist, error checking
|
File size:
1.3 KB
|
Rev | Line | |
---|
[29230] | 1 | @echo off
|
---|
[29232] | 2 | setlocal
|
---|
[29230] | 3 |
|
---|
[29232] | 4 | :: currentdir (C:\Research\Nightly)
|
---|
| 5 | set currentdir=%CD%
|
---|
| 6 |
|
---|
[29230] | 7 | :: Need to edit rke-setup.bat and fill it in with local env vars values
|
---|
[29232] | 8 | if not exist %currentdir%\tools\expeditee-release-kits\rke-setup.bat (
|
---|
[29230] | 9 | echo.
|
---|
| 10 | echo *******************
|
---|
| 11 | echo.
|
---|
[29232] | 12 | echo First edit %currentdir%\tools\expeditee-release-kits\rke-setup.bat.in
|
---|
| 13 | echo to generate %currentdir%\tools\expeditee-release-kits\rke-setup.bat
|
---|
[29230] | 14 | echo.
|
---|
| 15 | echo *******************
|
---|
| 16 | echo.
|
---|
| 17 | goto end
|
---|
| 18 | )
|
---|
| 19 |
|
---|
| 20 | :: rke-setup.bat uses local paths, so cd into expeditee-release-kits first
|
---|
| 21 | :: then call rke-setup.bat to source the environment vars it sets
|
---|
[29232] | 22 | pushd %currentdir%\tools\expeditee-release-kits
|
---|
[29230] | 23 | call rke-setup.bat
|
---|
[29232] | 24 | if ERRORLEVEL 1 (
|
---|
| 25 | echo error level 1 or more
|
---|
| 26 | popd
|
---|
| 27 | exit /B 1
|
---|
| 28 | )
|
---|
[29230] | 29 | popd
|
---|
| 30 |
|
---|
| 31 |
|
---|
| 32 | :: Make sure the expeditee folder and its rke-build.properties file exist
|
---|
| 33 | :: Then run the 'rke' command from snapshots\expeditee
|
---|
[29232] | 34 | pushd %currentdir%\snapshots
|
---|
[29230] | 35 | ::http://www.robvanderwoude.com/battech_ifexistfolder.php
|
---|
| 36 | if not exist expeditee\ mkdir expeditee
|
---|
| 37 | if not exist expeditee\rke-build.properties copy C:\Research\Nightly\tools\expeditee-release-kits\rke-build.properties.in expeditee\rke-build.properties
|
---|
[29232] | 38 | pushd expeditee
|
---|
[29230] | 39 | rke
|
---|
[29232] | 40 | :: It doesn't reach here for some reason
|
---|
| 41 | ::popd
|
---|
| 42 | ::cd %currentdir%
|
---|
| 43 | ::echo ************** HERE I AM
|
---|
[29230] | 44 |
|
---|
| 45 | :end
|
---|
[29232] | 46 | endlocal
|
---|
Note:
See
TracBrowser
for help on using the repository browser.