forked from JamesNK/Newtonsoft.Json
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·27 lines (24 loc) · 970 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
#!/bin/bash
build_conf="$(echo "$1" | tr [:upper:] [:lower:])"
if [ "$2" = "" ]; then
build_platform=""
else
build_platform="$(echo "$2" | tr [:upper:] [:lower:])"
fi
if [ "$1" = "" ]; then
xbuild /p:Configuration="Release" Src/Newtonsoft.Json.Schumix.sln /flp:LogFile=xbuild.log;Verbosity=Detailed
else
if [ "$build_platform" = "" ]; then
if [ $build_conf = "debug" ]; then
xbuild /p:Configuration="Debug" Src/Newtonsoft.Json.Schumix.sln /flp:LogFile=xbuild.log;Verbosity=Detailed
else
xbuild /p:Configuration="Release" Src/Newtonsoft.Json.Schumix.sln /flp:LogFile=xbuild.log;Verbosity=Detailed
fi
else
if [ $build_conf = "debug" ]; then
xbuild /p:Configuration="Debug" /p:PlatformTarget=$build_platform Src/Newtonsoft.Json.Schumix.sln /flp:LogFile=xbuild.log;Verbosity=Detailed
else
xbuild /p:Configuration="Release" /p:PlatformTarget=$build_platform Src/Newtonsoft.Json.Schumix.sln /flp:LogFile=xbuild.log;Verbosity=Detailed
fi
fi
fi