-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add build script
- Loading branch information
Aviad Lichtenstadt
committed
Jan 14, 2019
1 parent
13099dc
commit f98d13e
Showing
2 changed files
with
41 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
for os in linux darwin; do | ||
export GOOS="$os" | ||
echo "build for $GOOS:" | ||
for arch in 386 amd64; do | ||
export GOARCH="$arch" | ||
NAME=bin/thirdPartyLicenseCollector_${GOOS}_${GOARCH} | ||
if [ $arch = "amd64" ] | ||
then | ||
go build -o $NAME . | ||
fi | ||
done | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters