Created
October 15, 2012 00:47
-
-
Save hanshoglund/3890307 to your computer and use it in GitHub Desktop.
Dotviewer (OS X)
This file contains hidden or 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 | |
# Drop in replacement for Dotty on OS X | |
# Renders a diagram as a PDF using 'dot' and opens the resultant file | |
DIR=/tmp/dotviewer | |
FILE=$DIR/$$.pdf | |
rm -r $DIR | |
mkdir -p $DIR | |
dot -Tpdf -o $FILE $@ | |
open $FILE | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment