#! /bin/sh # file: xdemo.sh G. Moody 2 April 2001 # Last revised: 16 November 2002 # This script runs 'plt' to display the figures included in the plt Tutorial # and Cookbook. if [ x$DISPLAY = x ] then case `uname` in Darwin) if [ ! -d /usr/X11R6 ] then echo "This script requires a running X server, such as XDarwin" echo "(freely available from http://fink.sourceforge.net/)." fi echo "Start XDarwin before running this script." ;; CYGWIN) if [ ! -d /usr/X11R6 ] then echo "This script requires a running X server, such as Cygwin/XFree86" echo "(freely available from http://www.cygwin.com/)." fi echo "Start Cygwin/XFree86 before running this script." ;; *) echo "Start your X server before running this script." ;; esac exit fi echo "Welcome to the plt on-screen demonstration!" C=2 F=1 plt example1.data 0 2 cat <