File mttroot/mtt/bin/trans/m/mtt.m artifact 04109b8ef0 part of check-in 557481a2c2


function mtt (sys,rep,lang)

  ## usage:  mtt (system[,representation,language])
  ##
  ## Invokes mtt from octave to generate system_representation.language
  ## Ie equivalent to "mtt system representation language" at the shell
  ## Representation and language defualt to "sm" and "m" respectively

  if nargin<2
    rep='sm';
  endif
  
  if nargin<3
    lang='m';
  endif

  filename = sprintf("%s_%s.%s", sys, rep, lang);
  if !exist(filename)
    command = sprintf("mtt -q %s %s %s", sys, rep, lang);
    system(command);
  endif

endfunction

MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]