Added cab file extraction

This commit is contained in:
Peter Singer 2012-10-30 16:22:30 +01:00
parent 4e92928834
commit 6403a39b50
2 changed files with 3 additions and 0 deletions

View File

@ -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"

View File

@ -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