[w3m-dev 03299] remove file before copying (install-sh)

* install-sh: remove file before copying
From: Hironori SAKAMOTO <h-saka@lsi.nec.co.jp>
This commit is contained in:
Fumitoshi UKAI
2002-09-09 13:51:46 +00:00
parent c168a455ab
commit a9a1915238
2 changed files with 10 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2002-09-09 Hironori SAKAMOTO <h-saka@lsi.nec.co.jp>
* [w3m-dev 03299] remove file before copying (install-sh)
* install-sh: remove file before copying
2002-09-09 Hironori SAKAMOTO <h-saka@lsi.nec.co.jp> 2002-09-09 Hironori SAKAMOTO <h-saka@lsi.nec.co.jp>
* [w3m-dev 03298] [ -f instead of [ -e (configure) * [w3m-dev 03298] [ -f instead of [ -e (configure)
@@ -3757,4 +3762,4 @@
* release-0-2-1 * release-0-2-1
* import w3m-0.2.1 * import w3m-0.2.1
$Id: ChangeLog,v 1.422 2002/09/09 13:50:44 ukai Exp $ $Id: ChangeLog,v 1.423 2002/09/09 13:51:46 ukai Exp $

View File

@@ -1,5 +1,5 @@
#! /bin/sh #! /bin/sh
# $Id: install-sh,v 1.3 2001/12/17 15:42:44 ukai Exp $ # $Id: install-sh,v 1.4 2002/09/09 13:51:46 ukai Exp $
set -e set -e
@@ -38,6 +38,9 @@ else
dest=$2 dest=$2
fi fi
if [ -f $dest ]; then
rm -f $dest
fi
cp $file $dest cp $file $dest
if [ -n "$strip" ]; then if [ -n "$strip" ]; then
$strip $dest $strip $dest