[Pkg-kde-commits] rev 1471 - scripts

Adeodato Simó adeodato at costa.debian.org
Thu Aug 18 13:14:14 UTC 2005


Author: adeodato
Date: 2005-08-18 13:14:13 +0000 (Thu, 18 Aug 2005)
New Revision: 1471

Added:
   scripts/filter-buildprep
Log:
Script to filter a buildprep patch with, so further updates to it
produce less clobbered svn diffs.

Please use!


Added: scripts/filter-buildprep
===================================================================
--- scripts/filter-buildprep	2005-08-18 00:41:06 UTC (rev 1470)
+++ scripts/filter-buildprep	2005-08-18 13:14:13 UTC (rev 1471)
@@ -0,0 +1,26 @@
+#!/usr/bin/env perl
+
+# $Id$
+# Script to filter a buildprep patch with, so further updates to it
+# produce less clobbered svn diffs.
+# Removes ^diff lines, and the first element from the path, setting
+# DPATCHLEVEL to 0.
+
+# (C) 2005, Adeodato Simó <asp16 at alu.ua.es>
+# GPL'ed code follows.
+
+use strict;
+use warnings;
+
+print "#DPATCHLEVEL=0\n";
+print "# vi: ft=diff\n";
+
+while (<>) {
+    if (/^diff /) {
+    	next;
+    } elsif (/^(---|\Q+++\E) /) {
+    	s# [^/]+/([^\t]+)\t.*# $1#;
+    }
+
+    print;
+}


Property changes on: scripts/filter-buildprep
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:keywords
   + Id




More information about the Pkg-kde-commits mailing list