diff --git a/tbootstrap.sh b/tbootstrap.sh index 36d0487..fffbb3e 100755 --- a/tbootstrap.sh +++ b/tbootstrap.sh @@ -33,16 +33,26 @@ function build() done } +function wipe() +{ + for pkgname in $filelist; do + rm -fr $pkgname || exit 1 + done +} + case $1 in "install") - install - ;; + install + ;; "fetch") - fetch - ;; + fetch + ;; "build") - build - ;; + build + ;; +"wipe") + wipe + ;; *) echo Unknown command ;;