Merge branch 'master' of disconnected-by-peer.at:go-opsi/devtools

This commit is contained in:
DT Netsolution GmbH 2012-04-23 11:12:31 +02:00
commit f8cb696af9
2 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,7 @@ builder_config() {
CMD_unzip="`which unzip`" ; builder_check_error "Command 'unzip' not installed" CMD_unzip="`which unzip`" ; builder_check_error "Command 'unzip' not installed"
CMD_unrar="`which unrar`" ; builder_check_error "Command 'unrar' not installed" CMD_unrar="`which unrar`" ; builder_check_error "Command 'unrar' not installed"
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_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"

View File

@ -62,6 +62,8 @@ function process_file() {
$CMD_unzip $src -d $dst $CMD_unzip $src -d $dst
elif [ "$format" = "unrar" ]; then elif [ "$format" = "unrar" ]; then
$CMD_unrar x $src $dst $CMD_unrar x $src $dst
elif [ "$format" = "lha" ]; then
$CMD_lha x -w=$dst $src
else else
fatal_error "Unknown compression format: $format" fatal_error "Unknown compression format: $format"
fi fi