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

Version Path
reap-4.0 dev/suby-cvs.rb
reap-4.0.0 dev/suby-cvs.rb
reap-4.3.2 note/suby-cvs.rb
reap-4.3.3 note/suby-cvs.rb
reap-4.4.0 doc/note/suby-cvs.rb
reap-4.4.1 doc/note/suby-cvs.rb
reap-4.5.0 doc/note/suby-cvs.rb
reap-4.5.1 doc/note/suby-cvs.rb
reap-4.5.2 doc/note/suby-cvs.rb
reap-5.0.0 doc/note/suby-cvs.rb
reap-5.10.10 dev/suby-cvs.rb
reap-6.0.1 forge/reference/suby-cvs.rb
reap-6.0.2 forge/reference/suby-cvs.rb
reap-4.3.4 doc/note/suby-cvs.rb