summaryrefslogtreecommitdiff
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
parent182bf06e0d96f84bcdb7d0a584f06b93cd61c2e4 (diff)
add targz and tarbz2 support
-rw-r--r--lib/builder-targets.sh1
-rw-r--r--lib/builder-utils.sh4
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/builder-targets.sh b/lib/builder-targets.sh
index 3ef979f..54e2efb 100644
--- a/lib/builder-targets.sh
+++ b/lib/builder-targets.sh
@@ -16,6 +16,7 @@ builder_config() {
CMD_unrar="`which unrar`" ; builder_check_error "Command 'unrar' not installed"
CMD_zip="`which zip`" ; builder_check_error "Command 'zip' not installed"
CMD_lha="`which lha`" ; builder_check_error "Command 'lha' not installed"
+ CMD_tar="`which tar`" ; builder_check_error "Command 'tar' not installed"
CMD_unix2dos="`which unix2dos`" ; builder_check_error "Command 'unix2dos' not installed"
CMD_identify="`which identify`" ; builder_check_error "Command 'identify' (ImageMagick) not installed"
CMD_zsyncmake="`which zsyncmake`" ; builder_check_error "Command 'zsyncmake' not installed"
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