-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdo-build
More file actions
executable file
·49 lines (42 loc) · 1.41 KB
/
do-build
File metadata and controls
executable file
·49 lines (42 loc) · 1.41 KB
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
#!/bin/bash
# Builds a Ct-Lab-based component.
# Intended to be invoked by a component's specific build script within
# that component's root directory.
configPar=""
cleanall=0
if [ $# -eq 2 ]; then
configPar="$1"
solution="$2"
fi
case "$configPar" in
release)
configuration="Release"
;;
debug)
configuration="Debug"
;;
cleanall)
configuration="cleaning only"
cleanall=1
;;
*)
echo "Usage: $(basename "$0") { release | debug | cleanall }"
exit 1
;;
esac
echo "================================================================================"
echo "Processing $solution ($configuration)..."
if [ $cleanall -ne 0 ]; then
xbuild /target:Clean /property:Configuration="Release" "$solution"
xbuild /target:Clean /property:Configuration="Debug" "$solution"
else
echo "--------------------------------------------------------------------------------"
echo "Cleaning..."
xbuild /target:Clean /property:Configuration="$configuration" "$solution"
echo "--------------------------------------------------------------------------------"
echo "Building..."
xbuild /target:Build /property:Configuration="$configuration" "$solution"
echo "--------------------------------------------------------------------------------"
fi
echo "$solution finished"
echo "================================================================================"