]> mj.ucw.cz Git - libucw.git/commitdiff
added yet another utility for processing cvs logs
authorRobert Spalek <robert@ucw.cz>
Fri, 18 Feb 2005 16:29:12 +0000 (16:29 +0000)
committerRobert Spalek <robert@ucw.cz>
Fri, 18 Feb 2005 16:29:12 +0000 (16:29 +0000)
build/freelog [new file with mode: 0755]

diff --git a/build/freelog b/build/freelog
new file mode 100755 (executable)
index 0000000..6a75ac9
--- /dev/null
@@ -0,0 +1,22 @@
+#!/usr/bin/perl
+# A simple tool to prune the output of cvslog for the free version.
+# (c) 2005 Robert Spalek <robert@ucw.cz>
+
+@lines = ();
+$print = 1;
+$" = "";
+while (<>)
+{
+  if (/^###/)
+  {
+    $print and print "@lines";
+    @lines = ();
+    $print = 1;
+  }
+  elsif        (/^\s*\* (|.*\/)(shepherd|reapd|mux|msword|excel|centrum)\//)
+  {
+    $print = 0;
+  }
+  $lines[$#lines+1] = $_;
+}
+$print and print "@lines";