]> git.ipfire.org Git - people/ms/strongswan.git/blob - packaging/utils/kerneldiff
(no commit message)
[people/ms/strongswan.git] / packaging / utils / kerneldiff
1 #!/bin/sh
2
3 # wander through a FreeSWAN linux directory, comparing each file to
4 # a corresponding file in the argument $KERNELSRC directory, creating
5 # a diff that can be used to update the FreeSWAN source tree.
6 #
7 # This script is useful if you have used "make kernelpatch" to patch
8 # a kernel, and then had to edit the source code in the kernel tree.
9 #
10 # $Id: kerneldiff,v 1.1 2004/03/15 20:35:27 as Exp $
11 #
12
13 KERNELSRC=$1
14 shift
15
16 (cd linux && find . -type f -print) | grep -v CVS | egrep -v './Makefile' | while read file
17 do
18 base=`basename $file`
19 case $base in
20 .cvsignore) ;;
21 .*.o.flags) ;;
22 *.o) ;;
23 *~) ;;
24 *.$patchname.patch) ;;
25 *.patch) ;;
26 *.orig) ;;
27 *.rej) ;;
28 version.c);;
29 *) diff -u linux/$file $KERNELSRC/$file ;;
30 esac
31 done
32
33 exit 0
34
35