Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
Fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
me committed Jan 3, 2018
1 parent ea97411 commit 75daae4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions generate_version.sh → cli/generate_version.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version=`cat VERSION`
version=`cat ../VERSION`
# Write out the package.
cat << EOF > cli/version.go
cat << EOF > version.go
package cli
//go:generate bash ./generate_version.sh
var PaddleVersion = "$version"
Expand Down
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ die() { echo "$*" 1>&2 ; exit 1; }

VERSION=`cat VERSION | tr -d '\n'`
git diff-index --quiet --cached HEAD -- || die "Index dirty, commit first"
go generate
go generate ./cli
git add VERSION
git add cli/version.go
git commit -m "Version $VERSION" || echo "Version not changed"
Expand Down

0 comments on commit 75daae4

Please sign in to comment.