diff options
author | Daniel Francis <francis@sugarlabs.org> | 2013-01-24 01:01:08 (GMT) |
---|---|---|
committer | Daniel Francis <francis@sugarlabs.org> | 2013-01-24 01:01:08 (GMT) |
commit | 04fad2963b171a07e9debf8db2002ebd0d177cf7 (patch) | |
tree | b39f87cfc590254cebd89f2f9e343ee8f528cfc1 /env.sh |
Initial commit
Signed-off-by: Daniel Francis <francis@sugarlabs.org>
Diffstat (limited to 'env.sh')
-rwxr-xr-x | env.sh | 43 |
1 files changed, 43 insertions, 0 deletions
@@ -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() |