2010-01-06 Rodrigo Kumpera <rkumpera@novell.com>
authorRodrigo Kumpera <kumpera@gmail.com>
Thu, 7 Jan 2010 12:13:41 +0000 (12:13 -0000)
committerRodrigo Kumpera <kumpera@gmail.com>
Thu, 7 Jan 2010 12:13:41 +0000 (12:13 -0000)
* scripts/Makefile.am: Add peverify script.

* scripts/peverify.in: Added.

svn path=/trunk/mono/; revision=149167

ChangeLog
scripts/Makefile.am
scripts/peverify.in [new file with mode: 0644]

index 73fc0138c005e76e378da610db23e3da122dbce3..add797d241cc879b324820a36503a95424e25a8a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-01-06  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * scripts/Makefile.am: Add peverify script.
+
+       * scripts/peverify.in: Added.
+
 2009-12-22  Geoff Norton  <gnorton@novell.com>
 
        * configure.in: Fix invalid escaping.  Patch from Spina from
index d8d0376f271aaa9b775260743d29576774351960..2085ef09999298760d1aba3d02988cc59d6c048c 100644 (file)
@@ -36,6 +36,7 @@ bin_SCRIPTS = \
        $(MDOC_COMPAT)          \
        mod$(SCRIPT_SUFFIX)     \
        mono-test-install       \
+       peverify                        \
        mono-heapviz
 
 if INSTALL_4_0
@@ -142,6 +143,7 @@ EXTRA_DIST =                        \
        mono-service.in         \
        mono-find-provides.in   \
        mono-find-requires.in   \
+       peverify.in                     \
        mono-test-install       \
        mono-heapviz            \
        $(MDOC_COMPAT)          \
@@ -181,6 +183,9 @@ REWRITE2_1 = $(REWRITE) -e 's,@''framework_version@,2.1,g'
 REWRITE4 = $(REWRITE) -e 's,@''framework_version@,4.0,g'
 REWRITE2_DEBUG = $(REWRITE_DEBUG) -e 's,@''framework_version@,2.0,g'
 
+peverify: peverify.in Makefile
+       $(REWRITE_COMMON) $(srcdir)/peverify.in > $@.tmp
+       mv -f $@.tmp $@
 
 mono-service: mono-service.in Makefile
        $(REWRITE2) -e 's,@''exe_name@,$@,g' $(srcdir)/mono-service.in > $@.tmp
diff --git a/scripts/peverify.in b/scripts/peverify.in
new file mode 100644 (file)
index 0000000..894132e
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec @bindir@/pedump $MONO_OPTIONS --verify metadata,code "$@"