forked from rdotnet/rdotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·60 lines (47 loc) · 1.05 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
E_BADARGS=85
function sample_usage ()
{
echo "Usage: `basename $0` [--help] target"
echo "installs R.NET shared library dependencies into a library folder"
echo " Example:"
echo "`basename $0` Tests"
echo " Example:"
echo "`basename $0` NuGet"
}
if [ -n "$1" ]
then
if [ "$1" == "--help" ] || [ "$1" == "-h" ]
then
sample_usage
exit 0
fi
fi
if [ ! -e ./.paket/paket.bootstrapper.exe ] ; then
echo "FATAL: paket.bootstrapper.exe not found" ;
exit 1;
fi;
./.paket/paket.bootstrapper.exe
if [ $? == 0 ]; then
echo "paket.bootstrapper.exe OK";
else
echo "paket.bootstrapper.exe FAILED";
exit 1;
fi
chmod gu+x ./.paket/paket.exe
mono ./.paket/paket.exe restore
if [ $? == 0 ]; then
echo "paket.exe restore OK";
else
echo "paket.exe restore FAILED";
exit 1;
fi
mono ./packages/FAKE/tools/FAKE.exe $* --fsiargs -d:MONO build.fsx
if [ $? == 0 ]; then
echo "Fake.exe OK";
else
echo "Fake.exe FAILED";
exit 1;
fi
# "./packages/NuGet.CommandLine/tools/NuGet.exe" push bin/R.NET.Community.1.6.2.nupkg
exit 0