diff options
author | Nate Amundson <naamunds@microsoft.com> | 2016-02-20 00:52:30 +0300 |
---|---|---|
committer | Nate Amundson <naamunds@microsoft.com> | 2016-02-20 00:52:30 +0300 |
commit | 43ba2e8f1a43396668d7941fe27771268cae17f1 (patch) | |
tree | 6484232b7d1f9944a4b7e78abf17ec0d36750983 /sync.cmd | |
parent | cb13b0e0ba5eb8e9940eaae0fe782d1df5b06de0 (diff) |
Add sync.sh for dev workflow
This script is used for syncing one's repo.
Also make a few minor fixes to sync.cmd.
Diffstat (limited to 'sync.cmd')
-rw-r--r-- | sync.cmd | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -37,11 +37,12 @@ goto Loop :Begin +echo Running init-tools.cmd call %~dp0init-tools.cmd if [%src%] == [true] ( echo Fetching git database from remote repos ... - call git fetch --all -p >> %synclog% + call git fetch --all -p -v >> %synclog% 2>&1 if NOT [%ERRORLEVEL%]==[0] ( echo ERROR: An error occurred while fetching remote source code, see %synclog% for more details. exit /b @@ -50,8 +51,8 @@ if [%src%] == [true] ( if [%packages%] == [true] ( echo Restoring all packages ... - echo msbuild.exe %~dp0build.proj /t:BatchRestorePackages /nologo /v:minimal /p:RestoreDuringBuild=true /flp:v=diag;Append;LogFile=%synclog% >> %synclog% - call msbuild.exe %~dp0build.proj /t:BatchRestorePackages /nologo /v:minimal /p:RestoreDuringBuild=true /flp:v=diag;Append;LogFile=%synclog% + echo msbuild.exe %~dp0build.proj /t:BatchRestorePackages /nologo /v:minimal /p:RestoreDuringBuild=true /flp:v=detailed;Append;LogFile=%synclog% >> %synclog% + call msbuild.exe %~dp0build.proj /t:BatchRestorePackages /nologo /v:minimal /p:RestoreDuringBuild=true /flp:v=detailed;Append;LogFile=%synclog% if NOT [%ERRORLEVEL%]==[0] ( echo ERROR: An error occurred while syncing packages, see %synclog% for more details. There may have been networking problems so please try again in a few minutes. exit /b @@ -68,7 +69,8 @@ echo. echo Repository syncing script. echo. echo Options: -echo /s - Fetches source history from all configured remotes (git fetch --all) +echo /s - Fetches source history from all configured remotes +echo (git fetch --all -p -v) echo /p - Restores all nuget packages for repository echo. echo If no option is specified then sync.cmd /s /p is implied.
\ No newline at end of file |