equal
deleted
inserted
replaced
95 { |
95 { |
96 try { |
96 try { |
97 val tmp_dir = dir + Path.explode("tmp") |
97 val tmp_dir = dir + Path.explode("tmp") |
98 Isabelle_System.mkdirs(tmp_dir) |
98 Isabelle_System.mkdirs(tmp_dir) |
99 |
99 |
100 if (archive.split_ext._2 == "zip") { |
100 if (archive.get_ext == "zip") { |
101 Isabelle_System.bash( |
101 Isabelle_System.bash( |
102 "unzip -x " + File.bash_path(archive.absolute), cwd = tmp_dir.file).check |
102 "unzip -x " + File.bash_path(archive.absolute), cwd = tmp_dir.file).check |
103 } |
103 } |
104 else { |
104 else { |
105 Isabelle_System.gnutar( |
105 Isabelle_System.gnutar( |