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:
1621d91
)
removing the link of orignal file
author
wangdi
<wangdi>
Sun, 18 May 2003 12:15:19 +0000
(12:15 +0000)
committer
wangdi
<wangdi>
Sun, 18 May 2003 12:15:19 +0000
(12:15 +0000)
lustre/kernel_patches/scripts/rpatch
patch
|
blob
|
history
diff --git
a/lustre/kernel_patches/scripts/rpatch
b/lustre/kernel_patches/scripts/rpatch
index
d6d9950
..
636ff5f
100755
(executable)
--- a/
lustre/kernel_patches/scripts/rpatch
+++ b/
lustre/kernel_patches/scripts/rpatch
@@
-21,7
+21,13
@@
do_remove()
{
FILES=$(cat $P/pc/$1.pc)
for file in $FILES ; do
- if [ -f "$file"~"$1" ]; then
+ base_dir=`pwd`
+ if [ -L "$file"~"orig" ]; then
+ if [ `readlink "$file"~"orig"` = "$base_dir/""$file"~"$1" ]; then
+ rm -rf "$file"~"orig"
+ fi
+ fi
+ if [ -f "$file"~"$1" ]; then
mv -f "$file"~"$1" "$file"
else
rm -f "$file"