-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sh
executable file
·37 lines (29 loc) · 1.21 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
#!/bin/sh
xbuild_command_name="xbuild"
type "$xbuild_command_name" > /dev/null 2>&1
if [ $? != 0 ] ; then
echo 'Cannot find xbuild.' 1>&2
exit $?
fi
export EnableNuGetPackageRestore=true
target="$1"
if [ "$target" = "" ] ; then
target="Build"
fi
xbuild /p:Configuration=Debug /p:TargetFrameworkProfile= /p:OutPutPath=../build/mono/Debug/ /p:BaseIntermediateOutputPath=../build/mono/obj/ /t:"$target" /v:minimal ./OBehave35/OBehave35.csproj
if [ $? != 0 ] ; then
exit $?
fi
xbuild /p:Configuration=Release /p:TargetFrameworkProfile= /p:OutPutPath=../build/mono/Release/ /p:BaseIntermediateOutputPath=../build/mono/obj/ /t:"$target" /v:minimal ./OBehave35/OBehave35.csproj
if [ $? != 0 ] ; then
exit $?
fi
xbuild /p:Configuration=Debug /p:TargetFrameworkProfile= /p:OutPutPath=../build/mono-tests/Debug/ /p:BaseIntermediateOutputPath=../build/mono-tests/obj/ /t:"$target" /v:minimal ./OBehave.Tests/OBehave.Tests.csproj
if [ $? != 0 ] ; then
exit $?
fi
xbuild /p:Configuration=Release /p:TargetFrameworkProfile= /p:OutPutPath=../build/mono-tests/Release/ /p:BaseIntermediateOutputPath=../build/mono-tests/obj/ /t:"$target" /v:minimal ./OBehave.Tests/OBehave.Tests.csproj
if [ $? != 0 ] ; then
exit $?
fi
exit 0