From 6403a39b5052a8063c2d154d320c717c5babff3b Mon Sep 17 00:00:00 2001 From: Peter Singer Date: Tue, 30 Oct 2012 16:22:30 +0100 Subject: [PATCH] Added cab file extraction --- lib/builder-targets.sh | 1 + lib/builder-utils.sh | 2 ++ 2 files changed, 3 insertions(+) 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