Permalink
Browse files

Update cake file

  • Loading branch information...
1 parent 4d7c3fb commit 787b37b835a976ab68740bd332b0ffa99b55cba5 @seaweedchan committed Oct 4, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 Cakefile
View
@@ -20,12 +20,17 @@ task 'build', (options) ->
option '-v', '--version [VERSION]', 'Release a new version.'
-task 'release', (options) ->
+task 'new', (options) ->
{version} = options
return log 'ERROR! No version provided.' unless version
data = fs.readFileSync SCRIPT, 'utf8'
fs.writeFileSync SCRIPT, data.replace /(\/\s@version\s+|VERSION\s+=\s\")[\d\.]+/g, "$1#{version}", 'utf8', (err) ->
throw err if err
+
+task 'upgrade', (options) ->
+ {version} = options
+ return log 'ERROR! No version provided.' unless version
+ data = fs.readFileSync SCRIPT, 'utf8'
exec "git tag -a #{version} -m '#{version}' && git tag -af stable -m '#{version}' && git push --tags"
task 'update', (options) ->

0 comments on commit 787b37b

Please sign in to comment.