diff options
author | dotnet-bot <dotnet-bot@microsoft.com> | 2019-11-14 03:26:19 +0300 |
---|---|---|
committer | dotnet-bot <dotnet-bot@microsoft.com> | 2019-11-14 03:26:19 +0300 |
commit | 381372f6f12884caee5bb90f52649040827e19cc (patch) | |
tree | b8566ffcc1c4c2daa3cdbf1eebbfb8ac14a7718c /build.sh |
Initial runtime repository structure
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/build.sh b/build.sh new file mode 100755 index 00000000000..ae097a31d85 --- /dev/null +++ b/build.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +source="${BASH_SOURCE[0]}" + +# resolve $SOURCE until the file is no longer a symlink +while [[ -h $source ]]; do + scriptroot="$( cd -P "$( dirname "$source" )" && pwd )" + source="$(readlink "$source")" + + # if $source was a relative symlink, we need to resolve it relative to the path where the + # symlink file was located + [[ $source != /* ]] && source="$scriptroot/$source" +done + +scriptroot="$( cd -P "$( dirname "$source" )" && pwd )" +"$scriptroot/eng/build.sh" $@ |