root/other-projects/expeditee-release-kits/create-expeditee.bat @ 30393

Revision 30393, 1.3 KB (checked in by ak19, 4 years ago)

Bat file also needs to delete stale expeditee snapshot before regenerating it.

Line 
1@echo off
2setlocal
3
4:: currentdir (C:\Research\Nightly)
5set currentdir=%CD%
6
7:: Need to edit rke-setup.bat and fill it in with local env vars values
8if not exist %currentdir%\tools\expeditee-release-kits\rke-setup.bat (
9echo.
10echo *******************
11echo.
12echo First edit %currentdir%\tools\expeditee-release-kits\rke-setup.bat.in
13echo to generate %currentdir%\tools\expeditee-release-kits\rke-setup.bat
14echo.
15echo *******************
16echo.
17goto 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
22pushd %currentdir%\tools\expeditee-release-kits
23call rke-setup.bat
24if ERRORLEVEL 1 (
25    echo error level 1 or more
26    popd   
27    exit /B 1
28)
29popd
30
31
32:: Make sure the expeditee folder and its rke-build.properties file exist
33:: Then run the 'rke' command from snapshots\expeditee
34pushd %currentdir%\snapshots
35::http://www.robvanderwoude.com/battech_ifexistfolder.php
36if exist expeditee\ echo Deleting snapshots\expeditee&& rmdir /s /q expeditee
37if not exist expeditee\ mkdir expeditee
38if not exist expeditee\rke-build.properties copy C:\Research\Nightly\tools\expeditee-release-kits\rke-build.properties.in expeditee\rke-build.properties
39pushd expeditee
40call rke
41
42:end
43
44cd %currentdir%
45endlocal
46::exit
Note: See TracBrowser for help on using the browser.