source: trunk/packages/xen-3.1/xen-3.1/xen/arch/ia64/tools/linux-xen-diffs @ 34

Last change on this file since 34 was 34, checked in by hartmans, 18 years ago

Add xen and xen-common

File size: 993 bytes
Line 
1# generate a patch for all the files in linux-xen directories
2# (these are files that are identical to linux except for a few small changes)
3# run in the main xen directory
4LINUXPATH=/home/djm/linux-2.6.13
5OUTFILE=/tmp/linux-xen-diffs
6wd=$PWD
7for i in include/asm-ia64/linux-xen/asm include/asm-ia64/linux-xen/linux arch/ia64/linux-xen
8do
9echo '#############' $i '#############'
10cd $i
11ln -s $LINUXPATH xxx
12cat README.origin | grep -v '^#' | grep -v '^[  ]*$' | \
13        sed -e 's/[     ]*-> linux/ xxx/' | \
14        sed -e 's/^/diff -Naur /' | bash
15rm -f xxx
16cd $wd
17done > $OUTFILE
18echo 'Total lines in patch:' `cat $OUTFILE | grep -v '########' | wc -l`
19echo 'Approx. changes in patch:' `cat $OUTFILE | grep -v '########' | \
20        grep -- '-#if' | wc -l`
21echo 'Total lines added by patch:' `cat $OUTFILE | grep -v '########' | \
22        grep -- '^-' | wc -l`
23echo 'Total non-conditional-compile lines added by patch:' \
24        `cat $OUTFILE | grep -v '########' | grep -- '^-' | \
25        egrep -v '^-#if|^-#else|^-#endif' | wc -l`
Note: See TracBrowser for help on using the repository browser.