diff options
author | Joel Hendrix <jhendrix@microsoft.com> | 2016-03-29 02:17:46 +0300 |
---|---|---|
committer | Joel Hendrix <jhendrix@microsoft.com> | 2016-03-29 02:36:39 +0300 |
commit | 2ec850a64dfe58da8fa6375d0affbce7de880b45 (patch) | |
tree | f345ce615a460309ea158791d1f65a721c6a0f9f /build-packages.sh | |
parent | 12845be0fc20fef238b560948b57911db63af477 (diff) |
Fixes to build-packages scripts
Fix syntax errors in if clause (.sh version).
Run init-tools script if tools haven't been restored.
Diffstat (limited to 'build-packages.sh')
-rwxr-xr-x | build-packages.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build-packages.sh b/build-packages.sh index b235c87b85..7d560d6515 100755 --- a/build-packages.sh +++ b/build-packages.sh @@ -14,10 +14,14 @@ arguments="$@" echo -e "Running build-packages.sh $arguments" > $build_packages_log # Parse arguments -if [ $arguments == "-h" ] || [ $arguments == "--help" ]; then +if [ "$arguments" == "-h" ] || [ "$arguments" == "--help" ]; then usage fi +# Ensure that MSBuild is available +echo "Running init-tools.sh" +$working_tree_root/init-tools.sh + echo -e "\n$working_tree_root/Tools/corerun $working_tree_root/Tools/MSBuild.exe $working_tree_root/src/packages.builds $arguments /nologo /v:minimal /flp:v=detailed;Append;LogFile=$build_packages_log" >> $build_packages_log $working_tree_root/Tools/corerun $working_tree_root/Tools/MSBuild.exe $working_tree_root/src/packages.builds $arguments /nologo /v:minimal "/flp:v=detailed;Append;LogFile=$build_packages_log" |