From fcf125e924d3b9926460d727f0f5ad94ad2499bc Mon Sep 17 00:00:00 2001 From: wangdi Date: Sun, 18 May 2003 12:17:07 +0000 Subject: [PATCH] add the link point to the original file for combining the diff --- lustre/kernel_patches/scripts/patchfns | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lustre/kernel_patches/scripts/patchfns b/lustre/kernel_patches/scripts/patchfns index 92c0be1..78e494b 100644 --- a/lustre/kernel_patches/scripts/patchfns +++ b/lustre/kernel_patches/scripts/patchfns @@ -179,19 +179,23 @@ copy_file_to_bup() file=$1 patch=$2 bup="$file"~"$patch" + orig="$file"~"orig" + src_dir=`pwd` if [ -e $bup ] then echo "Cannot install file $file in patch $patch: backup $bup exists" exit 1 fi - if [ -e $file ] then cp -p $file "$file"~"$patch" else echo "file $file appears to be newly added" fi + if [ ! -L "$orig" ]; then + ln -s "$src_dir/$bup" $orig + fi } install_file_in_patch() -- 1.8.3.1