3 # Copyright (c) .NET Foundation and contributors. All rights reserved.
4 # Licensed under the MIT license. See LICENSE file in the project root for full license information.
9 SOURCE="${BASH_SOURCE[0]}"
10 while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
11 DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
12 SOURCE="$(readlink "$SOURCE")"
13 [[ "$SOURCE" != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
15 DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
17 "$DIR/../../../dotnet" "$DIR/fsc.exe" "$@"