diff options
author | Marco Pesenti Gritti <mpgritti@gmail.com> | 2008-10-18 02:04:28 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpgritti@gmail.com> | 2008-10-18 02:04:28 (GMT) |
commit | 5e8fdc826531733405004f6f295b8b20b43f7b42 (patch) | |
tree | 037d2ed68950c09b33824ba1404586dd90603c54 /scripts | |
parent | ff069d29ee42c38056ea4a63c7a3f8d6b865f7da (diff) |
Initial mockbuild scripts. It creates a mock sandbox,
install the sysdeps and run jhbuild in it.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mockbuild | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/mockbuild b/scripts/mockbuild new file mode 100755 index 0000000..a3f8fe4 --- /dev/null +++ b/scripts/mockbuild @@ -0,0 +1,20 @@ +#!/bin/sh + +SJH="HOME=/ /opt/sugar/sugar-jhbuild" + +mock --init +mock --install yum git + +mock --shell << EOF + cd /opt + git clone git://dev.laptop.org/sugar-jhbuild sugar + + $SJH depscheck -s >/tmp/deps +EOF + +mock --shell cat /tmp/deps | xargs mock --install + +mock --shell << EOF + $SJH --no-interact build +EOF + |