Skip to content

Commit

Permalink
Create 0.1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattes Groeger committed Mar 16, 2014
1 parent 1e5a948 commit 5e356ce
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License

Copyright (c) 2013 Mattes Groeger
Copyright (c) 2014 Mattes Groeger

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
29 changes: 29 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
require 'rake/packagetask'

task :default => [:release]

desc "Create release archive"
task :release do
tag = request_user_input("Which tag (0.1.0)?")
`mkdir -p release`
`zip -r release/vim-bookmarks-#{tag}.zip . -i "doc/*" -i "plugin/*" -i LICENSE.txt`
if request_user_input("Create git tag and commit? (y/n)") == 'y'
`git add .`
`git commit -m "Release build #{tag}"`
`git push --tags origin master`
end
end

def request_user_input(message, fallback = "")
STDOUT.puts message
input = STDIN.gets.strip.to_s
if input.empty?
if fallback.empty?
request_user_input(message) # try again
else
fallback.to_s
end
else
input.to_s
end
end
Binary file added release/vim-bookmarks-0.1.0.zip
Binary file not shown.

0 comments on commit 5e356ce

Please sign in to comment.