Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/env.sh
diff options
context:
space:
mode:
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
;;