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 |
---|
4 | LINUXPATH=/home/djm/linux-2.6.13 |
---|
5 | OUTFILE=/tmp/linux-xen-diffs |
---|
6 | wd=$PWD |
---|
7 | for i in include/asm-ia64/linux-xen/asm include/asm-ia64/linux-xen/linux arch/ia64/linux-xen |
---|
8 | do |
---|
9 | echo '#############' $i '#############' |
---|
10 | cd $i |
---|
11 | ln -s $LINUXPATH xxx |
---|
12 | cat README.origin | grep -v '^#' | grep -v '^[ ]*$' | \ |
---|
13 | sed -e 's/[ ]*-> linux/ xxx/' | \ |
---|
14 | sed -e 's/^/diff -Naur /' | bash |
---|
15 | rm -f xxx |
---|
16 | cd $wd |
---|
17 | done > $OUTFILE |
---|
18 | echo 'Total lines in patch:' `cat $OUTFILE | grep -v '########' | wc -l` |
---|
19 | echo 'Approx. changes in patch:' `cat $OUTFILE | grep -v '########' | \ |
---|
20 | grep -- '-#if' | wc -l` |
---|
21 | echo 'Total lines added by patch:' `cat $OUTFILE | grep -v '########' | \ |
---|
22 | grep -- '^-' | wc -l` |
---|
23 | echo '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.