Module: xenomai-jki Branch: queues/ftrace Commit: e6cd35e5834b1a42fbfc35458231bd9683acba00 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=e6cd35e5834b1a42fbfc35458231bd9683acba00
Author: Jan Kiszka <[email protected]> Date: Fri Nov 26 17:47:15 2010 +0100 prepare-kernel: Only purge links from target directories 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 <[email protected]> --- 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 8d4d118..02e80ff 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 _______________________________________________ Xenomai-git mailing list [email protected] https://mail.gna.org/listinfo/xenomai-git
