File: hat-graph

package info (click to toggle)
hat 2.02-12
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,296 kB
  • ctags: 668
  • sloc: haskell: 64,394; ansic: 6,112; sh: 888; makefile: 451
file content (22 lines) | stat: -rwxr-xr-x 442 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

# generate postScript diagram of Hat graph from .hat file
# output is either multi-page A4 (with -a4 option) or single-page
FILES=
PAGE=
while [ "$1" != "" ]
do
  case $1 in
    -a4) PAGE="-Gpage=8.2,11.7" ;;
    *) FILES=$FILES" "$1 ;;
  esac
  shift
done

for file in $FILES
do
  hat-check -g $file | dot -Tps \
   -Gnslimit="3.0" -Gmclimit="3.0" -Grankdir=LR $PAGE -Gratio=auto \
   -Nfontsize=12 -Efontsize=12 > $file.ps
done