From ee45b4511dbaee32ddc12c63afd2568bab5c358d Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Mon, 17 Mar 2014 08:45:16 +0100 Subject: [PATCH] fetching a file from the Internet must be atomar --- tools/htdocs/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/htdocs/Makefile b/tools/htdocs/Makefile index e152852..bbb6ba0 100644 --- a/tools/htdocs/Makefile +++ b/tools/htdocs/Makefile @@ -69,10 +69,12 @@ ${JQUERY_FILE}: rm -f $@.new ${JQUERY_JSON_FILE}: - curl -sSf ${JQUERY_JSON_URL} -o $@ + curl -sSf ${JQUERY_JSON_URL} -o $@.tmp + mv -f $@.tmp $@ ${HANDLEBARS_FILE}: - curl -sSf ${HANDLEBARS_URL} -o $@ + curl -sSf ${HANDLEBARS_URL} -o $@.tmp + mv -f $@.tmp $@ ${PP2_FILE}: curl -sSf "${PP2_URL}" -o $@.tmp -- 1.7.10.4