Skip to content

Commit

Permalink
Merge pull request #92 from elixir-lang/build-tools
Browse files Browse the repository at this point in the history
Update Rakefile to also run the release.py script. Refs #88.
  • Loading branch information
mattdeboard committed Aug 20, 2014
2 parents 26c17f2 + b9ad4db commit 39e0da3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
desc "create a new release"
desc "Create a new release."
task 'release' do
current_version = run('git tag').split(/\n/).last.strip[1..-1]
print "What version do you want to release? (current: #{current_version}): "
Expand All @@ -9,11 +9,15 @@ task 'release' do
raise("This tag has already been committed to the repo.")
end

run "./release.py v#{current_version} HEAD -t #{version_tag} -f CHANGELOG.md"

elixir_mode_contents = File.read('elixir-mode.el')
File.write('elixir-mode.el', update_version(elixir_mode_contents, current_version, version))
git_changes(version, version_tag)
end

def git_changes(version, version_tag)
run "git commit -a -m \"prepare #{version}\""

run "git tag -a -m \"Version #{version}\" #{version_tag}"
run "git push origin"
run "git push origin --tags"
Expand Down

0 comments on commit 39e0da3

Please sign in to comment.