File mttroot/mtt/lib/xfig/Basic/MAKE_COMPONENT artifact e7c52bd3fa part of check-in 5ad84ea3e2


#!/bin/sh
## Makes a new component

if [ -z "$2" ]; then
  label=$1
else
  label=$2    
fi

case $1 in
    0)
	echo Making new component $1 with no label
        sed "s/TEXT/$1/" <template.txt >$1.fig
	;;
    1)
	echo Making new component $1 with no label
        sed "s/TEXT/$1/" <template.txt >$1.fig
	;;
    *)
  echo Making new component $1 with label $label
  sed "s/TEXT/$1:$label/" <template.txt >$1.fig
esac


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