2
0

mksplines.sh 485 B

1234567891011121314151617181920
  1. #! /bin/ksh
  2. #
  3. # usage: mksplines.sh <spline>
  4. #
  5. # where spline has the form spline_<splinesattr>.fmt
  6. # where .fmt gives the desired output format.
  7. if (( $# == 0 ))
  8. then
  9. echo "mksplines: missing splines name argument"
  10. exit 1
  11. fi
  12. TGT=$1 # spline_kind.fmt
  13. SPLINE=${1%.*} # spline_kind
  14. FMT=${1#$SPLINE.} # fmt
  15. KIND=${SPLINE#spline_} # kind
  16. sfdp -T$FMT -Gviewport=300,300,1,40 -Goverlap=false -Gsplines=$KIND ../../graphs/undirected/ngk10_4.gv > $TGT