diff options
author | Daniel Francis <francis@sugarlabs.org> | 2013-01-24 16:19:32 (GMT) |
---|---|---|
committer | Daniel Francis <francis@sugarlabs.org> | 2013-01-24 16:19:32 (GMT) |
commit | 67c35e18f44df999cce5eab62b1849d33e593879 (patch) | |
tree | f5b8f54b0fb568ad1a683b6ceb0cc4d26f3f807e /env.sh | |
parent | 607657f16231f8a22a51568fec4ba1a226c9c8d2 (diff) |
Setup system, clone and build Sugar-build
Signed-off-by: Daniel Francis <francis@sugarlabs.org>
Diffstat (limited to 'env.sh')
-rwxr-xr-x | env.sh | 20 |
1 files changed, 12 insertions, 8 deletions
@@ -35,11 +35,12 @@ clean_install () { echo "[OK]" } -configure_apt () { - echo "Configuring APT" - cp sources.list install/etc/apt/sources.list - chroot install apt-get update - echo "APT Configured" +copy_files () { + echo "Copying files" + cp sources.list install/etc/apt/ + cp sugar-env-setup.sh install/usr/bin/ + cp sugar-build-clone.sh install/usr/bin/ + echo "[OK]" } # Installation function @@ -50,7 +51,9 @@ installenv () { echo "Installing base system" debootstrap --variant=buildd quantal ./install http://archive.ubuntu.com/ubuntu/ - configure_apt + copy_files + chroot install sugar-env-setup.sh + exit } @@ -71,6 +74,7 @@ case $1 in shell) chrootshell ;; + *) + usage + ;; esac - -usage |