Differences From Artifact [7786b633df]:
- Executable file
mttroot/mtt/bin/trans/mtt_make_menu
— part of check-in
[66bb5feadf]
at
2002-04-28 18:41:27
on branch origin/master
— Fixed [ 549658 ] awk should be gawk.
Replaced calls to awk with call to gawk. (user: geraint@users.sourceforge.net, size: 2824) [annotate] [blame] [check-ins using] [more...]
To Artifact [bbf037ecfa]:
- Executable file
mttroot/mtt/bin/trans/mtt_make_menu
— part of check-in
[939f70caee]
at
2005-08-26 10:11:09
on branch origin/master
— Fixes [ 1233815 ] xmtt doesn't start on Fedora Core 3
When creating the options menu items, only read lines that start with '-' (user: geraint@users.sourceforge.net, size: 2857) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
77 78 79 80 81 82 83 | done # Create the options menu mtt | gawk '{ if (Options) { option=substr($1,2); label=""; | > | | | > | 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | done # Create the options menu mtt | gawk '{ if (Options) { option=substr($1,2); label=""; if ($1 ~ /^-/) { for (i=2;i<=NF;i++) label = sprintf("%s %s",label,$i); printf(".opt.opt add check -label \"%s (-%s)\" -variable %s -command {set args \"$args -%s\" }\n", label, option, option, option); } } if ($1=="Options:") Options = 1; }' # Examples menu cat <<EOF menu .exam.exam |
︙ | ︙ |