Parse Arg in out _rexx_build _curses_build _curses_inc_dir_build _curses_lib_dir_build
_rexx_build_u = Translate( _rexx_build )
conflicts.regina = 'oorexx rexxtrans'
conflicts.oorexx = 'regina rexxtrans'
conflicts.rexxtrans = 'regina oorexx'
depends.regina = 'libregina3'
depends.oorexx = 'oorexx'
depends.rexxtrans = 'librexxtrans'
builddepends.regina = 'libregina3'
builddepends.oorexx = 'oorexx'
builddepends.rexxtrans = 'librexxtrans'
Call Stream out, 'C', 'OPEN WRITE REPLACE'
Do While Lines( in ) > 0
   line = Linein( in )
   line = Changestr( '%REXX_BUILD%', line, _rexx_build )
   line = Changestr( '%REXX_BUILD_DEPENDS%', line, builddepends._rexx_build_u )
   line = Changestr( '%REXX_DEPENDS%', line, depends._rexx_build_u )
   line = Changestr( '%REXX_CONFLICT_1%', line, Word( conflicts._rexx_build_u, 1 ) )
   line = Changestr( '%REXX_CONFLICT_2%', line, Word( conflicts._rexx_build_u, 2 ) )
   line = Changestr( '%CURSES_BUILD%', line, _curses_build )
   line = Changestr( '%CURSES_INC_DIR_BUILD%', line, _curses_inc_dir_build )
   line = Changestr( '%CURSES_LIB_DIR_BUILD%', line, _curses_lib_dir_build )
   Call Lineout out, line
End
Call Stream out, 'C', 'CLOSE'
