corpus

self-hosted listenbrainz and last.fm proxy
Log | Files | Refs | README | LICENSE

graphviz (304B)


      1 #!/usr/bin/env bash
      2 set -euo pipefail
      3 
      4 command -v dot &>/dev/null || {
      5 	echo "error: graphviz (dot) not found"
      6 	exit 1
      7 }
      8 
      9 for dot_file in "$@"; do
     10 	svg_file="${dot_file%.dot}.svg"
     11 	dot -Tsvg "$dot_file" -o "$svg_file" \
     12 		2> >(grep -v "do not currently handle edge labels" >&2)
     13 	git add "$svg_file"
     14 done