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-26 01:06:31 (GMT)
committer Daniel Francis <francis@sugarlabs.org>2013-01-26 01:06:31 (GMT)
commit6cf406db1effeef5633943f617f719d5fa072380 (patch)
tree557fa2757b9d7b59e55fe11effd87b51c166dcea /env.sh
parent6b4820792730d2e149c898c24bfab974fa22c0fa (diff)
Use Makefile to run sugar-build commands
Signed-off-by: Daniel Francis <francis@sugarlabs.org>
Diffstat (limited to 'env.sh')
-rwxr-xr-xenv.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/env.sh b/env.sh
index 617ef71..6c6d781 100755
--- a/env.sh
+++ b/env.sh
@@ -46,10 +46,23 @@ copy_files () {
cp sources.list install/etc/apt/
cp sugar-env-setup.sh install/usr/bin/
cp sugar-build-clone.sh install/usr/bin/
+ cp sugar-build-command install/usr/bin/
cp install/etc/bash.bashrc install/root/.bashrc
echo "##### OK #####"
}
+create_symlinks () {
+ echo "#######################"
+ echo "Creating symbolic links"
+ echo "#######################"
+
+ ln -s install/home/sugar/sugar-build/source ./source
+ mkdir install/home/sugar/sugar-build/activities
+ ln -s install/home/sugar/sugar-build/activities ./activities
+
+ echo "##### OK #####"
+}
+
# Installation function
installenv () {
check_root
@@ -62,6 +75,7 @@ installenv () {
copy_files
./sugar-chroot install sugar-env-setup.sh
+ create_symlinks
}
chrootshell () {
@@ -85,6 +99,9 @@ case $1 in
shell)
chrootshell
;;
+ symlinks)
+ create_symlinks
+ ;;
*)
usage
;;