common/tools/ats/ats_specialise_test_drop.pl
changeset 306 6aa713519d4e
parent 158 039d0b7e56f3
child 347 212621c49196
equal deleted inserted replaced
305:48931850b6e8 306:6aa713519d4e
    94     }
    94     }
    95     if (!silent_command("zip -v")) { # See if we've got zip
    95     if (!silent_command("zip -v")) { # See if we've got zip
    96         $zipper = "zip -m $destfile.zip test.xml";
    96         $zipper = "zip -m $destfile.zip test.xml";
    97         $unzipper = "unzip -o $srcfile $xml_in -d .";
    97         $unzipper = "unzip -o $srcfile $xml_in -d .";
    98     }
    98     }
    99     elsif (!silent_command("7z -version")) { # Else see if we've got 7zip
    99     elsif (!silent_command("7z -h")) { # Else see if we've got 7zip
   100         $zipper = "7z u $destfile.zip test.xml";
   100         $zipper = "7z u $destfile.zip test.xml";
   101         $unzipper = "7z e $srcfile $xml_in";
   101         $unzipper = "7z e $srcfile $xml_in";
   102     }
   102     }
   103     else { # Got no archiver.
   103     else { # Got no archiver.
   104         die ("Need programs zip/unzip or 7z. Not found\n");
   104         die ("Need programs zip/unzip or 7z. Not found\n");