Last active
October 21, 2024 11:49
-
-
Save 5nizza/8c3988a75e6c579c8ace676a9cdb11d9 to your computer and use it in GitHub Desktop.
viewhoa: bash function to view HOA files (requires hoa2dot.sh)
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
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