Skip to content

Commit

Permalink
more build script changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Osheroff committed Dec 4, 2015
1 parent 64c2d50 commit 83cc742
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/release
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ do_system("mvn clean package")
commit_template = Tempfile.new('maxwell_build')
commit_template.write <<-EOL
v#{$version}, "pithy title here"
- list changes
EOL

commit_template.write(`git lg v#{CURRENT_REV}`.split("\n").map { |l| "# " + l })
git_log = "git log --pretty=format:'%h -%d %s %cr <%an>' --abbrev-commit --date=relative v#{CURRENT_REV}..HEAD"

commit_template.write(`#{git_log}`.gsub(/^/, '# '))
commit_template.close

do_system("git commit -av -t #{commit_template.path}")
Expand Down

0 comments on commit 83cc742

Please sign in to comment.