Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (26 sloc) 0.694 kb
desc 'Make all files use UNIX (\n) line endings'
task :fix_cr_lf do
files = FileList['**/*']
files.each do |f|
next if File.directory?(f)
s = IO.read(f)
s.gsub!(/\r?\n/, "\n")
File.open(f, "w") { |io| io.write(s) }
end
end
desc 'Release'
task :release do
version = IO.read('pom.xml').match(/<version>(.*)<\/version>/)[1]
Dir.chdir('cuke4duke') do
sh %{rake gemspec}
end
sh %{git commit -a -m "Release #{version}"}
sh %{git tag -a "v#{version}" -m "Release #{version}"}
Dir.chdir('cuke4duke') do
sh %{rake gemcutter:release}
sh %{MAVEN_OPTS="-Xmx512m" mvn site:site site:deploy}
end
sh %{mvn deploy}
sh %{git push}
sh %{git push --tags}
end
Jump to Line
Something went wrong with that request. Please try again.