diff --git a/build.cmd b/build.cmd new file mode 100644 index 000000000..6a89aa523 --- /dev/null +++ b/build.cmd @@ -0,0 +1,3 @@ +@echo off +powershell -NoLogo -NoProfile -ExecutionPolicy ByPass -Command "& """%~dp0eng\common\build.ps1""" -build -restore %*" +exit /b %ErrorLevel% diff --git a/build.sh b/build.sh new file mode 100644 index 000000000..2d2a01b1e --- /dev/null +++ b/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +SOURCE="${BASH_SOURCE[0]}" +while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink + ScriptRoot="$( cd -P "$( dirname "$SOURCE" )" && pwd )" + SOURCE="$(readlink "$SOURCE")" + [[ $SOURCE != /* ]] && SOURCE="$ScriptRoot/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located +done +ScriptRoot="$( cd -P "$( dirname "$SOURCE" )" && pwd )" + +. "$ScriptRoot/eng/common/build.sh" --build --restore "$@"