/**/

call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs


parse arg language texmf source options



say 'msg:LaTeX2e Mfnfss'


bin      = texmf||'\os2tex\bin'
tfm      = texmf||'\fonts\tfm'
tex      = texmf||'\tex'
doc      = texmf||'\doc'
fmt      = bin

target   = texmf||'\tex\latex\mfnfss'

exec     = bin||'\tex.exe'


install = texmf||'\os2tex\install'


install||'\kdir '||target

'md '||tex
'md '||tex||'\latex'
'md '||tex||'\latex\mfnfss'



if Pos("InstallFiles", options) > 0 then do

   say 'msg:LaTeX2e Mfnfss entpacke Dateien'


   call directory texmf||'\tex\latex'


   install||'\unzip '||source||'\l2mfnfss.zip'



   say 'msg:LaTeX2e Mfnfss oldgerm.ins'

   exec||' -pf '||bin||' -po '||target||' -pi '||target||';'||tex||'\latex\base;'||bin||' '||'oldgerm.ins'


   say 'msg:LaTeX2e Mfnfss pandora.ins'

   exec||' -pf '||bin||' -po '||target||' -pi '||target||';'||tex||'\latex\base;'||bin||' '||'pandora.ins'


   'copy '||target||'\*.txt '||doc||'\latex\mfnfss'
   'del '||target||'\*.txt'


   install||'\kdir '||texmf||'\fonts\source\public\mfnfss'

   'md '||texmf||'\fonts'
   'md '||texmf||'\fonts\source'
   'md '||texmf||'\fonts\source\public'
   'md '||texmf||'\fonts\source\public\mfnfss'

   'copy '||target||'\dccr.mf '||texmf||'\fonts\source\public\mfnfss'
   'del '||target||'\dccr.mf'

end




