Author: jbevain
Date: 2007-07-05 13:05:37 -0400 (Thu, 05 Jul 2007)
New Revision: 81410

Modified:
   trunk/cecil/linker/man/monolinker.1
Log:
update man page

Modified: trunk/cecil/linker/man/monolinker.1
===================================================================
--- trunk/cecil/linker/man/monolinker.1 2007-07-05 16:44:45 UTC (rev 81409)
+++ trunk/cecil/linker/man/monolinker.1 2007-07-05 17:05:37 UTC (rev 81410)
@@ -128,6 +128,48 @@
 You can ask the linker to execute custom steps by using the -s command. This 
command
 takes the standard TypeFullName,Assembly format to locate the step. You can 
customize
 its position in the pipeline by either adding it before a step, or after.
+.PP
+Example:
+.PP
+.nf
+using System;
+
+using Mono.Linker;
+using Mono.Linker.Steps;
+
+namespace Foo {
+
+       public class FooStep : IStep {
+
+               public void Process (LinkContext context)
+               {
+                       foreach (IStep step in context.Pipeline.GetSteps ()) {
+                               Console.WriteLine (step.GetType ().Name);
+                       }
+               }
+       }
+}
+.fi
+.PP
+If you compile this custom against monolinker to a Foo.dll assembly, you
+can use the -s switch as follow, to add the FooStep at the end of the pipeline:
+.PP
+.nf
+monolinker -s Foo.FooStep,Foo -a program.exe
+.fi
+.PP
+This commanand will add the FooStep after the MarkStep:
+.PP
+.nf
+monolinker -s MarkStep:Foo.FooStep,Foo -a program.exe
+.fi
+.PP
+This commanand will add the FooStep before the MarkStep:
+.PP
+.nf
+monolinker -s Foo.FooStep,Foo:MarkStep -a program.exe
+.fi
+This command will add the FooStep before the MarkStep
 .SH COPYRIGHT
 Copyright (C) 2007 Novell, Inc (http://www.novell.com)
 .SH BUGS

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to