Created
September 29, 2020 11:10
-
-
Save packmad/81167d924ef328a39e618134809c7b80 to your computer and use it in GitHub Desktop.
Plots all Graphviz layouts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# /usr/sbin/libgvc6-config-update | |
# Use one of: circo dot fdp neato osage patchwork sfdp twopi | |
declare -a graphviz=("circo" "dot" "fdp" "neato" "osage" "patchwork" "sfdp" "twopi") | |
if [ -f "$1" ]; then | |
pardir="$(dirname "$1")" | |
bname="$(basename "$1")" | |
for i in "${graphviz[@]}" | |
do | |
eval $i -Tpdf $1 -o "$pardir/$bname"_$i.pdf | |
done | |
else | |
echo "Usage: plothemall.sh <filename>.dot" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment