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 01:01:08 (GMT)
committer Daniel Francis <francis@sugarlabs.org>2013-01-24 01:01:08 (GMT)
commit04fad2963b171a07e9debf8db2002ebd0d177cf7 (patch)
treeb39f87cfc590254cebd89f2f9e343ee8f528cfc1 /env.sh
Initial commit
Signed-off-by: Daniel Francis <francis@sugarlabs.org>
Diffstat (limited to 'env.sh')
-rwxr-xr-xenv.sh43
1 files changed, 43 insertions, 0 deletions
diff --git a/env.sh b/env.sh
new file mode 100755
index 0000000..62e66ea
--- /dev/null
+++ b/env.sh
@@ -0,0 +1,43 @@
+#!/bin/sh
+#
+# Copyright (C) 2013 Daniel Francis <francis@sugarlabs.org>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+# MA 02110-1301, USA.
+
+
+# Help message
+usage () {
+ echo "Usage:"
+ echo $0 install - Install the environment and build Sugar
+ echo $0 shell - A virtual shell to run Sugar
+ echo $0 help - Show this help message and exit
+ exit
+}
+
+#Check for arguments
+case $1 in
+ help)
+ usage
+ ;;
+ install)
+ installenv
+ ;;
+ shell)
+ chrootshell
+ ;;
+esac
+
+usage()