From 017669dc403d2ff81073dea9007596e376e7b053 Mon Sep 17 00:00:00 2001 From: codemastr Date: Wed, 10 Mar 2004 18:42:47 +0000 Subject: [PATCH] Removed cp -f from curlinstall (non-portable) --- Changes | 1 + curlinstall | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 15960c899..0581ccb3c 100644 --- a/Changes +++ b/Changes @@ -3028,3 +3028,4 @@ seen. gmtime warning still there - Made some changes to the curlinstall script to make it work with c-ares-1.0.0 also updated INSTALL.REMOTEINC - Fixed a typo in the /credits +- Made it so curlinstall doesn't use cp -f since it is nonportable diff --git a/curlinstall b/curlinstall index 08cdc226d..5036e6c6b 100755 --- a/curlinstall +++ b/curlinstall @@ -38,7 +38,10 @@ while [ -z "$SSLFLAG" ] ; do esac done if [ -f $HOME/ares/lib/libcares.a ] ; then - cp -f $HOME/ares/lib/libcares.a $HOME/ares/lib/libares.a + if [ -f $HOME/ares/lib/libares.a ] ; then + rm -f $HOME/ares/lib/libares.a + fi + cp $HOME/ares/lib/libcares.a $HOME/ares/lib/libares.a fi echo "Installing libcurl" @@ -48,7 +51,10 @@ CPPFLAGS="-I$HOME/ares/include" ./configure --prefix=$HOME/curl --disable-shared cp -R $HOME/ares/lib ares make && make install -cp -f $HOME/ares/lib/libares.a $HOME/curl/lib +if [ -f $HOME/curl/lib/libares.a ] ; then + rm -f $HOME/curl/lib/libares.a +fi +cp $HOME/ares/lib/libares.a $HOME/curl/lib cd $save_PWD