Module: xenomai-jki Branch: queues/ftrace Commit: b74f34dc78fad9bfb6ae13bd0b21a753c809036f URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=b74f34dc78fad9bfb6ae13bd0b21a753c809036f
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 7bb9741..53f398b 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
