forked from dotnet/wcf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-managed.sh
executable file
·61 lines (52 loc) · 1.58 KB
/
build-managed.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env bash
usage()
{
echo "Usage: $0 [platform] [useservergc]"
echo
echo "platform can be: FreeBSD, Linux, NetBSD, OSX, Windows."
echo "useservergc - Switch used by configure the hosted coreclr instance when executing tests."
echo
}
__scriptpath=$(cd "$(dirname "$0")"; pwd -P)
__UnprocessedBuildArgs=
__TestNugetRuntimeId=-distroRid
__BuildOS=-os
__TargetOS=-target-os
__ServerGC=0
while :; do
if [ $# -le 0 ]; then
break
fi
lowerI="$(echo $1 | awk '{print tolower($0)}')"
case $lowerI in
freebsd)
__TestNugetRuntimeId="$__TestNugetRuntimeId=osx.10.10-x64"
__BuildOS="$__BuildOS=freebsd"
__TargetOS="$__TargetOS=freebsd"
;;
netbsd)
__TestNugetRuntimeId="$__TestNugetRuntimeId=osx.10.10-x64"
__BuildOS="$__BuildOS=netbsd"
__TargetOS="$__TargetOS=netbsd"
;;
osx)
__TestNugetRuntimeId="$__TestNugetRuntimeId=osx.10.10-x64"
__BuildOS="$__BuildOS=osx"
__TargetOS="$__TargetOS=osx"
;;
windows)
__TestNugetRuntimeId="$__TestNugetRuntimeId=win7-x64"
__BuildOS="$__BuildOS=windows_nt"
__TargetOS="$__TargetOS=Windows_NT"
;;
useservergc)
__ServerGC=1
;;
*)
__UnprocessedBuildArgs="$__UnprocessedBuildArgs $1"
esac
shift
done
export CORECLR_SERVER_GC="$__ServerGC"
$__scriptpath/run.sh build-managed $__BuildOS $__TargetOS $__TestNugetRuntimeId $__UnprocessedBuildArgs
exit $?