#!/bin/sh # file: cvsim G. Moody 20 February 2004 # # This shell script creates an appropriate environment for running the # cardiovascular simulator binary and then runs it. # Edit the following lines to point to the binary directory, the runtime # library directory, and a writeable directory for temporary files. PATH=XBINDIR:$PATH; export PATH CVLIB=XCVLIB; export CVLIB TMPDIR=XTMPDIR; export TMPDIR # CVPRINT should be the screen dump utility of your choice. CVPRINT=XBINDIR/xdpr; export CVPRINT # Ensure that it will be easy to remove temporary files created by cvsim.bin. umask 000 # Save the X resource database and merge the cvsim-specific settings. rm -f $TMPDIR/rdb.save.$$ xrdb -query > $TMPDIR/rdb.save.$$ xrdb -merge XCVLIB/XResources # Run the simulator. XBINDIR/cvsbin # Restore the X resource database from the previously saved copy and clean up. xrdb -load $TMPDIR/rdb.save.$$ rm -f $TMPDIR/rdb.save.$$