Permalink
Browse files

support bz2 tarballs

  • Loading branch information...
1 parent 82edbbb commit 671448c6c8ee7893a305f2640ea433d133852f5e @ddollar committed Aug 14, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 bin/fetch
View
@@ -56,6 +56,13 @@ case $source_url in
tar xzf $tarball
cd - >/dev/null 2>&1
;;
+ *.tar.b2|*.tbz|*.tbz2)
+ tarball=$(mktemp -t tarball_XXXXX)
+ curl -s $source_url -o $tarball
+ cd $compile_dir >/dev/null 2>&1
+ tar xjf $tarball
+ cd - >/dev/null 2>&1
+ ;;
*)
error "failed, unknown source type: $source_url"
;;

0 comments on commit 671448c

Please sign in to comment.