Use a consistent rootfs location (#2005)
[platform/upstream/dotnet/runtime.git] / coreclr.sh
1 #!/usr/bin/env bash
2
3 source="${BASH_SOURCE[0]}"
4
5 # resolve $SOURCE until the file is no longer a symlink
6 while [[ -h $source ]]; do
7   scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
8   source="$(readlink "$source")"
9
10   # if $source was a relative symlink, we need to resolve it relative to the path where the
11   # symlink file was located
12   [[ $source != /* ]] && source="$scriptroot/$source"
13 done
14
15 scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
16 "$scriptroot/build.sh" --subsetCategory coreclr $@