Differences From Artifact [9f63b6b6f6]:
- Executable file mtt/lib/xfig/Thermal/MAKE_COMPONENT — part of check-in [af3953deae] at 2021-03-01 11:39:42 on branch master — Cleanup repository after cvs2git conversion. (user: jeff@gridfinity.com, size: 323) [annotate] [blame] [check-ins using] [more...]
- Executable file mttroot/mtt/lib/xfig/Basic/MAKE_COMPONENT — part of check-in [749371a8cf] at 1999-07-28 05:46:52 on branch origin/master — Now handles unnamed 0 and 1 (user: gawthrop@users.sourceforge.net, size: 323) [annotate] [blame] [check-ins using]
- Executable file mttroot/mtt/lib/xfig/Thermal/MAKE_COMPONENT — part of check-in [ad9b7e569f] at 2000-12-28 10:11:20 on branch origin/master — put under RCS (user: gawthrop@users.sourceforge.net, size: 323) [annotate] [blame] [check-ins using]
To Artifact [e7c52bd3fa]:
- Executable file mtt/lib/xfig/Basic/MAKE_COMPONENT — part of check-in [af3953deae] at 2021-03-01 11:39:42 on branch master — Cleanup repository after cvs2git conversion. (user: jeff@gridfinity.com, size: 416) [annotate] [blame] [check-ins using] [more...]
- Executable file mttroot/mtt/lib/xfig/Basic/MAKE_COMPONENT — part of check-in [ad9b7e569f] at 2000-12-28 10:11:20 on branch origin/master — put under RCS (user: gawthrop@users.sourceforge.net, size: 416) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 9 | #!/bin/sh ## Makes a new component if [ -z "$2" ]; then label=$1 else label=$2 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
|