Author: benm
Date: 2005-03-30 16:56:12 -0500 (Wed, 30 Mar 2005)
New Revision: 42392

Added:
   trunk/release/packaging/
   trunk/release/packaging/build
   trunk/release/packaging/conf/
   trunk/release/packaging/conf/suse-92-i586
   trunk/release/packaging/do-build
   trunk/release/packaging/logs/
   trunk/release/packaging/packages/
   trunk/release/packaging/status/
Log:
the miggy packaging script

Added: trunk/release/packaging/build
===================================================================
--- trunk/release/packaging/build       2005-03-30 21:49:23 UTC (rev 42391)
+++ trunk/release/packaging/build       2005-03-30 21:56:12 UTC (rev 42392)
@@ -0,0 +1,42 @@
+#!/bin/sh
+#
+# Usage: build [os-target] [package]
+#
+# Where:
+#    os-target is the OS target that we are building for
+#    package is the name of the BB XML configuration file on the repository
+#
+# Example:
+#    build suse-92-i386 mono-1.1
+#
+#
+
+usage()
+{
+       echo "Usage is: build configuration package"
+}
+
+if test x$2 = x; then
+    usage
+    exit 1;
+fi
+
+if test -f status/$1; then
+   echo There is already a build in progress on $1
+   exit 1
+fi
+
+. conf/$1
+package=$2
+
+scp do-build $target_host:$jaildir/tmp >& logs/$1
+remote_cmd="$chroot /jails/suse-92-i586-root-0/jail sh -x /tmp/do-build 
$package"
+(echo > status/$1; ssh $target_host "sudo $remote_cmd" >& logs/$1; rm 
status/$1)
+scp $target_host:/tmp/status /tmp/status-$1-$2
+if grep -q failure /tmp/status-$1-$2; then
+   echo Build failed, see log in logs/$1 for details
+   exit 1;
+fi
+
+mkdir -p packages/$1/$2
+scp $target_host:/tmp/root/built-packages/* packages/$1/$2


Property changes on: trunk/release/packaging/build
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/release/packaging/conf/suse-92-i586
===================================================================
--- trunk/release/packaging/conf/suse-92-i586   2005-03-30 21:49:23 UTC (rev 
42391)
+++ trunk/release/packaging/conf/suse-92-i586   2005-03-30 21:56:12 UTC (rev 
42392)
@@ -0,0 +1,6 @@
+#
+# Configuration file for SUSE 92 on i586
+#
[EMAIL PROTECTED]
+jaildir=/jails/suse-92-i586-root-0/jail
+chroot=/usr/sbin/chroot

Added: trunk/release/packaging/do-build
===================================================================
--- trunk/release/packaging/do-build    2005-03-30 21:49:23 UTC (rev 42391)
+++ trunk/release/packaging/do-build    2005-03-30 21:56:12 UTC (rev 42392)
@@ -0,0 +1,19 @@
+#!/bin/sh
+
[EMAIL PROTECTED]
+BB_REPODIR=/srv/source-repository
+BB_REPOPORT=22
+ 
+CVSROOT=":ext:[EMAIL PROTECTED]:/cvs/helix-gnome"
+CVS_RSH=/usr/bin/bb_ssh
+ 
+export BB_REPODIR BB_REPOUSER BB_REPOPORT CVSROOT CVS_RSH
+
+echo failure > /tmp/status
+
+rm -rf /tmp/root/built-packages || exit 1
+cd /tmp && rm -rf scratch && mkdir scratch && cd scratch || exit 1
+cvs co mono-conf || exit 1
+cd mono-conf/$1 || exit 1
+bb_redo || exit 1
+echo success > /tmp/status
\ No newline at end of file


Property changes on: trunk/release/packaging/do-build
___________________________________________________________________
Name: svn:executable
   + *

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

Reply via email to