summaryrefslogtreecommitdiffstats
path: root/retiolum/bin/create-supernode-tar
diff options
context:
space:
mode:
Diffstat (limited to 'retiolum/bin/create-supernode-tar')
-rwxr-xr-xretiolum/bin/create-supernode-tar13
1 files changed, 13 insertions, 0 deletions
diff --git a/retiolum/bin/create-supernode-tar b/retiolum/bin/create-supernode-tar
new file mode 100755
index 00000000..322d428d
--- /dev/null
+++ b/retiolum/bin/create-supernode-tar
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -euf
+if [ x"${1:-}" = "x" ];then
+ echo "usage: $0 DIRECTORY"
+ exit 1
+fi
+HOSTDIR=${HOSTDIR:-../hosts}
+WEBDIR=$1
+HOSTFILE=$WEBDIR/supernodes.tar.gz
+cd $(dirname $(readlink -f $0))
+rm -f $HOSTFILE
+tar czf $HOSTFILE -C $HOSTDIR `python ../scripts/adv_graphgen/find_super.py |cut -d\ -f1`
+chmod a+rx $HOSTFILE