5 echo "Usage: sync [-p]"
6 echo "Repository syncing script."
7 echo " -p Restore all NuGet packages for the repository"
8 echo "If no option is specified, then \"sync.sh -p\" is implied."
12 working_tree_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
16 # Assume the default '-p' argument if the only arguments specified are specified after double dash.
17 # Only position parameters can be specified after the double dash.
18 if [ $# == 0 ] || [ "$1" == "--" ]; then
19 buildArgs="./build.proj /p:RestoreDuringBuild=true /t:Sync"
20 if [ "$1" == "--" ]; then
33 buildArgs="./build.proj /p:RestoreDuringBuild=true /t:Sync"
36 unprocessedBuildArgs="$unprocessedBuildArgs $1"
41 $working_tree_root/dotnet.sh msbuild /nologo /verbosity:minimal /clp:Summary /flp:v=detailed\;LogFile=sync.log $buildArgs $unprocessedBuildArgs
44 echo "ERROR: An error occurred while syncing packages; See $working_tree_root/sync.log for more details. There may have been networking problems, so please try again in a few minutes."
48 echo "Sync completed successfully."