ffmap-backend/mkmap.sh

17 lines
453 B
Bash
Raw Normal View History

2012-02-17 02:09:21 +01:00
#!/bin/bash
2012-06-06 02:21:59 +02:00
set -e
2012-02-17 02:09:21 +01:00
DEST=$1
2012-06-06 02:21:59 +02:00
[ "$DEST" ] || exit 1
"$(dirname "$0")"/ffhlwiki.py http://freifunk.metameute.de/wiki/Knoten > "$(dirname "$0")"/aliases_hl.json
"$(dirname "$0")"/ffhlwiki.py http://freifunk.metameute.de/wiki/Moelln:Knoten > "$(dirname "$0")"/aliases_moelln.json
"$(dirname "$0")"/bat2nodes.py -a "$(dirname "$0")"/aliases.json -a aliases_hl.json -a aliases_moelln.json > $DEST/nodes.json.new
2012-05-12 16:44:27 +02:00
mv $DEST/nodes.json.new $DEST/nodes.json
2012-02-17 02:09:21 +01:00