Author: lupus
Date: 2006-11-30 06:17:13 -0500 (Thu, 30 Nov 2006)
New Revision: 68738

Modified:
   trunk/monocov/ChangeLog
   trunk/monocov/MANIFEST
   trunk/monocov/Makefile
   trunk/monocov/README
   trunk/monocov/configure
   trunk/monocov/style.xsl
Log:


Thu Nov 30 12:15:03 CET 2006 Paolo Molaro <[EMAIL PROTECTED]>

        * Ship a Cecil binary in the source tarball. Added a
        configure option to specify a Cecil binary.
        * style.xsl: fixed mangling of hrefs.



Modified: trunk/monocov/ChangeLog
===================================================================
--- trunk/monocov/ChangeLog     2006-11-30 10:12:24 UTC (rev 68737)
+++ trunk/monocov/ChangeLog     2006-11-30 11:17:13 UTC (rev 68738)
@@ -1,4 +1,10 @@
 
+Thu Nov 30 12:15:03 CET 2006 Paolo Molaro <[EMAIL PROTECTED]>
+
+       * Ship a Cecil binary in the source tarball. Added a
+       configure option to specify a Cecil binary.
+       * style.xsl: fixed mangling of hrefs.
+
 Mon Nov 27 13:47:24 CET 2006 Paolo Molaro <[EMAIL PROTECTED]>
 
        * UI updates. Removed unused dependency on gnome-sharp.

Modified: trunk/monocov/MANIFEST
===================================================================
--- trunk/monocov/MANIFEST      2006-11-30 10:12:24 UTC (rev 68737)
+++ trunk/monocov/MANIFEST      2006-11-30 11:17:13 UTC (rev 68738)
@@ -25,3 +25,4 @@
 nunit-console.cs
 coverage.c
 monocov.1
+Mono.Cecil.dll

Modified: trunk/monocov/Makefile
===================================================================
--- trunk/monocov/Makefile      2006-11-30 10:12:24 UTC (rev 68737)
+++ trunk/monocov/Makefile      2006-11-30 11:17:13 UTC (rev 68738)
@@ -93,7 +93,7 @@
        rm -f monocov.exe monocov.exe.mdb symbols.exe symbols.exe.mdb 
nunit-console.exe libmono-profiler-monocov.so
 
 distclean:
-       rm -f monocov Mono.Cecil.dll config.make Constants.cs
+       rm -f monocov config.make Constants.cs
 
 dist:
        tar -chzf $(PROJECTNAME)-$(VERSION).tar.gz `cat MANIFEST` \

Modified: trunk/monocov/README
===================================================================
--- trunk/monocov/README        2006-11-30 10:12:24 UTC (rev 68737)
+++ trunk/monocov/README        2006-11-30 11:17:13 UTC (rev 68738)
@@ -11,7 +11,9 @@
 ----------------
 
 Recent Mono and Gtk# releases. You also need Mono.Cecil installed
-or copied in the source dir and where the programs are run from..
+or copied in the source dir and where the programs are run from.
+The source release contains Mono.Cecil.dll and make install takes
+care of installing it properly.
 
 2. USAGE
 --------
@@ -64,11 +66,16 @@
 The generated XML files use a default stylesheet which is a bit ugly. It would
 be good if somebody could contribute a better one :)
 
+To export the data as HTML, run monocov like this:
+       monocov --export-html=<DEST DIR> <DATA FILE NAME>
+
 2.5 KNOWN BUGS
 --------------
 
 In the source code view (when double-clicking on an entry), the view is not
 scrolled to the first line of the method.
+The --debug option to mono should not be required and it should be enabled
+by default.
 
 3. UTILITY PROGRAMS
 -------------------
@@ -103,7 +110,7 @@
 
 Zoltan Varga ([EMAIL PROTECTED])
 Jacob Ilsø Christensen ([EMAIL PROTECTED])
-or 
+or preferably
 the mono devel list ([EMAIL PROTECTED])
 
 RANDOM NOTES:

Modified: trunk/monocov/configure
===================================================================
--- trunk/monocov/configure     2006-11-30 10:12:24 UTC (rev 68737)
+++ trunk/monocov/configure     2006-11-30 11:17:13 UTC (rev 68738)
@@ -5,11 +5,12 @@
 help()
 {
        echo ""
-       echo "Usage is: configure [--prefix=PREFIX]"
+       echo "Usage is: configure [--prefix=PREFIX] [--cecil=PATH_TO_CECIL_DLL]"
        echo ""
 }
 
 prefix=/usr/local
+cecilbin=
 
 while [ $# -ne 0 ]; do
   case $1 in
@@ -26,6 +27,10 @@
        prefix="$1"
        shift
        ;;
+    --cecil=*)
+       cecilbin=`echo $1 | sed 's/--cecil=//'`;
+       shift
+       ;;
     *)
        echo Unknown option: $1
        help
@@ -33,16 +38,24 @@
   esac
 done
 
-cecilbin=`pkg-config --variable=Libraries mono-cecil`
+if test -z "$cecilbin"; then
+       cecilbin=`pkg-config --variable=Libraries mono-cecil`
+fi
 
-if test -z $cecilbin; then
+if test -z "$cecilbin"; then
        echo "Cecil is not installed."
-       exit 1
+       if test -f Mono.Cecil.dll; then
+               echo "Using packaged Mono.Cecil.dll."
+       else
+               echo "No Mono.Cecil.dll found, use 
--cecil=/path/to/Mono.Cecil.dll option."
+               exit 1
+       fi
+else
+       # copy Mono.Cecil here
+       echo "Using Cecil from $cecilbin."
+       cp $cecilbin .
 fi
 
-# copy Mono.Cecil here
-cp $cecilbin .
-
 echo "prefix=$prefix" > config.make
 echo "VERSION=$VERSION" >> config.make
 echo "class Constants {public const string Version=\"$VERSION\";}"  
>Constants.cs

Modified: trunk/monocov/style.xsl
===================================================================
--- trunk/monocov/style.xsl     2006-11-30 10:12:24 UTC (rev 68737)
+++ trunk/monocov/style.xsl     2006-11-30 11:17:13 UTC (rev 68738)
@@ -71,14 +71,11 @@
             <xsl:with-param name="count" select="3"/>
           </xsl:call-template>
           <xsl:variable name="url">
-            <xsl:if test="name()='project'">
-              project<xsl:value-of select="$link-suffix"/>
+            <xsl:if test="name()='project'">project<xsl:value-of 
select="$link-suffix"/>
             </xsl:if>
-            <xsl:if test="name()='namespace'">
-              namespace-<xsl:value-of select="@name"/><xsl:value-of 
select="$link-suffix"/>
+            <xsl:if test="name()='namespace'">namespace-<xsl:value-of 
select="@name"/><xsl:value-of select="$link-suffix"/>
             </xsl:if>
-            <xsl:if test="name()='class'">
-              class-<xsl:value-of select="@fullname"/><xsl:value-of 
select="$link-suffix"/>
+            <xsl:if test="name()='class'">class-<xsl:value-of 
select="@fullname"/><xsl:value-of select="$link-suffix"/>
             </xsl:if>
           </xsl:variable>
           <xsl:if test="count(..|/)=1">

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

Reply via email to