3 # usage: 19commit 'log message' filename filename ...
6 use String::ShellQuote;
11 ( my $prefix = $dir ) =~ s(^/home/$USER/freeside/?)() or die $dir; #eventually from anywhere
13 my $desc = shell_quote(shift @ARGV); # -m
15 die "no files!" unless @ARGV;
21 "( cd /home/$USER/freeside2.1/$prefix; cvs update @ARGV ) && ",
22 "cvs diff -u @ARGV | ( cd /home/$USER/freeside2.1/$prefix; patch -p0 ) ",
23 " && ( ( cvs commit -m $desc @ARGV & ); ",
24 "( sleep 1;cd /home/$USER/freeside2.1/$prefix; cvs commit -m $desc @ARGV & ) )"