ADDED mttroot/mtt/bin/trans/mtt2reps_txt Index: mttroot/mtt/bin/trans/mtt2reps_txt ================================================================== --- /dev/null +++ mttroot/mtt/bin/trans/mtt2reps_txt @@ -0,0 +1,29 @@ +#! /bin/sh + +# mtt2reps_txt: Gives a tabular listing of representations and languages +# P J Gawthrop July 1998, October 1998 +# Copyright (c) P.J.Gawthrop, 1998 + +############################################################### +## Version control history +############################################################### +## $Id$ +## $Log$ +############################################################### + + +representations=`mtt -q help representations | awk '{print $1'} | sort -u | grep -v 'Representations'` + +for rep in $representations ; do + language=`mtt -q help representations | grep "^[ ]*$rep" |\ + awk '{print $NF}'| grep -v 'Representations' |\ + sort -u | sed 's/[()]//g'` + echo $rep $language |\ + awk '{ + printf( "%s", $1) + for (i=2;i<=NF;i++) printf("\t%s", $i); + printf("\n") + }' + +done + ADDED mttroot/mtt/bin/trans/reps_txt2tk Index: mttroot/mtt/bin/trans/reps_txt2tk ================================================================== --- /dev/null +++ mttroot/mtt/bin/trans/reps_txt2tk @@ -0,0 +1,47 @@ +#! /bin/sh + + ###################################### + ##### Model Transformation Tools ##### + ###################################### + +# Bourne shell script: reps_txt2tk +# Creates tk/tcl file for xmtt. +# Copyright (c) P.J.Gawthrop, 1998 + +############################################################### +## Version control history +############################################################### +## $Id$ +## $Log$ +############################################################### + +name=`mtt --version` + +cat<