From: Wolfram Schneider Date: Mon, 17 Mar 2014 07:45:16 +0000 (+0100) Subject: fetching a file from the Internet must be atomar X-Git-Tag: 1.0.0~1318^2~1 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=ee45b4511dbaee32ddc12c63afd2568bab5c358d fetching a file from the Internet must be atomar --- 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