#!/bin/sh # this script is generating automatically by Makefile # setting environmental variables LABPATH=/Users/tcblaptop/Desktop/sumschool03/tutorials/09-numerical-algorithms ; export LABPATH LABBIN=$LABPATH/bin/Darwin ; 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 cp $LABPATH/[1-6]/[1-6].nb . # 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