From 37ef87ac9773567dd397871235a2568a8dc9435e Mon Sep 17 00:00:00 2001 From: Daniel Plaisted Date: Mon, 22 Oct 2018 18:53:12 -0700 Subject: [PATCH] Add build scripts to root --- build.cmd | 3 +++ build.sh | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 build.cmd create mode 100644 build.sh 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 "$@"