3 # usage: 32commit '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/freeside3/$prefix; git pull ) && ",
22 "( cd /home/$USER/freeside2.3/$prefix; git pull ) && ",
23 "git diff -u @ARGV | ( cd /home/$USER/freeside3/$prefix; patch -p1 ) ",
24 " && git diff -u @ARGV | ( cd /home/$USER/freeside2.3/$prefix; patch -p1 ) ",
25 " && ( ( git pull && git commit -m $desc @ARGV && git push); ",
26 "( cd /home/$USER/freeside3/$prefix; git commit -m $desc @ARGV && git push); ",
27 "( cd /home/$USER/freeside2.3/$prefix; git commit -m $desc @ARGV && git push) )"