diff options
author | Daniel Francis <francis@sugarlabs.org> | 2013-01-26 01:06:31 (GMT) |
---|---|---|
committer | Daniel Francis <francis@sugarlabs.org> | 2013-01-26 01:06:31 (GMT) |
commit | 6cf406db1effeef5633943f617f719d5fa072380 (patch) | |
tree | 557fa2757b9d7b59e55fe11effd87b51c166dcea /env.sh | |
parent | 6b4820792730d2e149c898c24bfab974fa22c0fa (diff) |
Use Makefile to run sugar-build commands
Signed-off-by: Daniel Francis <francis@sugarlabs.org>
Diffstat (limited to 'env.sh')
-rwxr-xr-x | env.sh | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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 ;; |