Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reverted back to old script/test with the addition of set -e
- Loading branch information
1 parent
f2a1308
commit f134b23
Showing
1 changed file
with
6 additions
and
18 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 |
---|---|---|
@@ -1,22 +1,10 @@ | ||
#!/bin/bash | ||
|
||
make_build_dir() { | ||
mkdir -p build && cd build | ||
} | ||
set -e | ||
|
||
build_project() { | ||
gox -osarch="linux/amd64" -osarch="darwin/amd64" ../ | ||
} | ||
mkdir -p build | ||
cd build | ||
gox -osarch="linux/amd64" -osarch="darwin/amd64" ../ | ||
|
||
rename_binaries() { | ||
mv whalebrew_linux_amd64 whalebrew-Linux-x86_64 && \ | ||
mv whalebrew_darwin_amd64 whalebrew-Darwin-x86_64 | ||
} | ||
|
||
main() { | ||
make_build_dir \ | ||
&& build_project \ | ||
&& rename_binaries | ||
} | ||
|
||
main "$@" | ||
mv whalebrew_linux_amd64 whalebrew-Linux-x86_64 | ||
mv whalebrew_darwin_amd64 whalebrew-Darwin-x86_64 |