Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37e4ba7
)
add the link point to the original file for combining the diff
author
wangdi
<wangdi>
Sun, 18 May 2003 12:17:07 +0000
(12:17 +0000)
committer
wangdi
<wangdi>
Sun, 18 May 2003 12:17:07 +0000
(12:17 +0000)
lustre/kernel_patches/scripts/patchfns
patch
|
blob
|
history
diff --git
a/lustre/kernel_patches/scripts/patchfns
b/lustre/kernel_patches/scripts/patchfns
index
92c0be1
..
78e494b
100644
(file)
--- 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()