Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/env.sh
diff options
context:
space:
mode:
authorDaniel Francis <francis@sugarlabs.org>2013-01-24 16:19:32 (GMT)
committer Daniel Francis <francis@sugarlabs.org>2013-01-24 16:19:32 (GMT)
commit67c35e18f44df999cce5eab62b1849d33e593879 (patch)
treef5b8f54b0fb568ad1a683b6ceb0cc4d26f3f807e /env.sh
parent607657f16231f8a22a51568fec4ba1a226c9c8d2 (diff)
Setup system, clone and build Sugar-build
Signed-off-by: Daniel Francis <francis@sugarlabs.org>
Diffstat (limited to 'env.sh')
-rwxr-xr-xenv.sh20
1 files changed, 12 insertions, 8 deletions
diff --git a/env.sh b/env.sh
index ef92e73..ffe8969 100755
--- a/env.sh
+++ b/env.sh
@@ -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