File: hat-graph.inst

package info (click to toggle)
hat 2.05%2Brerolled-7
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 9,316 kB
  • ctags: 1,077
  • sloc: haskell: 74,306; ansic: 9,588; sh: 1,770; makefile: 597
file content (22 lines) | stat: -rw-r--r-- 453 bytes parent folder | download | duplicates (2)
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
  ScriptDir/hat-check -g $file | dot -Tps \
   -Gnslimit="3.0" -Gmclimit="3.0" -Grankdir=LR $PAGE -Gratio=auto \
   -Nfontsize=12 -Efontsize=12 > $file.ps
done