]>
git.ipfire.org Git - people/ms/strongswan.git/blob - packaging/utils/kernel.patch.gen.sh
3 # RCSID $Id: kernel.patch.gen.sh,v 1.1 2004/03/15 20:35:27 as Exp $
6 kernelsrc
=/usr
/src
/linux
7 [ "$1~" = "~" ] || kernelsrc
=$1
9 # clean out destination file for all patch
10 #echo "">$patchdir/all
12 # find files to patch and loop
13 for i
in `find . -name '*.preipsec'`
16 # strip off '.preipsec' suffix
19 # strip off './' prefix
23 #diff -u $i $j >>$patchdir/all
25 # convert '/' in filename to '.' to avoid subdirectories
26 sed -e 's/\//\./g' << EOI > /tmp/t
32 # *with* path from source root
33 #echo do diff -u $i $j '>' $patchdir/$l
35 echo "RCSID \$Id: kernel.patch.gen.sh,v 1.1 2004/03/15 20:35:27 as Exp $" >$patchdir/$l
36 diff -u $i $j >>$patchdir/$l
41 # $Log: kernel.patch.gen.sh,v $
42 # Revision 1.1 2004/03/15 20:35:27 as
43 # added files from freeswan-2.04-x509-1.5.3
45 # Revision 1.6 2002/04/25 17:04:16 mcr
46 # resurrected kernel.patch.gen.sh
48 # Revision 1.4 1999/04/06 04:54:30 rgb
49 # Fix/Add RCSID Id: and Log: bits to make PHMDs happy. This includes