summaryrefslogtreecommitdiff
path: root/lib/builder-utils.sh
diff options
context:
space:
mode:
authorMario Fetka <[email protected]>2012-05-16 04:32:07 (GMT)
committer Mario Fetka <[email protected]>2012-05-16 04:32:07 (GMT)
commit1f212c3b4995526e85467636be82316a288421e8 (patch)
treef5e5419b003af34fd9d81fdf1613aefa375d0bde /lib/builder-utils.sh
parent182bf06e0d96f84bcdb7d0a584f06b93cd61c2e4 (diff)
add targz and tarbz2 support
Diffstat (limited to 'lib/builder-utils.sh')
-rw-r--r--lib/builder-utils.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/builder-utils.sh b/lib/builder-utils.sh
index 6ac35ea..a0dc093 100644
--- a/lib/builder-utils.sh
+++ b/lib/builder-utils.sh
@@ -64,6 +64,10 @@ function process_file() {
$CMD_unrar x $src $dst
elif [ "$format" = "lha" ]; then
$CMD_lha x -w=$dst $src
+ elif [ "$format" = "targz" ]; then
+ $CMD_tar xzvf $src -C $dst
+ elif [ "$format" = "tarbz2" ]; then
+ $CMD_tar xjvf $src -C $dst
else
fatal_error "Unknown compression format: $format"
fi

Powered by Domaintechnik.at | Hosting - Domain - Webspace