#!/bin/sh

IN=lanmap.dot
OUT=lanmap

#dot -Tsvg -o lanmap.svg lanmap.dot

#EXT=svg
#echo twopi -T$EXT -o "$OUT.$EXT" $IN
#twopi -T$EXT -o "$OUT.$EXT" $IN

EXT=svg
sed -e's/\.png/\.svg/g' < lanmap.dot > lanmap-svg.dot
fdp -T$EXT -o "tmp.$OUT.$EXT" lanmap-svg.dot 2>/dev/null
[ -f "tmp.$OUT.$EXT" ] && mv "tmp.$OUT.$EXT" "$OUT.$EXT"

