diff options
author | Sebastian | 2010-01-27 13:26:06 +0100 |
---|---|---|
committer | Sebastian | 2010-01-27 13:26:06 +0100 |
commit | ec91e5aa5d231f7fabcff1403dbad852a3764ca2 (patch) | |
tree | 3d8e5853bae010fcb865493a31e41bedf23abef4 /broot.sh | |
download | broot-ec91e5aa5d231f7fabcff1403dbad852a3764ca2.tar.gz broot-ec91e5aa5d231f7fabcff1403dbad852a3764ca2.tar.xz broot-ec91e5aa5d231f7fabcff1403dbad852a3764ca2.zip |
broot initial commit
Diffstat (limited to 'broot.sh')
-rwxr-xr-x | broot.sh | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/broot.sh b/broot.sh new file mode 100755 index 0000000..cee9387 --- /dev/null +++ b/broot.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +. ./inc/env.inc.sh # read slx config to find paths +. ./inc/chroot-functions.inc.sh # chroot wrapper +. ./inc/bootstrap.inc.sh # bootsrap buildroot +. ./inc/helper.inc.sh # misc functions (setup bindmounts, etc) +. ./inc/color.inc.sh # functions for color ouput +. ./inc/update.inc.sh # buildroot update functions + + +case $1 in + "setup") + if [ ! -e $buildrootpath/bootstraped ]; then + bootstrap + else + echo " * Found existing buildroot - running update instead" + updatebuildroot + fi + ;; + "update") + if [ ! -e $buildrootpath/bootstraped ]; then + echo " * Can't find existing buildroot - running setup instead" + bootstrap + else + updatebuildroot + fi + ;; + "build-bb") + if [ ! -e $buildrootpath/bootstraped ]; then + echo " * Error: didn't find existing buildroot" + else + echo " * Building busybox" + updateScripts + chroot-exec /root/bin/build-bb.sh + fi + ;; + *) + echo "Usage: broot (setup|update|build-bb)" +esac |