Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Thu Nov 30 12:15:03 CET 2006 Paolo Molaro <lupus@ximian.com>

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


svn path=/trunk/monocov/; revision=68738
  • Loading branch information...
commit d8805b62ae554cc0363b51746d4085c340bbfa4b 1 parent 9feebd2
Paolo Molaro authored November 30, 2006
6  ChangeLog
... ...
@@ -1,4 +1,10 @@
1 1
 
  2
+Thu Nov 30 12:15:03 CET 2006 Paolo Molaro <lupus@ximian.com>
  3
+
  4
+	* Ship a Cecil binary in the source tarball. Added a
  5
+	configure option to specify a Cecil binary.
  6
+	* style.xsl: fixed mangling of hrefs.
  7
+
2 8
 Mon Nov 27 13:47:24 CET 2006 Paolo Molaro <lupus@ximian.com>
3 9
 
4 10
 	* UI updates. Removed unused dependency on gnome-sharp.
1  MANIFEST
@@ -25,3 +25,4 @@ symbols.cs
25 25
 nunit-console.cs
26 26
 coverage.c
27 27
 monocov.1
  28
+Mono.Cecil.dll
2  Makefile
@@ -93,7 +93,7 @@ clean:
93 93
 	rm -f monocov.exe monocov.exe.mdb symbols.exe symbols.exe.mdb nunit-console.exe libmono-profiler-monocov.so
94 94
 
95 95
 distclean:
96  
-	rm -f monocov Mono.Cecil.dll config.make Constants.cs
  96
+	rm -f monocov config.make Constants.cs
97 97
 
98 98
 dist:
99 99
 	tar -chzf $(PROJECTNAME)-$(VERSION).tar.gz `cat MANIFEST` \
11  README
@@ -11,7 +11,9 @@ the program you want to gather coverage data from and a Gtk# user interface.
11 11
 ----------------
12 12
 
13 13
 Recent Mono and Gtk# releases. You also need Mono.Cecil installed
14  
-or copied in the source dir and where the programs are run from..
  14
+or copied in the source dir and where the programs are run from.
  15
+The source release contains Mono.Cecil.dll and make install takes
  16
+care of installing it properly.
15 17
 
16 18
 2. USAGE
17 19
 --------
@@ -64,11 +66,16 @@ To export the data as XML, run monocov like this:
64 66
 The generated XML files use a default stylesheet which is a bit ugly. It would
65 67
 be good if somebody could contribute a better one :)
66 68
 
  69
+To export the data as HTML, run monocov like this:
  70
+	monocov --export-html=<DEST DIR> <DATA FILE NAME>
  71
+
67 72
 2.5 KNOWN BUGS
68 73
 --------------
69 74
 
70 75
 In the source code view (when double-clicking on an entry), the view is not
71 76
 scrolled to the first line of the method.
  77
+The --debug option to mono should not be required and it should be enabled
  78
+by default.
72 79
 
73 80
 3. UTILITY PROGRAMS
74 81
 -------------------
@@ -103,7 +110,7 @@ zlib/libpng.
103 110
 
104 111
 Zoltan Varga (vargaz@freemail.hu)
105 112
 Jacob Ilsø Christensen (jacobilsoe@gmail.com)
106  
-or 
  113
+or preferably
107 114
 the mono devel list (mono-devel-list@ximian.com)
108 115
 
109 116
 RANDOM NOTES:
27  configure
@@ -5,11 +5,12 @@ VERSION=0.2
5 5
 help()
6 6
 {
7 7
 	echo ""
8  
-	echo "Usage is: configure [--prefix=PREFIX]"
  8
+	echo "Usage is: configure [--prefix=PREFIX] [--cecil=PATH_TO_CECIL_DLL]"
9 9
 	echo ""
10 10
 }
11 11
 
12 12
 prefix=/usr/local
  13
+cecilbin=
13 14
 
14 15
 while [ $# -ne 0 ]; do
15 16
   case $1 in
@@ -26,6 +27,10 @@ while [ $# -ne 0 ]; do
26 27
 	prefix="$1"
27 28
 	shift
28 29
 	;;
  30
+    --cecil=*)
  31
+    	cecilbin=`echo $1 | sed 's/--cecil=//'`;
  32
+	shift
  33
+	;;
29 34
     *)
30 35
 	echo Unknown option: $1
31 36
 	help
@@ -33,16 +38,24 @@ while [ $# -ne 0 ]; do
33 38
   esac
34 39
 done
35 40
 
36  
-cecilbin=`pkg-config --variable=Libraries mono-cecil`
  41
+if test -z "$cecilbin"; then
  42
+	cecilbin=`pkg-config --variable=Libraries mono-cecil`
  43
+fi
37 44
 
38  
-if test -z $cecilbin; then
  45
+if test -z "$cecilbin"; then
39 46
 	echo "Cecil is not installed."
40  
-	exit 1
  47
+	if test -f Mono.Cecil.dll; then
  48
+		echo "Using packaged Mono.Cecil.dll."
  49
+	else
  50
+		echo "No Mono.Cecil.dll found, use --cecil=/path/to/Mono.Cecil.dll option."
  51
+		exit 1
  52
+	fi
  53
+else
  54
+	# copy Mono.Cecil here
  55
+	echo "Using Cecil from $cecilbin."
  56
+	cp $cecilbin .
41 57
 fi
42 58
 
43  
-# copy Mono.Cecil here
44  
-cp $cecilbin .
45  
-
46 59
 echo "prefix=$prefix" > config.make
47 60
 echo "VERSION=$VERSION" >> config.make
48 61
 echo "class Constants {public const string Version=\"$VERSION\";}"  >Constants.cs
9  style.xsl
@@ -71,14 +71,11 @@
71 71
             <xsl:with-param name="count" select="3"/>
72 72
           </xsl:call-template>
73 73
           <xsl:variable name="url">
74  
-            <xsl:if test="name()='project'">
75  
-              project<xsl:value-of select="$link-suffix"/>
  74
+            <xsl:if test="name()='project'">project<xsl:value-of select="$link-suffix"/>
76 75
             </xsl:if>
77  
-            <xsl:if test="name()='namespace'">
78  
-              namespace-<xsl:value-of select="@name"/><xsl:value-of select="$link-suffix"/>
  76
+            <xsl:if test="name()='namespace'">namespace-<xsl:value-of select="@name"/><xsl:value-of select="$link-suffix"/>
79 77
             </xsl:if>
80  
-            <xsl:if test="name()='class'">
81  
-              class-<xsl:value-of select="@fullname"/><xsl:value-of select="$link-suffix"/>
  78
+            <xsl:if test="name()='class'">class-<xsl:value-of select="@fullname"/><xsl:value-of select="$link-suffix"/>
82 79
             </xsl:if>
83 80
           </xsl:variable>
84 81
           <xsl:if test="count(..|/)=1">

0 notes on commit d8805b6

Please sign in to comment.
Something went wrong with that request. Please try again.