forked from dknoodle/WUnderground.Net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·29 lines (25 loc) · 956 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
#!/bin/bash
git submodule update --init --recursive
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" Wunderground.Net.sln /flp:LogFile=xbuild.log;Verbosity=Detailed
else
if [ "$build_platform" = "" ]; then
if [ $build_conf = "debug" ]; then
xbuild /p:Configuration="Debug" Wunderground.Net.sln /flp:LogFile=xbuild.log;Verbosity=Detailed
else
xbuild /p:Configuration="Release" Wunderground.Net.sln /flp:LogFile=xbuild.log;Verbosity=Detailed
fi
else
if [ $build_conf = "debug" ]; then
xbuild /p:Configuration="Debug" /p:PlatformTarget=$build_platform Wunderground.Net.sln /flp:LogFile=xbuild.log;Verbosity=Detailed
else
xbuild /p:Configuration="Release" /p:PlatformTarget=$build_platform Wunderground.Net.sln /flp:LogFile=xbuild.log;Verbosity=Detailed
fi
fi
fi