forked from morelinq/MoreLINQ
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sh
executable file
·30 lines (30 loc) · 909 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
30
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")"
export MSBUILDTERMINALLOGGER=off
dotnet restore
dotnet tool restore
codegen() {
dest="$1"
printf "Generating extensions wrappers (%s)..." "$1"
shift
dotnet build bld/ExtensionsGenerator/MoreLinq.ExtensionsGenerator.csproj -c Release >build.log || (
printf "Failed!\n"
cat build.log
rm build.log
exit 1
)
dotnet bld/ExtensionsGenerator/bin/Release/MoreLinq.ExtensionsGenerator.dll "$@" > "$dest"
printf "Done.\n"
}
codegen MoreLinq/Extensions.g.cs -x "[/\\\\]ToDataTable\.cs$" -u System.Linq -u System.Collections MoreLinq
codegen MoreLinq/Extensions.ToDataTable.g.cs -i "[/\\\\]ToDataTable\.cs$" -u System.Data -u System.Linq.Expressions MoreLinq
MoreLinq/tt.sh
if [[ -z "$1" ]]; then
configs="Debug Release"
else
configs="$1"
fi
for c in $configs; do
dotnet build --no-restore -c $c
done