Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=dbf9e8bf080adff4f19c13fa01b4b40f0eb0b48a

commit dbf9e8bf080adff4f19c13fa01b4b40f0eb0b48a
Author: Michel Hermier <[email protected]>
Date:   Wed Oct 10 10:53:16 2012 +0200

fpmdiff: make ouput more readable.

* Cosmetic change to reduce fpmdiff output to a list of changes by
showing only the changed files. Should be more easily readable
and pastable.

diff --git a/fpmdiff b/fpmdiff
index 6ec9100..3c7aa62 100755
--- a/fpmdiff
+++ b/fpmdiff
@@ -16,5 +16,5 @@ new=`mktemp`
pacman-g2 -Ql -p $1|sed 's/^[^ ]\+ //' > $old
pacman-g2 -Ql -p $2|sed 's/^[^ ]\+ //' > $new

-diff -u $old $new
+diff -U 0 $old $new | sed '1,2d;/^@/d'
rm -f $old $new
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to