2017-03-29 05:50:53 -03:00
|
|
|
rem File to update the APM source
|
|
|
|
rem Assumes a Cgywin install at C:\cygwin
|
2017-06-11 23:58:45 -03:00
|
|
|
@echo off
|
|
|
|
|
2020-12-12 17:58:10 -04:00
|
|
|
rem Assumes a Cgywin install at C:\cygwin64
|
|
|
|
if "%CYGWIN_LOCATION%" == "" (set "CYGWIN_LOCATION=C:\cygwin64")
|
|
|
|
|
2017-06-11 23:58:45 -03:00
|
|
|
rem get current dir for Cygwin
|
|
|
|
set pth=%CD:~2,99%
|
|
|
|
set pth=%pth:\=/%
|
|
|
|
set drv=%CD:~0,1%
|
|
|
|
set "fullpath=/cygdrive/%drv%%pth%"
|
|
|
|
|
|
|
|
rem update the source
|
2020-12-12 17:58:10 -04:00
|
|
|
%CYGWIN_LOCATION%\bin\bash.exe --login -i -c "cd ""%fullpath%"" && cd ../../../ && git pull && git submodule update --init --recursive"
|
2017-06-11 23:58:45 -03:00
|
|
|
|
|
|
|
rem re-configure build config
|
2020-12-12 17:58:10 -04:00
|
|
|
%CYGWIN_LOCATION%\bin\bash.exe --login -i -c "cd ""%fullpath%"" && cd ../../../ && ./modules/waf/waf-light configure --board=sitl"
|
2017-06-11 23:58:45 -03:00
|
|
|
|
2017-03-29 05:50:53 -03:00
|
|
|
pause
|