Ignore:
Timestamp:
2014-08-22T17:04:47+12:00 (10 years ago)
Author:
ak19
Message:

Correction to syntax error, and checking locations set as env vars actually exist, error checking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/expeditee-release-kits/create-expeditee.bat

    r29230 r29232  
    11@echo off
    2 ::call "C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\SetEnv.cmd"
    3 ::call "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"
     2setlocal
     3
     4:: currentdir (C:\Research\Nightly)
     5set currentdir=%CD%
    46
    57:: Need to edit rke-setup.bat and fill it in with local env vars values
    6 if not exist C:\Research\Nightly\tools\expeditee-release-kits\rke-setup.bat (
     8if not exist %currentdir%\tools\expeditee-release-kits\rke-setup.bat (
    79echo.
    810echo *******************
    911echo.
    10 echo First edit C:\Research\Nightly\tools\expeditee-release-kits\rke-setup.bat.in
    11 echo to generate C:\Research\Nightly\tools\expeditee-release-kits\rke-setup.bat
     12echo First edit %currentdir%\tools\expeditee-release-kits\rke-setup.bat.in
     13echo to generate %currentdir%\tools\expeditee-release-kits\rke-setup.bat
    1214echo.
    1315echo *******************
     
    1820:: rke-setup.bat uses local paths, so cd into expeditee-release-kits first
    1921:: then call rke-setup.bat to source the environment vars it sets
    20 pushd C:\Research\Nightly\tools\expeditee-release-kits
     22pushd %currentdir%\tools\expeditee-release-kits
    2123call rke-setup.bat
     24if ERRORLEVEL 1 (
     25    echo error level 1 or more
     26    popd   
     27    exit /B 1
     28)
    2229popd
    2330
     
    2532:: Make sure the expeditee folder and its rke-build.properties file exist
    2633:: Then run the 'rke' command from snapshots\expeditee
    27 pushd C:\Research\Nightly\snapshots
     34pushd %currentdir%\snapshots
    2835::http://www.robvanderwoude.com/battech_ifexistfolder.php
    2936if not exist expeditee\ mkdir expeditee
    3037if not exist expeditee\rke-build.properties copy C:\Research\Nightly\tools\expeditee-release-kits\rke-build.properties.in expeditee\rke-build.properties
    31 cd expeditee
     38pushd expeditee
    3239rke
    33 popd
     40:: It doesn't reach here for some reason
     41::popd
     42::cd %currentdir%
     43::echo ************** HERE I AM
    3444
    3545:end
     46endlocal
Note: See TracChangeset for help on using the changeset viewer.