From: Jan Kiszka <jan.kiszka@siemens.com>
To: Xenomai <xenomai@xenomai.org>
Subject: [Xenomai] [PATCH] prepare-kernel: Only purge links from target directories
Date: Wed, 09 Jan 2013 14:47:55 +0100 [thread overview]
Message-ID: <50ED750B.4010606@siemens.com> (raw)
Only remove files from the target directory of patch_link if they are
missing in Xenomai AND are actually symbolic links. This is required
when merging Xenomai directories into non-empty kernel dirs.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
This is not required for the current patch workload but helps us in 2.6
with integrating ftrace (we patch into include/trace/events there).
Would reduce our queue length by one if this could be merged
nevertheless.
scripts/prepare-kernel.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/prepare-kernel.sh b/scripts/prepare-kernel.sh
index 36f9a4a..5f4043a 100755
--- a/scripts/prepare-kernel.sh
+++ b/scripts/prepare-kernel.sh
@@ -103,7 +103,7 @@ patch_link() {
find . $recursive_opt \( $directorytype_opt \
$link_makefiles_opt -name $config_file -o -name '*.[chS]' \) |
while read f; do
- if test ! -e $xenomai_root/$target_dir/$f; then rm -Rf $f; fi
+ if test -L $f -a ! -e $xenomai_root/$target_dir/$f; then rm -Rf $f; fi
done
fi
--
1.7.3.4
next reply other threads:[~2013-01-09 13:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-09 13:47 Jan Kiszka [this message]
2013-01-12 17:12 ` [Xenomai] [PATCH] prepare-kernel: Only purge links from target directories Gilles Chanteperdrix
2013-01-13 11:17 ` Jan Kiszka
2013-01-13 11:50 ` Gilles Chanteperdrix
2013-01-13 11:54 ` Jan Kiszka
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=50ED750B.4010606@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.