~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/maccore/tools/docfixer/docfixer.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
//
4
4
// TODO:
5
5
//   Remove <h2...> Overview</h2> from merged docs
6
 
//   
 
6
//
 
7
// Copyright 2012 Xamarin Inc
 
8
//
7
9
using System;
8
10
using System.IO;
9
11
using System.Linq;
17
19
{
18
20
        public static int Main (string[] args)
19
21
        {
 
22
                try {
 
23
                        return Main2 (args);
 
24
                } catch (Exception ex) {
 
25
                        Console.WriteLine ("Unexpected exception: {0}", ex);
 
26
                        return 1;
 
27
                }
 
28
        }
 
29
 
 
30
        public static int Main2 (string[] args)
 
31
        {
20
32
                bool show_help = false;
21
33
                bool useRawDoc = false;
22
34
                var mergerOptions = new AppleDocMerger.Options ();
67
79
                if (useRawDoc)
68
80
                        mdocArchive = new MDocDirectoryArchive (Path.Combine (monodocPath, "en"));
69
81
                else
70
 
                        mdocArchive = MDocZipArchive.ExtractAndLoad (Path.Combine (monodocPath, "MonoTouch-lib.zip"));
 
82
                        mdocArchive = MDocZipArchive.ExtractAndLoad (Path.Combine (monodocPath, ArchiveName));
71
83
                mergerOptions.MonodocArchive = mdocArchive;
72
84
                var merger = new AppleDocMerger (mergerOptions);
73
85
                merger.MergeDocumentation ();