Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 22 lines (16 sloc) 587 Bytes
#!/usr/bin/env ruby -w
# Probably a better way to do this... should also make an svn tag or something
version = ARGV[0]
if version.nil?
puts "Usage: #{__FILE__} [version]"
exit
end
# TODO
# cd ruby (into the /ruby code directory in the project)
# rdoc --op ../www --m README lib LICENSE README
# cd www
# scp -r * username@rubyforge.org:/var/www/gforge-projects/ruby-nxt
# gem build ruby-nxt.gemspec
system "rm ruby/log/*.log"
system "zip -qr ruby-nxt-#{version}.zip ruby/* -x \\*.svn*"
system "tar --exclude '*/.*' --exclude 'LICENSE.*' -zc ruby -f ruby-nxt-#{version}.tar.gz"