[Tizen] Add BuildTools 2.1.0-rc1-02804-05
[platform/upstream/coreclr.git] / Tools / dotnetcli / sdk / 2.1.2 / FSharp / RunFsc.sh
1 #!/usr/bin/env bash
2 #
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.
5 #
6
7 set -e
8
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
14 done
15 DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
16
17 "$DIR/../../../dotnet" "$DIR/fsc.exe" "$@"