Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit f1e5486

Browse files
committed
FreeBSD enable: Make build.sh FreeBSD compatible
This patch adds FreeBSD to build.sh. Also use /usr/bin/env to get the real path of bash, since that can be different across platforms.
1 parent a764229 commit f1e5486

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
__scriptpath=$(cd "$(dirname "$0")"; pwd -P)
44
__packageroot=$__scriptpath/packages
@@ -11,6 +11,8 @@ __msbuildpath=$__packageroot/$__msbuildpackageid.$__msbuildpackageversion/lib/MS
1111

1212
if [ $(uname) == "Linux" ]; then
1313
__monoroot=/usr
14+
elif [ $(uname) == "FreeBSD" ]; then
15+
__monoroot=/usr/local
1416
else
1517
__monoroot=/Library/Frameworks/Mono.framework/Versions/Current
1618
fi
@@ -69,6 +71,8 @@ fi
6971

7072
if [ $(uname) == "Linux" ]; then
7173
__osgroup=Linux
74+
elif [ $(uname) == "FreeBSD" ]; then
75+
__osgroup=FreeBSD
7276
else
7377
__osgroup=OSX
7478
fi

0 commit comments

Comments
 (0)