1
0
Fork 0
mirror of https://github.com/NeoCloud/NeoNetwork synced 2024-12-26 00:29:23 +08:00
NeoNetwork/makegraph.sh

18 lines
320 B
Bash
Raw Normal View History

2019-10-31 11:09:08 +08:00
#!/bin/sh
set -xe
if which dot 2>&1 > /dev/null ; then
dot -T png nodes.dot -o nodes.png
else
echo 'You need to install graphviz first'
fi
if [ "$1" != 'noopt' ]; then
if which optipng 2>&1 > /dev/null ; then
optipng -o7 -zm9 -v nodes.png
else
echo 'optipng is not present, not optimizing compression'
fi
fi