mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: kernel list <linux-kernel@vger.kernel.org>
Subject: Some handy scripts if you are using quilt for kernel
Date: Wed, 30 Apr 2003 18:41:53 +0200	[thread overview]
Message-ID: <20030430164153.GA7467@elf.ucw.cz> (raw)

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?]

                 reply	other threads:[~2003-04-30 16:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030430164153.GA7467@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®