diff options
author | ivan <ivan> | 2011-07-21 17:53:55 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-07-21 17:53:55 +0000 |
commit | 4f5d50c6a24ff8a96c0bf25d67571c4142cbea8c (patch) | |
tree | ef6be9f465d3daea09893c477d7e0cae0b3f8d59 /bin/23add | |
parent | a07658a484990b848a88bbfe0c3251e11f3f593d (diff) |
2.3 branch
Diffstat (limited to 'bin/23add')
-rwxr-xr-x | bin/23add | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/bin/23add b/bin/23add new file mode 100755 index 000000000..3c99ed8f5 --- /dev/null +++ b/bin/23add @@ -0,0 +1,20 @@ +#!/usr/bin/perl + +use Cwd; +use String::ShellQuote; + +my $USER = $ENV{USER}; + +my $dir = getcwd; +( my $prefix = $dir ) =~ s(^/home/$USER/freeside/?)() or die $dir; #eventually from anywhere + +system join('', + #"cvs add @ARGV && ", + "cvs add @ARGV ; ", + "( for file in @ARGV; do ", + "cp -i \$file /home/$USER/freeside2.3/$prefix/`dirname \$file`;", + "done ) && ", + "cd /home/$USER/freeside2.3/$prefix/ && ", + "cvs add @ARGV" +); + |