summaryrefslogtreecommitdiff
path: root/run.sh
diff options
context:
space:
mode:
authorJiyoung Yun <jy910.yun@samsung.com>2016-11-23 19:09:09 +0900
committerJiyoung Yun <jy910.yun@samsung.com>2016-11-23 19:09:09 +0900
commit4b4aad7217d3292650e77eec2cf4c198ea9c3b4b (patch)
tree98110734c91668dfdbb126fcc0e15ddbd93738ca /run.sh
parentfa45f57ed55137c75ac870356a1b8f76c84b229c (diff)
downloadcoreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.gz
coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.bz2
coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.zip
Imported Upstream version 1.1.0upstream/1.1.0
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/run.sh b/run.sh
new file mode 100755
index 0000000000..1c9299ae17
--- /dev/null
+++ b/run.sh
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+
+working_tree_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+
+echo "Running init-tools.sh"
+$working_tree_root/init-tools.sh
+
+toolRuntime=$working_tree_root/Tools
+dotnet=$toolRuntime/dotnetcli/dotnet
+
+echo "Running: $dotnet $toolRuntime/run.exe $*"
+$dotnet $toolRuntime/run.exe $*
+if [ $? -ne 0 ]
+then
+ echo "ERROR: An error occured in $dotnet $toolRuntime/run $#. Check $# logs under $working_tree_root."
+ exit 1
+fi
+
+echo "Command successfully completed."
+exit 0