head	1.6;
access
	billh
	dalke;
symbols;
locks; strict;
comment	@# @;


1.6
date	95.03.21.00.35.10;	author billh;	state Exp;
branches;
next	1.5;

1.5
date	95.02.28.00.10.05;	author billh;	state Exp;
branches;
next	1.4;

1.4
date	95.01.08.22.08.37;	author billh;	state Exp;
branches;
next	1.3;

1.3
date	94.11.30.01.49.22;	author billh;	state Exp;
branches;
next	1.2;

1.2
date	94.11.29.22.56.50;	author billh;	state Exp;
branches;
next	1.1;

1.1
date	94.11.27.15.27.06;	author billh;	state Exp;
branches;
next	;


desc
@csh script to start vmd
@


1.6
log
@Added copyright message.
@
text
@#!/bin/csh

############################################################################
#cr                                                                       
#cr            (C) Copyright 1995 The Board of Trustees of the            
#cr                        University of Illinois                         
#cr                         All Rights Reserved                           
#cr                                                                       
############################################################################

############################################################################
# RCS INFORMATION:
#
#       $RCSfile: vmd,v $
#       $Author: billh $        $Locker: billh $                $State: Exp $
#       $Revision: 1.5 $      $Date: 1995/02/28 00:10:05 $
#
############################################################################
# DESCRIPTION:
#
# csh script to start up vmd, using an xterm-like window for the console
#
############################################################################

# find where the vmd executable is located
if ( $?VMDDIR) then
else
  setenv VMDDIR $defaultvmddir
endif

# find where .tracker file is located
if ( $?TRACKERDIR) then
else
  setenv TRACKERDIR $VMDDIR
endif

# determine type of machine, and run appropriate executable
set MACHARCH=`uname -s`
switch ($MACHARCH)
case *IRIX*:
  set MACHVER=`uname -r | cut -f1 -d.`
  if ( "$MACHVER" == "4" ) then
    setenv MDC_CONSUMER $VMDDIR/mdcomm/md_consumer_IRIX4
    set execname="$vmdbasename"_IRIX4
  else if ( "$MACHVER" == "5" ) then
    setenv MDC_CONSUMER $VMDDIR/mdcomm/md_consumer_IRIX5
    set execname="$vmdbasename"_IRIX5
  else if ( "$MACHVER" == "6" ) then
    setenv MDC_CONSUMER $VMDDIR/mdcomm/md_consumer_IRIX5
    set execname="$vmdbasename"_IRIX5
  else
    echo "Error: Unknown IRIX version $MACHVER"
    exit 1
  endif
  winterm -T "vmd console" -geometry 90x11+596-0 -font Screen11 \
      -c $VMDDIR/$execname $*
breaksw

case *HP-UX*:
  set MACHVER=`uname -r | cut -f2 -d.`
  if ( "$MACHVER" == "09" ) then
    setenv MDC_CONSUMER $VMDDIR/mdcomm/md_consumer_HPUX9
    set execname="$vmdbasename"_HPUX9
  else
    echo "Error: Unknown HP-UX version $MACHVER"
    exit 1
  endif
  hpterm -T "vmd console" -geometry 90x11+596-0 \
      -e $VMDDIR/$execname $*
breaksw

case *:
  echo "Unsupported architecture.  Must be IRIX or HP-UX."
breaksw

endsw
@


1.5
log
@Checks for IRIX 6.X; if found, runs IRIX5 executable.
@
text
@d1 2
d4 8
d16 1
a16 1
#       $Revision: 1.4 $      $Date: 1995/01/08 22:08:37 $
@


1.4
log
@Improved how the OS type is checked, and added support for having
a different base name for the executable.
@
text
@d6 1
a6 1
#       $Revision: 1.3 $      $Date: 1994/11/30 01:49:22 $
d36 3
@


1.3
log
@md_consumer env variable now set properly for new installation procedure.
@
text
@d6 1
a6 1
#       $Revision: 1.2 $      $Date: 1994/11/29 22:56:50 $
d11 1
a11 1
# script to start up vmd, using an xterm-like window for the console
d27 9
a35 7
# determine type of machine
if ( "`uname -a | grep HP`" != "" ) then
  setenv MDC_CONSUMER $VMDDIR/mdcomm/md_consumer_HPUX9
  hpterm -T "vmd console" -geometry 90x11+596-0 \
        -e $VMDDIR/vmd_HPUX9 $*
else
  if ( "`uname -a | grep IRIX`" != "") then
d37 1
a37 2
    winterm -T "vmd console" -geometry 90x11+596-0 -font Screen11 \
        -c $VMDDIR/vmd_IRIX5 $*
d39 2
a40 1
    echo "Unsupported architecture.  Must be HPUX9 or IRIX5."
d42 3
a44 1
endif
d46 18
@


1.2
log
@Changed to format where VMDDIR set from externally determined value.
@
text
@d6 1
a6 1
#       $Revision: 1.1 $      $Date: 1994/11/27 15:27:06 $
d29 2
a30 2
  setenv MDC_CONSUMER $VMDDIR/mdcomm/HPUX9/md_consumer
  hpterm -T "vmd console" -geometry 80x10+0-0 \
d34 2
a35 2
    setenv MDC_CONSUMER $VMDDIR/mdcomm/IRIX5/md_consumer
    winterm -T "vmd console" -geometry 80x10+0-0 -font Screen11 \
@


1.1
log
@Initial revision
@
text
@a0 1
#!/bin/csh
d4 3
a6 3
#       $RCSfile$
#       $Author$        $Locker$                $State$
#       $Revision$      $Date$
d18 1
a18 1
  setenv VMDDIR /usr/local/lib/vmd
@
