/itexToMML

To download this project, use:
bzr branch http://golem.ph.utexas.edu/~distler/code/itexToMML/

« back to all changes in this revision

Viewing changes to itex-src/itex2MML.cc

  • Committer: Jacques Distler
  • Date: 2007-11-21 05:30:36 UTC
  • Revision ID: distler@golem.ph.utexas.edu-20071121053036-knbfrl4p3fcz324k
Tags: 1.3.3
Version 1.3.3
Updated "Universal" build for MacOSX 10.5 build environment.
Added commandline option to emit a version number.

Show diffs side-by-side

added added

removed removed

1
 
/*             itex2MML 1.3.1
2
 
 *   itex2MML.cc last modified 10/24/2007
 
1
/*             itex2MML 1.3.3
 
2
 *   itex2MML.cc last modified 11/21/2007
3
3
 */
4
4
 
5
5
#include <cstdio>
22
22
                {
23
23
                        std::string args = argv[arg];
24
24
 
25
 
                        if (args == "--help")
 
25
                        if (args == "--version" || args == "-v")
 
26
                                {
 
27
                                        fputs("itex2MML version " ITEX2MML_VERSION "\n"
 
28
                                              "See http://golem.ph.utexas.edu/~distler/blog/itex2MML.html for more information.\n", stdout);
 
29
                                        bStop = true;
 
30
                                        break;
 
31
                                }
 
32
 
 
33
                        if (args == "--help" || args == "-h")
26
34
                                {
27
35
                                        fputs ("usage: itex2MML [OPTIONS]\n"
28
36
                                                   "\n"