#!/bin/sh # this script is generating automatically by Makefile # setting environmental variables LABPATH=/home2/dhardy/work/ss/final/lab ; export LABPATH LABBIN=$LABPATH/bin/SunOS ; export LABBIN LABTMP=/tmp/$USER ; export LABTMP # creating tmp directory space for user if [ ! -d $LABTMP ] ; then mkdir $LABTMP fi # copy lab notebooks into current directory for n in 1 2 3 4 5 6 ; do if [ ! -f $n.nb ] ; then cp $LABPATH/$n/$n.nb . fi done # start with first or specified notebook if [ "$1" = "" ] ; then nb=1.nb else nb=$1 fi # run mathematica in the background if [ "`uname`" = "Darwin" ] ; then open $nb & else mathematica $nb & fi