Simple accelerator for repeated ssh(1) authorization on cvs(1) mass "add".
authorshort <>
Tue, 29 Nov 2005 09:07:16 +0000 (09:07 +0000)
committershort <>
Tue, 29 Nov 2005 09:07:16 +0000 (09:07 +0000)
 - Maybe already obsoleted by ssh_config(5) "ControlMaster".

bin/cvsbranchdiff-collapse [new file with mode: 0755]

diff --git a/bin/cvsbranchdiff-collapse b/bin/cvsbranchdiff-collapse
new file mode 100755 (executable)
index 0000000..3f59e18
--- /dev/null
@@ -0,0 +1,14 @@
+#! /usr/bin/perl
+#
+# $Id$
+
+
+use strict;
+use warnings;
+
+undef $/;
+$_=<>;
+while (s/^(cp -p .+); cvs add -kk (.+)\n((?:cp -p .+\n)*)(cp -p .*); cvs add -kk (.+)$/$1\n$3$4; cvs add -kk $2 $5/gm) {
+       print STDERR ".\n";
+}
+print;