Changeset 632


Ignore:
Timestamp:
Mar 20, 2007, 2:12:34 PM (18 years ago)
Author:
dkearney
Message:

changing rappture script to source the rappture.env file
added option to simsim allowing user to specify the value for named elements on the command line
added simsim rappture.env to configure script and makefile

Location:
trunk
Files:
6 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.in

    r628 r632  
    1010        chmod 755 gui/apps/rappture
    1111        cp gui/apps/rappture @prefix@/bin
     12        cp gui/apps/rappture.env @prefix@/bin
    1213        cp gui/apps/driver @prefix@/bin
    1314        cp gui/apps/rerun @prefix@/bin
    1415        cp gui/apps/simsim @prefix@/bin
     16        cp gui/apps/simsim.py @prefix@/bin
    1517        find @prefix@ -name .svn | xargs rm -rf
    1618
  • trunk/configure

    r577 r632  
    53025302
    53035303
    5304 ac_config_files="$ac_config_files Makefile examples/demo.bash examples/app-fermi/cee/Makefile examples/app-fermi/fortran/Makefile examples/app-fermi/wrapper/cee/Makefile examples/c-example/Makefile perl/Makefile.PL python/setup.py src/Makefile src/matlab/Makefile src/octave/Makefile src2/core/Makefile test/Makefile gui/apps/rappture"
     5304ac_config_files="$ac_config_files Makefile examples/demo.bash examples/app-fermi/cee/Makefile examples/app-fermi/fortran/Makefile examples/app-fermi/wrapper/cee/Makefile examples/c-example/Makefile perl/Makefile.PL python/setup.py src/Makefile src/matlab/Makefile src/octave/Makefile src2/core/Makefile test/Makefile gui/apps/rappture gui/apps/rappture.env"
    53055305
    53065306cat >confcache <<\_ACEOF
     
    58855885    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
    58865886    "gui/apps/rappture") CONFIG_FILES="$CONFIG_FILES gui/apps/rappture" ;;
     5887    "gui/apps/rappture.env") CONFIG_FILES="$CONFIG_FILES gui/apps/rappture.env" ;;
    58875888
    58885889  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  • trunk/configure.in

    r577 r632  
    210210            src2/core/Makefile \
    211211            test/Makefile \
    212             gui/apps/rappture   )
     212            gui/apps/rappture \
     213            gui/apps/rappture.env   )
  • trunk/gui/apps/rappture.in

    r558 r632  
    99# ======================================================================
    1010#  AUTHOR:  Michael McLennan, Purdue University
    11 #  Copyright (c) 2004-2005  Purdue Research Foundation
     11#  Copyright (c) 2004-2007  Purdue Research Foundation
    1212#
    1313#  See the file "license.terms" for information on usage and
    1414#  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
    1515# ======================================================================
    16 #
    17 # If you install Rappture elsewhere, edit the line below:
    18 RAPPTURE_INSTALL_DIR=@prefix@
    1916
    20 # no need to edit the rest...
    21 export PATH=$RAPPTURE_INSTALL_DIR/bin:$PATH
    22 export PERL5LIB=$RAPPTURE_INSTALL_DIR/lib/perl5:$PERL5LIB
    23 export PYTHONPATH=$RAPPTURE_INSTALL_DIR/lib/python@PYTHON_VERSION@/site-packages:$PYTHONPATH
    24 export MATLABPATH=$RAPPTURE_INSTALL_DIR/lib/matlab:$MATLABPATH
    25 export OCTAVE_PATH=:$RAPPTURE_INSTALL_DIR/lib/octave:$OCTAVE_PATH
    26 export LD_LIBRARY_PATH=$RAPPTURE_INSTALL_DIR/lib:$LD_LIBRARY_PATH
    27 export DYLD_LIBRARY_PATH=$RAPPTURE_INSTALL_DIR/lib:$DYLD_LIBRARY_PATH
    28 export TCL_LIBRARY=$RAPPTURE_INSTALL_DIR/lib/tcl8.4
    29 export TK_LIBRARY=$RAPPTURE_INSTALL_DIR/lib/tk8.4
     17. rappture.env
    3018exec $RAPPTURE_INSTALL_DIR/bin/driver $*
  • trunk/gui/apps/simsim

    r631 r632  
    1111# ======================================================================
    1212#
    13 . rappture_env
     13. rappture.env
    1414exec python simsim.py $*
  • trunk/gui/apps/simsim.py

    r629 r632  
    55import random
    66import getopt
     7import time
    78
    89
     
    7879    value = random.randint(0,1)
    7980    if (value == 1):
    80         value = "true"
     81        value = "yes"
    8182    else:
    82         value = "false"
     83        value = "no"
    8384    child.put("current",str(value))
     85
     86def writeDriver(lib):
     87    driverFile = 'driver%d.xml' % time.time()
     88    fp = open(driverFile,'w')
     89    fp.write(lib.xml())
     90    fp.close()
     91    return driverFile
    8492
    8593def printHelp():
     
    131139            childList = childList + addList
    132140
    133 Rappture.result(lib)
     141for pathValue in args:
     142    (path,value) = pathValue.split(":")
     143    lib.put(path+".current",value)
    134144
     145print writeDriver(lib)
Note: See TracChangeset for help on using the changeset viewer.