From a9a19152387cd53fd7b52c46fac8cd760e5e094d Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Mon, 9 Sep 2002 13:51:46 +0000 Subject: [w3m-dev 03299] remove file before copying (install-sh) * install-sh: remove file before copying From: Hironori SAKAMOTO --- ChangeLog | 7 ++++++- install-sh | 5 ++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c3ceb0f..ea7ba6d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-09-09 Hironori SAKAMOTO + + * [w3m-dev 03299] remove file before copying (install-sh) + * install-sh: remove file before copying + 2002-09-09 Hironori SAKAMOTO * [w3m-dev 03298] [ -f instead of [ -e (configure) @@ -3757,4 +3762,4 @@ * release-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 $ diff --git a/install-sh b/install-sh index 30d4f7c..890de2f 100755 --- a/install-sh +++ b/install-sh @@ -1,5 +1,5 @@ #! /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 @@ -38,6 +38,9 @@ else dest=$2 fi +if [ -f $dest ]; then + rm -f $dest +fi cp $file $dest if [ -n "$strip" ]; then $strip $dest -- cgit v1.2.3