Overview
Comment:put under RCS
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 0c7a00667314d2aa46592dc0c18949f9fb38b1c5839e82260d0af9f97962575d
User & Date: gawthrop@users.sourceforge.net on 2000-12-28 10:11:20.000
Other Links: branch diff | manifest | tags
Context
2000-12-28
10:12:48
Initial revision check-in: cfa0cb475e user: gawthrop@users.sourceforge.net tags: origin/master, trunk
10:11:20
put under RCS check-in: 0c7a006673 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
09:47:29
put under RCS check-in: b7316a354e user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes
1
2
3
4
5
6
7
8
9
10

11
12



13


14
15
16

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

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

if [ "$1" = "0" ]||[ "$1" = "1" ]; then

  echo Making new component $1 with no label
  sed "s/TEXT/$1/" <template.txt >$1.fig



else


  echo Making new component $1 with label $label
  sed "s/TEXT/$1:$label/" <template.txt >$1.fig
fi










|
>
|
|
>
>
>
|
>
>


<
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

22
#!/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 ]