Skip to content

Instantly share code, notes, and snippets.

@5nizza
Last active October 21, 2024 11:49
Show Gist options
  • Save 5nizza/8c3988a75e6c579c8ace676a9cdb11d9 to your computer and use it in GitHub Desktop.
Save 5nizza/8c3988a75e6c579c8ace676a9cdb11d9 to your computer and use it in GitHub Desktop.
viewhoa: bash function to view HOA files (requires hoa2dot.sh)
viewhoa ()
{
tmp_file=`mktemp -t "$(basename $0).XXXXXXXXXX.dot"`;
echo $tmp_file;
LIB_PATH=/home/art/software/sdf-hoa-master/third_parties/spot-install-prefix/lib;
BIN_PATH=/home/art/software/sdf-hoa-master/third_parties/spot-install-prefix/bin;
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LIB_PATH \
$BIN_PATH/autfilt $1 -d > $tmp_file;
daemon xdot $tmp_file;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment