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

Re: [linux-lvm] LVM2 for kernels 2.4.20



On Sun, Jan 26, 2003 at 02:33:13PM +0100, Luca Berra wrote:
> for the hassle of patching i use this
> #!/bin/sh
> set -e
> pname=`basename $1`
> for i in $1/*.patch
> do
>        pnum=`basename $i`
>        pnum=${pnum%.patch}
>        patch -p1 -s -N -E -b -z .$pname.$pnum.orig < $i
>        for j in `find . -name \*.$pname.$pnum.orig`
>        do
>                if [ -f ${j%.$pnum.orig}.orig ]
>                then
>                        rm -f $j
>                else
>                        mv $j ${j%.$pnum.orig}.orig
>                fi
>        done
> done
> 
> to use cd into kernel source dir and run it vs /path/to/2.4.20-dm-7

I just

cat /tmp/2.4.20-dm-7/*.patch | patch -p1

- Joe



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