Author: wade
Date: 2007-10-10 15:22:31 -0400 (Wed, 10 Oct 2007)
New Revision: 87294
Modified:
trunk/release/packaging/defs/mono
Log:
defs/mono:
generate class status pages as a step in monobuild
Modified: trunk/release/packaging/defs/mono
===================================================================
--- trunk/release/packaging/defs/mono 2007-10-10 19:16:32 UTC (rev 87293)
+++ trunk/release/packaging/defs/mono 2007-10-10 19:22:31 UTC (rev 87294)
@@ -432,6 +432,102 @@
fi
}
+POSTBUILD_STEP_NAME7="api-diff"
+POSTBUILD_STEP7 () {
+
+ if test x$DISTRO = xsles-9-i586 ; then
+ VERSION=1.1
+ elif test x$DISTRO = xsles-9-x86_64 ; then
+ VERSION=2.0
+ else
+ echo "Class status pages not generated on this platform"
+ exit 0
+ fi
+
+ ASSEMBLIES=(
+ System
+ System.Configuration.Install
+ System.Data
+ System.Data.OracleClient
+ System.Design
+ System.DirectoryServices
+ System.Drawing
+ System.Drawing.Design
+ System.EnterpriseServices
+ System.Management
+ System.Messaging
+ System.Runtime.Remoting
+ System.Runtime.Serialization.Formatters.Soap
+ System.Security
+ System.ServiceProcess
+ System.Web
+ System.Web.Services
+ System.Windows.Forms
+ System.Xml
+ cscompmgd
+ mscorlib
+ )
+
+ case $VERSION in
+ 1.1) PROFILE=default ;;
+ 2.0) PROFILE=net_2_0 ; ASSEMBLIES=(
+ [EMAIL PROTECTED]
+ Microsoft.Build.Engine
+ Microsoft.Build.Framework
+ Microsoft.Build.Tasks
+ Microsoft.Build.Utilities
+ System.Configuration
+ System.ServiceProcess
+ System.Transactions
+ ) ;;
+ esac
+
+
+ mkdir status
+ cd status
+
+ wget http://mono.ximian.com/masterinfos/masterinfos-$VERSION.tar.gz
+
+ # todo: wget these out of subversion
+ wget http://primates.ximian.com/~wberrier/class_status/deploy.tar.bz2
+ wget http://primates.ximian.com/~wberrier/class_status/mono-api.xsl
+
+ tar -zxf masterinfos-$VERSION.tar.gz
+ tar -jxf deploy.tar.bz2
+
+ mkdir infos
+ mkdir src
+
+ echo "<ul>" >> deploy/index.html
+
+ export MONO_PATH=../mcs/class/lib/$PROFILE
+ RUNTIME=../runtime/mono-wrapper
+
+ # Output to step-output dir, which will get recursively copied back to
the build info
+ # Are these per file, or can multiple namespaces be in a file... ??
+ # (ie: is it ok for this list to be generated dynamically?)
+ for i in [EMAIL PROTECTED] ; do
+ i="../mcs/class/lib/$PROFILE/$i"
+ f=`basename $i .dll`
+
+ # Only generate for the files we have master infos for
+ if [ -e masterinfos/$f.xml ] ; then
+ echo "building class status page for: $i"
+ $RUNTIME ../mcs/class/lib/$PROFILE/mono-api-info.exe
$i > infos/$f.xml
+ $RUNTIME ../mcs/tools/corcompare/mono-api-diff.exe
masterinfos/$f.xml infos/$f.xml > src/$f.src
+ $RUNTIME ../mcs/tools/corcompare/transform.exe
src/$f.src mono-api.xsl source-name=$f.src > deploy/$f.html
+ echo "<li><a href=\"$f.html\">$f</a></li>" >>
deploy/index.html
+ fi
+ done
+ echo "</ul>" >> deploy/index.html
+
+ target=$build_location/steps/api-diff
+ mkdir -p $target
+ cp -Rf deploy/* $target
+
+
+}
+
# This step gets executed after all tests, or after a build failure
CLEAN_UP () {
#echo "Skipping..."
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches