#!/bin/sh
#
# set enviroment variables
#
texbin=/usr/lib/texmf/bin/i586-linux
htexdir=/usr/lib/texmf/texmf/htexpformats
htexpoo=tex.poo
htexformat=hlatex.fmt
hangultex=$texbin/htexp
#
# test htexp install
#
htexpinstall=false
if [ -f $texbin/htexp ]
   then htexpinstall=true
fi
#
# test hlatexp install
hlatexpinstall=false
if [ -f $texbin/hlatexp ]
   then hlatexpinstall=true
fi
#
# run htexp or hlatexp
#
if  $htexp
   then 
     htexpini "&hlatex" $*
     exit
fi
if $hlatexpinstall
   then
     hlatexp $*
    exit
fi   


