-
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.
Merge pull request #9 from getlantern/2105
getlantern/lantern#2105 crosscompile now uses tag for latest commit id i...
- Loading branch information
Showing
6 changed files
with
102 additions
and
81 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
File renamed without changes.
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,8 @@ | ||
#!/bin/bash | ||
|
||
# The VERSION is set to the tag for the current commit (if it exists) otherwise | ||
# just the commit id. | ||
VERSION="`git describe --abbrev=0 --tags --exact-match || git rev-parse --short HEAD`" | ||
BUILD_DATE="`date -u +%Y%m%d%.%H%M%S`" | ||
echo "Building flashlight version $VERSION ($BUILD_DATE)" | ||
gox -ldflags="-w -X main.version $VERSION -X main.buildDate $BUILD_DATE" -osarch="linux/386 linux/amd64 windows/386 darwin/amd64" github.com/getlantern/flashlight |
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 was deleted.
Oops, something went wrong.
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,15 @@ | ||
#!/bin/bash | ||
|
||
function die() { | ||
echo $* | ||
exit 1 | ||
} | ||
|
||
if [ $# -lt "1" ] | ||
then | ||
die "$0: Tag required" | ||
fi | ||
|
||
git tag -a "$1" -f --annotate -m"Tagged $1" | ||
git push --tags -f | ||
./crosscompile.bash |