diff options
author | Marco Pesenti Gritti <mpgritti@gmail.com> | 2008-10-25 21:49:00 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpgritti@gmail.com> | 2008-10-25 21:49:00 (GMT) |
commit | 7c177eaba802a65a649d845fb8445c1782065cb9 (patch) | |
tree | daf40eca9b226c93faa16eb59021addb8c46445f | |
parent | 419b9727ddd58ce0c18d31c050dc85f1d713415b (diff) |
Moved to sugar-tools
-rwxr-xr-x | tools/mockbuild | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/tools/mockbuild b/tools/mockbuild deleted file mode 100755 index 204ae44..0000000 --- a/tools/mockbuild +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh - -# Options -CHROOT="default" -MODULESET="sugar chat-activity" - -SJH="SJH_DISTRIBUTION=olpc-3 HOME=/ /opt/sugar/sugar-jhbuild" -SNAPSHOT="sugar-snapshot-`date +%Y%m%d%H%M`.tar.bz2" - -mock -r $CHROOT --init -mock -r $CHROOT --install yum git - -mock -r $CHROOT --shell << EOF -cd /opt -git clone git://dev.laptop.org/sugar-jhbuild sugar - -$SJH depscheck -s >/tmp/deps -EOF - -mock -r $CHROOT --shell cat /tmp/deps | xargs mock -r $CHROOT --install - -cat > /tmp/start-sugar << EOF -#!/bin/sh - -if [ -f /etc/olpc-security ] ; then - DBUS_CONFIG="--config-file /etc/dbus-1/session-olpc.conf" -fi - -DBUS_LAUNCH="/usr/bin/dbus-launch --exit-with-session \$DBUS_CONFIG" -CK_LAUNCH="/usr/bin/ck-xinit-session" -SJH_RUN="/opt/sugar/sugar-jhbuild run" - -exec \$SJH_RUN \$DBUS_LAUNCH \$CK_LAUNCH sugar -EOF - -mock -r $CHROOT --copyin /tmp/start-sugar /tmp - -mock -r $CHROOT --shell << EOF -$SJH --no-interact build $MODULESET - -cp /tmp/start-sugar /opt/sugar/start -chmod +x /opt/sugar/start -rm -rf /opt/sugar/source -tar cvfPj $SNAPSHOT /opt/sugar -EOF - -mock -r $CHROOT --copyout $SNAPSHOT . |