mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Some handy scripts if you are using quilt for kernel
@ 2003-04-30 16:41 Pavel Machek
  0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2003-04-30 16:41 UTC (permalink / raw)
  To: kernel list

Hi!

...unfortunately it depends on on-disk layout, so it is really rather
specialized. First allows to patch to the next Linus kernel with all
patches applied:

quilt-update-kernel:
#
# Run from .pc directory
for A in *; do ( cd $A; find . | ( while true; do read B || exit; cp /usr/src/clean/$B $B; done ); ); done


Second one shows you "what have you done since last quilt refresh". It
takes time.

quilt-diff:
#!/bin/bash
rm -rf /usr/src/tmp/linux
cp -al /usr/src/clean.2.5 /usr/src/tmp/linux
cat /usr/src/linux/patches/series | while true; do
    read PATCHNAME || exit
    echo Processing $PATCHNAME
    cd /usr/src/tmp/linux
    cat /usr/src/linux/patches/$PATCHNAME | patch -Efsp1
done
echo Diffing tree
diff-tree /usr/src/tmp/linux /usr/src/linux | tee /tmp/delme.quilt-diff

Oh and then my diff-tree script:

diff-tree:
#!/bin/bash
diff -ur -x '.dep*' -x '.hdep*' -x '*.[oas]' -x '*~' -x '#*' -x '*CVS*' -x '*.orig' -x '*.rej' -x '*.old' -x '.menu*' -x asm -x local.h -x 'System.map' -x autoconf.h -x compile.h -x version.h -x .version -x defkeymap.c -x uni_hash.tbl -x zImage -x vmlinux -x vmlinuz -x TAGS -x bootsect -x '*RCS*' -x conmakehash -x map -x build -x build -x configure -x '*target*' -x '*.flags' -x '*.bak' -x '*.cmd' $*

I hope its usefull for someone.

								Pavel
-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-30 16:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-30 16:41 Some handy scripts if you are using quilt for kernel Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®