/* TeX drive */
texdrive = substr(value("EMTEXDIR", , "OS2ENVIRONMENT"),1,1)
if texdrive = "" then do
say "The environment variable EMTEXDIR is undefined,"
say "so I don't know what to fix."
say "Are you sure that you have installed emTeX/TDS ?"
exit
end
/* checking the version*/
version = SysIni(texdrive||":\texmf\emtex\data\EMTEXTDS.INI", "EMTEXTDS", "VERSION")
if version <> FIXVER then do
say "This fix can only be applied to emTeX/TDS, version " || FIXVER || "."
exit
end
/* checking existence of fixpak file */
if stream(fixpak, "C", "QUERY EXISTS") = "" then do
say "I cannot find the file " || fixpak || " in the current directory!"
exit
end