Ignore:
Timestamp:
Oct 26, 2009 1:11:23 PM (11 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/demo.bash.in

    r1055 r1596  
    22#
    33# use this script to run several rappture examples:
    4 #       % ./rundemo
     4#
     5#       ./demo.bash
     6#               
     7#        ./demo.bash all
     8#
    59# when you exit from one example, the next one will start and display on your
    610# screen.
    711#
    812
    9 PYTHONPATH=@prefix@/lib/python2.5/site-packages
    10 export PYTHONPATH
    11 rpdir=@prefix@
     13ZOO="\
     14 ./zoo/log \
     15 ./zoo/note \
     16 ./zoo/cloud \
     17 ./zoo/cloud \
     18 ./zoo/curve \
     19 ./zoo/field \
     20 ./zoo/group \
     21 ./zoo/image \
     22 ./zoo/phase \
     23 ./zoo/table \
     24 ./zoo/structure \
     25 ./zoo/loadrun \
     26 ./zoo/unirect2d \
     27 ./zoo/binary \
     28 ./zoo/choice \
     29 ./zoo/enable \
     30 ./zoo/loader \
     31 ./zoo/number \
     32 ./zoo/string \
     33 ./zoo/number2 \
     34 ./zoo/sequence \
     35 ./zoo/boolean \
     36 ./zoo/integer \
     37 ./zoo/integer2 \
     38"
    1239
    13 exdir=$rpdir/examples
     40FLOW=" \
     41 ./flow/demo1 \
     42 ./flow/demo2 \
     43 ./flow/demo3 \
     44 ./flow"
    1445
    15 dirs="app-fermi/tcl app-fermi/python app-fermi/fortran c-example graph zoo/structure zoo/image zoo/cloud"
     46FERMI=" \
     47  ./app-fermi/cee \
     48  ./app-fermi/tcl \
     49  ./app-fermi/perl \
     50  ./app-fermi/ruby \
     51  ./app-fermi/fortran \
     52  ./app-fermi/matlab \
     53  ./app-fermi/matlab \
     54  ./app-fermi/octave/2 \
     55  ./app-fermi/octave/3 \
     56  ./app-fermi/python \
     57  ./app-fermi/wrapper/cee \
     58  ./app-fermi/wrapper/tcl \
     59  ./app-fermi/wrapper/python \
     60"
    1661
    17 echo "7 examples will be shown-->"
    18 for i in $dirs ; do
    19     echo $exdir/$i
    20     cd $exdir/$i
    21     $rpdir/bin/rappture
     62MISC=" \
     63  ./lang/tcl/putfile \
     64  ./lang/tcl/loadercopy \
     65  ./graph \
     66  ./c-example \
     67  ./canvas \
     68  ./objects/xmlparser \
     69"
     70
     71ALL="$FERMI $ZOO $FLOW $MISC"
     72
     73STD="\
     74  app-fermi/tcl  \
     75  app-fermi/python  \
     76  app-fermi/fortran  \
     77  c-example  \
     78  graph  \
     79  zoo/structure  \
     80  zoo/image  \
     81  zoo/cloud \
     82"
     83dirs=$STD
     84
     85if test "$1" = "all" ; then
     86  dirs=$ALL
     87elif test "$1" = "fermi" ; then
     88  dirs=$FERMI
     89elif test "$1" = "flow" ; then
     90  dirs=$FLOW
     91elif test "$1" = "misc" ; then
     92  dirs=$MISC
     93elif test "$1" = "zoo" ; then
     94  dirs=$ZOO
     95fi
     96
     97for d in $dirs ; do
     98    echo $d
     99    (cd $d ; rappture)
    22100done
    23101
    24 cd $exdir/3D
    25 $rpdir/bin/rerun 3d_test_run.xml
     102(cd 3D; rerun 3d_test_run.xml)
Note: See TracChangeset for help on using the changeset viewer.