Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariana Rios Flores <mariari@microsoft.com>2016-07-28 18:55:07 +0300
committerGitHub <noreply@github.com>2016-07-28 18:55:07 +0300
commit7e2bd07936179c192e682d979b2938b4a7e32030 (patch)
tree82f02ba880212b2bba0fdef0ed42e7f37b075aab /build-packages.sh
parenta6e95d3db3e002b589176a107f7cc79520e37de4 (diff)
Changing dev workflow scripts to use the Run Command Tool (#10231)
Changes to dev workflow scripts to use run command tool.
Diffstat (limited to 'build-packages.sh')
-rwxr-xr-xbuild-packages.sh75
1 files changed, 2 insertions, 73 deletions
diff --git a/build-packages.sh b/build-packages.sh
index 827c48a2e5..32832de8c0 100755
--- a/build-packages.sh
+++ b/build-packages.sh
@@ -1,75 +1,4 @@
#!/usr/bin/env bash
-
-usage()
-{
- echo "Builds the NuGet packages from the binaries that were built in the Build product binaries step."
- echo "No option parameters."
- exit 1
-}
-
working_tree_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-build_packages_log=$working_tree_root/build-packages.log
-binclashlog=$working_tree_root/binclash.log
-binclashloggerdll=$working_tree_root/Tools/Microsoft.DotNet.Build.Tasks.dll
-RuntimeOS=ubuntu.14.04
-
-# Use uname to determine what the OS is.
-OSName=$(uname -s)
-case $OSName in
- Darwin)
- # Darwin version can be three sets of digits (e.g. 10.10.3), we want just the first one
- DarwinVersion=$(sw_vers -productVersion | awk 'match($0, /[0-9]+/) { print substr($0, RSTART, RLENGTH) }')
- RuntimeOS=osx.$DarwinVersion
- ;;
-
- FreeBSD|NetBSD)
- # TODO this doesn't seem correct
- RuntimeOS=osx.10
- ;;
-
- Linux)
- if [ ! -e /etc/os-release ]; then
- echo "Cannot determine Linux distribution, assuming Ubuntu 14.04"
- else
- source /etc/os-release
- # for some distros we only need the version major number
- VersionMajor=$(echo $VERSION_ID | awk 'match($0, /[0-9]+/) { print substr($0, RSTART, RLENGTH) }')
- if [ "$ID" == "rhel" ]; then
- RuntimeOS=$ID.$VersionMajor
- else
- RuntimeOS=$ID.$VERSION_ID
- fi
- fi
- ;;
-
- *)
- echo "Unsupported OS '$OSName' detected. Configuring as if for Ubuntu."
- ;;
-esac
-
-options="/m /nologo /v:minimal /clp:Summary /flp:v=diagnostic;Append;LogFile=$build_packages_log /l:BinClashLogger,$binclashloggerdll;LogFile=$binclashlog /p:FilterToOSGroup=$RuntimeOS"
-allargs="$@"
-
-echo -e "Running build-packages.sh $allargs" > $build_packages_log
-
-if [ "$allargs" == "-h" ] || [ "$allargs" == "--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/dotnetcli/dotnet $working_tree_root/Tools/MSBuild.exe $working_tree_root/src/packages.builds $options $allargs" >> $build_packages_log
-$working_tree_root/Tools/dotnetcli/dotnet $working_tree_root/Tools/MSBuild.exe $working_tree_root/src/packages.builds $options $allargs
-
-
-if [ $? -ne 0 ]; then
- echo -e "\nAn error occurred. Aborting build-packages.sh ." >> $build_packages_log
- echo "ERROR: An error occurred while building packages, see $build_packages_log for more details."
- exit 1
-fi
-
-echo "Done building packages."
-echo -e "\nDone building packages." >> $build_packages_log
-exit 0
+$working_tree_root/run.sh build-managed -packages -binclashUnix $*
+exit $?