Added cab file extraction
This commit is contained in:
parent
4e92928834
commit
6403a39b50
@ -17,6 +17,7 @@ builder_config() {
|
|||||||
CMD_zip="`which zip`" ; builder_check_error "Command 'zip' 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_lha="`which lha`" ; builder_check_error "Command 'lha' not installed"
|
||||||
CMD_tar="`which tar`" ; builder_check_error "Command 'tar' 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_unix2dos="`which unix2dos`" ; builder_check_error "Command 'unix2dos' not installed"
|
||||||
CMD_identify="`which identify`" ; builder_check_error "Command 'identify' (ImageMagick) 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"
|
CMD_zsyncmake="`which zsyncmake`" ; builder_check_error "Command 'zsyncmake' not installed"
|
||||||
|
@ -68,6 +68,8 @@ function process_file() {
|
|||||||
$CMD_tar xzvf $src -C $dst
|
$CMD_tar xzvf $src -C $dst
|
||||||
elif [ "$format" = "tarbz2" ]; then
|
elif [ "$format" = "tarbz2" ]; then
|
||||||
$CMD_tar xjvf $src -C $dst
|
$CMD_tar xjvf $src -C $dst
|
||||||
|
elif [ "$format" = "cab" ]; then
|
||||||
|
$CMD_cabextract -d $dst $src
|
||||||
else
|
else
|
||||||
fatal_error "Unknown compression format: $format"
|
fatal_error "Unknown compression format: $format"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user