#!/bin/bash
#invoke GT.M for M2Web CGI

#//kt note 1-13-06  This matches my environment
#later, try to use line below instead of repeating in exports further below.
#. /var/local/OpenVistA_UserData/setup_vista_env

export m2web="/usr/local/m2web"
export gtm_dist=/usr/local/gtm
export gtm_log=/var/gtm/log
export gtm_vista=/var/local/OpenVistA_UserData
export gtm_vista_prod=/usr/local/OpenVistA
export gtmgbldir=$gtm_vista/g/mumps.gld
export vista_home=$gtm_vista
export gtm_sysid="vista.net"
export gtmroutines="$gtm_vista/o($gtm_vista_prod/r $gtm_vista/r $gtm_dist) $gtm_dist() $m2web/o($m2web/w)"  #//kt

# MD5 Library external-call table
export GTMXC_md5 = "$m2web/w/xc/gtm_md5.xc"

cd $m2web/w

#-- uncomment line below and copy to /var/www/vista/m2web.cgi
$gtm_dist/mumps -r htCGI

