-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathbuild.sh
More file actions
32 lines (27 loc) · 800 Bytes
/
build.sh
File metadata and controls
32 lines (27 loc) · 800 Bytes
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
#!/bin/bash
if [ ! -f packages/FAKE/tools/Fake.exe ]; then
mono .nuget/NuGet.exe install FAKE -OutputDirectory packages -ExcludeVersion
fi
if [ ! -f packages/SourceLink.Fake/tools/SourceLink.fsx ]; then
mono .nuget/NuGet.exe install SourceLink.Fake -OutputDirectory packages -ExcludeVersion
fi
run_fake() {
configuration=$1
if [ $configuration = "--publish-nuget" ]; then
configuration=Release
publish_nuget=true
else
publish_nuget=false
fi
echo "Building $configuration..."
mono packages/FAKE/tools/FAKE.exe build.fsx -d:MONO Configuration="$configuration" PublishNuget=$publish_nuget
}
if [ $# -eq 0 ]; then
run_fake "Release"
elif [ $# -eq 1 ]; then
run_fake $1
else
for config in $* ; do
run_fake "$config"
done
fi