Overview
Comment:Fixes [ 1233815 ] xmtt doesn't start on Fedora Core 3

When creating the options menu items, only read lines that start with '-'

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 71b17db9a9ddf0b2fe837bf0c4f9613a7bba953bea7c78d6459398be2a5e5056
User & Date: geraint@users.sourceforge.net on 2005-08-26 10:11:09
Other Links: branch diff | manifest | tags
Context
2005-08-26
14:43:49
Fixes [1274079] xmtt fails if filenames have spaces check-in: b27a9751ac user: geraint@users.sourceforge.net tags: origin/master, trunk
10:11:09
Fixes [ 1233815 ] xmtt doesn't start on Fedora Core 3

When creating the options menu items, only read lines that start with '-' check-in: 71b17db9a9 user: geraint@users.sourceforge.net tags: origin/master, trunk

2005-08-05
15:35:17
Fixed _ in ports check-in: 065c2e0e55 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/mtt_make_menu from [7786b633df] to [bbf037ecfa].

77
78
79
80
81
82
83

84
85
86

87
88
89
90
91
92
93
done

# Create the options menu
mtt |  gawk '{
  if (Options) {
    option=substr($1,2);
    label="";

    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







>
|
|
|
>







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


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