[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Script to generate diffs between linux-xen subdirs and real linux



# HG changeset patch
# User djm@xxxxxxxxxxxxxxx
# Node ID 9e4fb055be8093d9f1df96137397f2f05d44d2e9
# Parent  6bf96d977ecc6b65f9c9b08ff0aace51fb37d9da
Script to generate diffs between linux-xen subdirs and real linux

diff -r 6bf96d977ecc -r 9e4fb055be80 xen/arch/ia64/tools/linux-xen-diffs
--- /dev/null   Thu Sep 15 16:54:16 2005
+++ b/xen/arch/ia64/tools/linux-xen-diffs       Fri Sep 16 22:48:44 2005
@@ -0,0 +1,25 @@
+# generate a patch for all the files in linux-xen directories
+# (these are files that are identical to linux except for a few small changes)
+# run in the main xen directory
+LINUXPATH=/home/djm/linux-2.6.13
+OUTFILE=/tmp/linux-xen-diffs
+wd=$PWD
+for i in include/asm-ia64/linux-xen/asm include/asm-ia64/linux-xen/linux 
arch/ia64/linux-xen
+do
+echo '#############' $i '#############'
+cd $i
+ln -s $LINUXPATH xxx
+cat README.origin | grep -v '^#' | grep -v '^[         ]*$' | \
+       sed -e 's/[     ]*-> linux/ xxx/' | \
+       sed -e 's/^/diff -Naur /' | bash
+rm -f xxx
+cd $wd
+done > $OUTFILE
+echo 'Total lines in patch:' `cat $OUTFILE | grep -v '########' | wc -l`
+echo 'Approx. changes in patch:' `cat $OUTFILE | grep -v '########' | \
+       grep -- '-#if' | wc -l`
+echo 'Total lines added by patch:' `cat $OUTFILE | grep -v '########' | \
+       grep -- '^-' | wc -l`
+echo 'Total non-conditional-compile lines added by patch:' \
+       `cat $OUTFILE | grep -v '########' | grep -- '^-' | \
+       egrep -v '^-#if|^-#else|^-#endif' | wc -l`

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.