Sha256: 7965740310cabbb10241f274ad16567b7665c5995ebd686af8334ba34a6c9be0
Contents?: true
Size: 811 Bytes
Versions: 14
Compression:
Stored size: 811 Bytes
Contents
#!/usr/bin/ruby DEBUG = false URI = "-dtransami@cvs.suby.berlios.de:/cvsroot/suby" cmd = nil case ARGV[0] when 'checkout', 'co' if ARGV[1] and ARGV[1] != '' cmd = %Q{cvs -z3 #{URI} co "#{ARGV[1]}"} else puts "no module given" cmd = nil end when 'commit' if ARGV[1] and ARGV[1] != '' cmd = %Q{cvs -z3 #{URI} commit -m "#{ARGV[1]}"} else puts "no commit message given" cmd = nil end when 'update' cmd = %Q{cvs -z3 #{URI} update} when 'add' if ARGV[1] cmd = %Q{cvs -z3 #{URI} add #{ARGV[1..-1].join(' ')}} else puts "no files given to add" cmd = nil end when 'remove' if ARGV[1] cmd = %Q{cvs -z3 #{URI} remove #{ARGV[1..-1].join(' ')}} else puts "no file given to remove" cmd = nil end end if DEBUG puts cmd elsif cmd `#{cmd}` end
Version data entries
14 entries across 14 versions & 1 rubygems