projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aeda4c5
)
minstall: Always remove destination file before (re-)creating it.
author
Michel Dänzer
<michel@tungstengraphics.com>
Mon, 11 Dec 2006 16:36:35 +0000
(17:36 +0100)
committer
Zou Nan hai
<nanhai.zou@intel.com>
Wed, 13 Dec 2006 21:25:42 +0000
(13:25 -0800)
This avoids issues with overwriting files that are being used.
(cherry picked from
d71a5647a3ed4aadd46edfa8a031ffc87d88c5f7
commit)
bin/minstall
patch
|
blob
|
history
diff --git
a/bin/minstall
b/bin/minstall
index 9795263f9f17a07b29bc3f55a3f68987f648c2d6..210c2758d3700093e8fb52846eb9515ebd0efe9c 100755
(executable)
--- a/
bin/minstall
+++ b/
bin/minstall
@@
-65,6
+65,7
@@
if [ $# -ge 2 ] ; then
elif [ -f "$FILE" ] ; then
#echo "$FILE" is a regular file
+ $RM "$DEST/$FILE"
cp "$FILE" "$DEST"
if [ $MODE ] ; then
FILE=`basename "$FILE"`