#! /bin/tcsh -f

# This the main NetMHCIIpan 4.3 script. It only acts as the frontend to the
# software proper, a compiled binary.
# 
# VERSION:	Dec 2022
# 

###############################################################################
#               GENERAL SETTINGS: CUSTOMIZE TO YOUR SITE
###############################################################################

# full path to the NetMHCIIpan 4.3 directory (mandatory)
set rootdir = `dirname $0`
set abs_rootdir = `cd $rootdir && pwd`
setenv  NMHOME  $abs_rootdir
#echo "Using $NMHOME as netmhciipan home."

# determine where to store temporary files (must be writable to all users)
#
#setenv  TMPDIR /var/www/html/services/NetMHCIIpan-4.3/tmp

if ( ${?TMPDIR} == 0 ) then
	setenv  TMPDIR /tmp
endif

# determine platform (do not change this unless you don't have 'uname'!)
setenv	UNIX	`uname -s`
setenv	AR	`uname -m`

###############################################################################
#               NOTHING SHOULD NEED CHANGING BELOW THIS LINE!
###############################################################################

# other settings
set PLATFORM = `echo $UNIX $AR | awk '{print $1"_"$2}'`
setenv NETMHCIIpan $NMHOME
setenv NetMHCIIpanPLAT $NMHOME/$PLATFORM
setenv NetMHCIIpanWWWPATH /services/NetMHCIIpan-4.3/tmp
setenv NetMHCIIpanWWWDIR /var/www/html/services/NetMHCIIpan-4.3/tmp


# main ========================================================================
if ( -x $NetMHCIIpanPLAT/bin/NetMHCIIpan-4.3 ) then
   $NetMHCIIpanPLAT/bin/NetMHCIIpan-4.3 $* 
else
   echo $NetMHCIIpanPLAT/bin/NetMHCIIpan-4.3 not found
endif

# end of script ===============================================================
