-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·26 lines (26 loc) · 806 Bytes
/
build.sh
File metadata and controls
executable file
·26 lines (26 loc) · 806 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
#!/usr/bin/env bash
set -x
config=Release
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) machine=Linux;;
Darwin*) machine=Mac;;
CYGWIN*) machine=Cygwin;;
MINGW*) machine=MinGw;;
MSYS_NT*) machine=Msys;;
*) machine="UNKNOWN:${unameOut}"
esac
if [[ "$machine" == "MinGw" || "$machine" == "Msys" ]]
then
cwd=`pwd | sed 's%/c%c:%' | sed 's%/d%d:%' | sed 's%/%\\\\%g'`
else
cwd=`pwd`
fi
echo $cwd
echo $machine
cd Antlr4BuildTasks
dotnet nuget remove source nuget-antlr4buildtasks > /dev/null 2>&1
dotnet restore Antlr4BuildTasks.csproj
dotnet build Antlr4BuildTasks.csproj -c $config
dotnet nuget add source "$cwd/Antlr4BuildTasks/bin/$config/" --name nuget-antlr4buildtasks > /dev/null 2>&1
dotnet nuget list source | grep nuget-antlr4buildtasks