From d6f47cc60c53a102413b1fd1762e7606ddf0bd03 Mon Sep 17 00:00:00 2001 From: Gunter Knauf Date: Sat, 9 Feb 2008 15:07:35 +0000 Subject: 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. --- Makefile.am | 2 +- Makefile.dist | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- cgit v1.2.3