summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2005-11-15 09:51:43 +0000
committerPeter Palfrader <peter@palfrader.org>2005-11-15 09:51:43 +0000
commit01e7f9a20c432a93f1e987fdc3ef5c5aee8a1043 (patch)
tree3ca11050f8e7fa9f66f8d79daa9fa39d54294b7b /web
parentd6eecdedd08a2e64639b69fc0ade5a9fe8d6a786 (diff)
Copy tor with links
Diffstat (limited to 'web')
-rw-r--r--web/tor-running-routers/Makefile.am22
1 files changed, 17 insertions, 5 deletions
diff --git a/web/tor-running-routers/Makefile.am b/web/tor-running-routers/Makefile.am
index fbde9df..4cc998c 100644
--- a/web/tor-running-routers/Makefile.am
+++ b/web/tor-running-routers/Makefile.am
@@ -6,8 +6,14 @@ include $(top_srcdir)/Makefile.common
doc_DATA = result/index.html
result/index.html: $(TOR_RUNNING_ROUTERS_BASE)/result/index.html
- rm -rf result
- cp -a $(TOR_RUNNING_ROUTERS_BASE)/result result
+# rm -rf result
+# cp -a $(TOR_RUNNING_ROUTERS_BASE)/result result
+# rsync -ra --delete $(TOR_RUNNING_ROUTERS_BASE)/result/ result
+ rm -rf result.new
+ cp -al $(TOR_RUNNING_ROUTERS_BASE)/result/ result.new
+ mv result result.old
+ mv result.new result
+ rm -rf result.old
echo "ExpiresActive On" > result/.htaccess
echo "ExpiresByType image/png \"modification plus 2 hours 20 minutes\"" >> result/.htaccess
@@ -20,9 +26,15 @@ install-data-local: result/index.html
[ -d $(docdir) ] || mkdir $(docdir)
# cp -a result/*.png $(docdir)
# cp -a result/*.html $(docdir)
- find result -name '*.png' -type f | xargs --no-run-if-empty cp --target-directory="$(docdir)"
- find result -name '*.html' -type f | xargs --no-run-if-empty cp --target-directory="$(docdir)"
- cp -a result/.htaccess $(docdir)
+# find result -name '*.png' -type f | xargs --no-run-if-empty cp --target-directory="$(docdir)"
+# find result -name '*.html' -type f | xargs --no-run-if-empty cp --target-directory="$(docdir)"
+# cp -a result/.htaccess $(docdir)
+# rsync -r --delete result/ $(docdir)/
+ rm -rf $(docdir).new/
+ cp -al result/ $(docdir).new/
+ mv $(docdir) $(docdir).old
+ mv $(docdir).new $(docdir)
+ rm -rf $(docdir).old/
uninstall-local:
rm -f $(docdir)/*.png