[tor-commits] [rbm/master] Bug 24982: add script to help updating the website

gk at torproject.org gk at torproject.org
Wed Jan 24 19:22:14 UTC 2018


commit 213fad5a8fe04272359c33778626a2802efc4ebc
Author: Nicolas Vigier <boklm at torproject.org>
Date:   Tue Jan 23 19:01:13 2018 +0100

    Bug 24982: add script to help updating the website
    
    This script will create a tarball containing the website and print
    commands that can be used to upload it.
---
 doc/make-rbm-docs-tar.sh | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/doc/make-rbm-docs-tar.sh b/doc/make-rbm-docs-tar.sh
new file mode 100755
index 0000000..5a1b576
--- /dev/null
+++ b/doc/make-rbm-docs-tar.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+set -e
+docsdir=$(pwd)
+tmpdir=$(mktemp -d)
+make clean
+make install-web webdir="$tmpdir"
+cd "$tmpdir"
+chmod 664 *
+tar -cf "$docsdir"/rbm-docs.tar *
+cd -
+rm -Rf "$tmpdir"
+echo "You can now update the web site with:"
+echo "  ssh staticiforme.torproject.org tar --overwrite -p -C /srv/rbm-master.torproject.org/htdocs -xf - < rbm-docs.tar"
+echo "  ssh staticiforme.torproject.org static-update-component rbm.torproject.org"



More information about the tor-commits mailing list