summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Singer <[email protected]>2012-10-30 15:22:30 (GMT)
committer Peter Singer <[email protected]>2012-10-30 15:22:30 (GMT)
commit6403a39b5052a8063c2d154d320c717c5babff3b (patch)
tree3a400819df4206f02f5396653828684e2fafa304
parent4e92928834be736a7b3e87566fe6256e347f6d10 (diff)
Added cab file extraction
-rw-r--r--lib/builder-targets.sh1
-rw-r--r--lib/builder-utils.sh2
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/builder-targets.sh b/lib/builder-targets.sh
index 381853d..746168c 100644
--- a/lib/builder-targets.sh
+++ b/lib/builder-targets.sh
@@ -17,6 +17,7 @@ builder_config() {
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_cabextract="`which cabextract`" ; builder_check_error "Command 'cabextract' 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 a0dc093..8b9b5cf 100644
--- a/lib/builder-utils.sh
+++ b/lib/builder-utils.sh
@@ -68,6 +68,8 @@ function process_file() {
$CMD_tar xzvf $src -C $dst
elif [ "$format" = "tarbz2" ]; then
$CMD_tar xjvf $src -C $dst
+ elif [ "$format" = "cab" ]; then
+ $CMD_cabextract -d $dst $src
else
fatal_error "Unknown compression format: $format"
fi

Powered by Domaintechnik.at | Hosting - Domain - Webspace