Differences From Artifact [7786b633df]:

To Artifact [bbf037ecfa]:


77
78
79
80
81
82
83

84
85
86




87
88
89
90
91
92
93
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); 
      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 ]