ADDED mttroot/mtt/bin/trans/sympar_txt2m Index: mttroot/mtt/bin/trans/sympar_txt2m ================================================================== --- /dev/null +++ mttroot/mtt/bin/trans/sympar_txt2m @@ -0,0 +1,18 @@ +#!/bin/sh +## Converts sympar.txt to an m file which provides indices in the form +## sympar.name = i + + + ###################################### + ##### Model Transformation Tools ##### + ###################################### + +# Copyright (C) 2000 by Peter J. Gawthrop + +echo Creating $1_sympar.m + +lang_header -noglobal $1 sympar m "" sympar > $1_sympar.m + +awk '{ + printf(" sympar.%s \t= %i; # %s\n", $1, ++i, $2); +}' < $1_sympar.txt >> $1_sympar.m