fetching a file from the Internet must be atomar
[mkws-moved-to-github.git] / tools / htdocs / Makefile
index 81b8af3..bbb6ba0 100644 (file)
@@ -10,8 +10,6 @@ JQUERY_URL=   http://code.jquery.com/jquery-1.10.0.min.js
 #JQUERY_URL=   http://code.jquery.com/jquery-1.9.1.min.js
 #JQUERY_URL=   http://code.jquery.com/jquery-1.8.3.min.js
 #JQUERY_URL=   http://code.jquery.com/jquery-1.7.2.min.js
-#JQUERY_URL=   http://code.jquery.com/jquery-1.6.4.min.js
-#JQUERY_URL=   http://code.jquery.com/jquery-1.4.4.min.js
 
 JQUERY_UI_URL= http://code.jquery.com/ui/1.10.3/jquery-ui.js
 #JQUERY_UI_URL=        http://code.jquery.com/ui/1.8.0/jquery-ui.min.js
@@ -71,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