-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
different query formatting for MySQL, new build scripts and makefile
- Loading branch information
Showing
6 changed files
with
37 additions
and
17 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 |
---|---|---|
|
@@ -25,3 +25,4 @@ password.txt | |
|
||
# Ignore Build | ||
build | ||
release |
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,16 @@ | ||
BINARY := godbledger | ||
VERSION ?= latest | ||
PLATFORMS := linux | ||
os = $(word 1, $@) | ||
|
||
.PHONY: $(PLATFORMS) | ||
$(PLATFORMS): | ||
mkdir -p release/$(BINARY)-$(os)-x64-v$(VERSION)/ | ||
GOOS=$(os) GOARCH=amd64 go build -o release/$(BINARY)-$(os)-x64-v$(VERSION)/ ./... | ||
|
||
.PHONY: release | ||
release: linux | ||
|
||
PHONY: clean | ||
clean: | ||
rm -rf release/ |
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
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
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
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,21 +1,24 @@ | ||
#!/bin/bash | ||
|
||
version=$1 | ||
build=linux | ||
|
||
if [ -z "$version" ] | ||
then | ||
echo "Usage: $0 <version>" | ||
exit | ||
fi | ||
|
||
WORKING_DIR=godbledger-$version | ||
make VERSION=$version release | ||
|
||
WORKING_DIR=release/ | ||
|
||
echo "Working in $WORKING_DIR..." | ||
|
||
mkdir -p $WORKING_DIR | ||
cd $WORKING_DIR | ||
|
||
tar -czvf godbledger-$build-x64-$version.tar.gz godbledger-$build-x64-$version | ||
tar -czvf godbledger-$build-x64-v$version.tar.gz godbledger-$build-x64-v$version | ||
|
||
echo '#### sha256sum' | ||
sha256sum godbledger-*-x64-$version.zip | ||
sha256sum godbledger-*-x64-v$version.tar.gz |