ffmap-backend/mkmap.sh

12 lines
240 B
Bash
Raw Normal View History

2012-02-17 02:09:21 +01:00
#!/bin/bash
DEST=$1
GWS=`batctl gwl -n | tail -n +2 | sed 's/=>//' | awk '{ print $1 }'|while read a;do echo -n "-g $a ";done`
mkdir $DEST
cp html/* $DEST/
batctl vd json|python ./bat2nodes.py -a aliases.json $GWS - > $DEST/nodes.json