forked from elastic/elasticsearch-net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·36 lines (31 loc) · 698 Bytes
/
build.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
#!/usr/bin/env bash
FAKE="packages/build/FAKE/tools/FAKE.exe"
BUILDSCRIPT="build/scripts/Targets.fsx"
if test "$OS" = "Windows_NT"
then
# use .Net
.paket/paket.bootstrapper.exe prerelease
exit_code=$?
if [ $exit_code -ne 0 ]; then
exit $exit_code
fi
.paket/paket.exe install
exit_code=$?
if [ $exit_code -ne 0 ]; then
exit $exit_code
fi
$FAKE $@ --fsiargs -d:MONO $BUILDSCRIPT
else
# use mono
mono .paket/paket.bootstrapper.exe prerelease
exit_code=$?
if [ $exit_code -ne 0 ]; then
exit $exit_code
fi
mono .paket/paket.exe install
exit_code=$?
if [ $exit_code -ne 0 ]; then
exit $exit_code
fi
mono $FAKE $@ --fsiargs -d:MONO $BUILDSCRIPT
fi