summaryrefslogtreecommitdiffstats
path: root/retiolum/bin/create-supernode-tar
blob: 322d428d87b4d901f1496f2613a65a2876895022 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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