1
0
Fork 0
mirror of https://github.com/NeoCloud/NeoNetwork synced 2024-11-23 22:40:41 +08:00
NeoNetwork/makegraph.sh

17 lines
320 B
Bash
Executable file

#!/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