ADDED mttroot/mtt/bin/trans/dir2rep Index: mttroot/mtt/bin/trans/dir2rep ================================================================== --- /dev/null +++ mttroot/mtt/bin/trans/dir2rep @@ -0,0 +1,40 @@ +#! /bin/sh + + ###################################### + ##### Model Transformation Tools ##### + ###################################### + +# Bourne shell script: dir2rep +# Creates a rep file for a directory + +# P.J.Gawthrop Dec 1997 +# Copyright (c) P.J.Gawthrop, 1997. + +############################################################### +## Version control history +############################################################### +## $Id$ +## $Log$ +############################################################### + + + +# Inform user +echo "Creating $1_rep.txt (Directory version)" + +# Headings +echo "% Verbal description for directory $1 ($1_rep.txt)"> $1_rep.txt +echo "% Generated by MTT on" `date`. >> $1_rep.txt + +# Create paths for all valid examples - ie dir name is system name +find $1 -name '*_abg.fig' -print | sort |\ + awk '{ + N=split($1,name,"/"); + printf("%s", name[1]); + for (i=2;i> $1_rep.txt