Add build scripts to root

This commit is contained in:
Daniel Plaisted 2018-10-22 18:53:12 -07:00
parent 2c65c57324
commit 37ef87ac97
2 changed files with 14 additions and 0 deletions

3
build.cmd Normal file
View file

@ -0,0 +1,3 @@
@echo off
powershell -NoLogo -NoProfile -ExecutionPolicy ByPass -Command "& """%~dp0eng\common\build.ps1""" -build -restore %*"
exit /b %ErrorLevel%

11
build.sh Normal file
View file

@ -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 "$@"