2
exec ruby -w -x $0 ${1+"$@"} # -*- ruby -*-
5
# $Id: cvsdeltarun.rb,v 1.9 2004/02/17 02:33:01 jeugenepace Exp $
7
# cvsdelta: summarizes CVS changes and executes the appropriate commands
9
require './cvsdeltaopt'
12
$stdout.sync = true # unbuffer output
13
$stderr.sync = true # unbuffer output
14
$stdin.sync = true # unbuffer input
20
options = CVSDeltaOptions.new($PACKAGE, $VERSION)
23
Log.verbose = options.verbose
24
# Log.output = "/tmp/cvsdelta.log." + Process.pid.to_s
25
Log.set_widths(15, -5, -35)
27
# we should be running this from a CVS'ed directory
28
unless File.exists?("CVS")
29
$stderr.print "this directory does not appear to be part of a CVS project\n"
32
delta = CVSDelta.new(options, ARGV)
34
delta.print_change_summary
37
exec = CVSExecute.new(delta.added, delta.deleted)
38
exec.confirm = options.confirm
42
# show only the message, not the stack trace:
43
$stderr.puts "error: #{e}"