From: Gunter Knauf Date: Sat, 9 Feb 2008 15:07:35 +0000 (+0000) Subject: make use of mv's backup feature so that calling the ca-bundle target more than once... X-Git-Tag: curl-7_18_1~139 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6f47cc60c53a102413b1fd1762e7606ddf0bd03;p=curl make use of mv's backup feature so that calling the ca-bundle target more than once will never fail; ignore error which can occure if for whatever reason there's no orignial ca-bundle.crt to rename. --- diff --git a/Makefile.am b/Makefile.am index 7463efa97..139bb909e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -134,5 +134,5 @@ uninstall-hook: ca-bundle: lib/mk-ca-bundle.pl @echo "generate a fresh ca-bundle.crt" - @mv lib/ca-bundle.crt lib/ca-bundle.crt.old + @-mv -vbVt lib/ca-bundle.crt lib/ca-bundle.crt.old @perl $< -l -u lib/ca-bundle.crt diff --git a/Makefile.dist b/Makefile.dist index 497898413..1bf67e44f 100644 --- a/Makefile.dist +++ b/Makefile.dist @@ -263,7 +263,7 @@ vc8: ca-bundle: lib/mk-ca-bundle.pl @echo "generate a fresh ca-bundle.crt" - @mv -v lib/ca-bundle.crt lib/ca-bundle.crt.old + @-mv -vbVt lib/ca-bundle.crt lib/ca-bundle.crt.old @perl $< -l -u lib/ca-bundle.crt