[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Quilt-dev] Usefull scripts for kernel development (and more?)
From: |
Pavel Machek |
Subject: |
[Quilt-dev] Usefull scripts for kernel development (and more?) |
Date: |
Wed, 5 Nov 2003 16:56:56 +0100 |
User-agent: |
Mutt/1.5.4i |
Hi!
If find these usefull when developing kernel. It needs having "clean"
tree along working tree.
#!/bin/bash
#
# quilt-diff
#
# Copyright 2003 Pavel Machek <address@hidden>, GPL
#
# This needs "clean" tree besides working tree, and lists all changes which are
not yet
# in patches/. (Like when you forgot to quilt refresh, or when you did changes
to file
# that was not quilt-added).
#
rm -rf /usr/src/tmp/linux
cp -al /usr/src/clean.2.5 /usr/src/tmp/linux
# Prevent bad disaster in case of unwritable /usr/src/tmp
cd /tmp
cat /usr/src/linux/patches/series | while read PATCHNAME; do
echo "Processing ${PATCHNAME}"
cd /usr/src/tmp/linux
cat "/usr/src/linux/patches/${PATCHNAME}" | patch -Efsp1
done
echo Diffing tree
cd /usr/src
time diff-tree tmp/linux linux | tee /tmp/delme.quilt-diff
This is kind of hack....
#!/bin/sh
#
# quilt-update-kernel
#
# Copyright 2003 Pavel Machek <address@hidden>, GPL
#
# This needs "clean" tree besides working tree, and it needs
# each file to be modified with at most patch.
# Run this after you patched your trees with vendor patch without
# doing quilt pop ; patch ; quilt push sequence. It is dirty hack.
# Run from .pc directory
#
for PATCH in *; do
(
cd "${PATCH}"
find . | while read FILE; do
cp "/usr/src/clean/${FILE}" "${FILE}"
done
)
done
Hope these are usefull to someone...
Pavel
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Quilt-dev] Usefull scripts for kernel development (and more?),
Pavel Machek <=