summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/adaptagrams/libcola/tests/view_cd_output.sh
blob: cb74ae88e26c04839a9d88179b6b8070fe131f07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#! /bin/bash

if [ $# -lt 1 ] ; then
  echo "Need case letter (eg: A) or ALL for all cases (CLEAN to delete)"
  exit
else
  CASE=$1
  shift
fi

cd /home/kierans/libcola3/libcola/tests
 
if [ $CASE == 'a' -o $CASE == 'A' ] ; then
  inkview cycle_detector_case_a.svg
fi

if [ $CASE == 'b' -o $CASE == 'B' ] ; then
  inkview cycle_detector_case_b.svg
fi

if [ $CASE == 'c' -o $CASE == 'C' ] ; then
  inkview cycle_detector_case_c.svg
fi

if [ $CASE == 'd' -o $CASE == 'D' ] ; then
  inkview cycle_detector_case_d.svg
fi

if [ $CASE == 'e' -o $CASE == 'E' ] ; then
  inkview cycle_detector_case_e.svg
fi

if [ $CASE == 'f' -o $CASE == 'F' ] ; then
  inkview cycle_detector_case_f.svg
fi

if [ $CASE == 'all' -o $CASE == 'ALL' ] ; then
  inkview cycle_detector_case_a.svg cycle_detector_case_b.svg cycle_detector_case_c.svg cycle_detector_case_d.svg cycle_detector_case_e.svg cycle_detector_case_f.svg
fi

if [ $CASE == 'clean' ] ; then
  rm cycle_detector_case* -fv
fi