src/Pure/System/components.scala
changeset 77058 44f79689115d
parent 77057 e233054dcb00
child 77059 422c57b75b17
equal deleted inserted replaced
77057:e233054dcb00 77058:44f79689115d
    49     dir + Path.explode("contrib") + Path.explode(name)
    49     dir + Path.explode("contrib") + Path.explode(name)
    50 
    50 
    51   def unpack(dir: Path, archive: Path, progress: Progress = new Progress): String = {
    51   def unpack(dir: Path, archive: Path, progress: Progress = new Progress): String = {
    52     val name = Archive.get_name(archive.file_name)
    52     val name = Archive.get_name(archive.file_name)
    53     progress.echo("Unpacking " + name)
    53     progress.echo("Unpacking " + name)
    54     Isabelle_System.extract(archive, dir)
    54     Isabelle_System.bash(
       
    55       "tar -C " + File.bash_path(dir) + " -x -z -f " + File.bash_path(archive)).check
    55     name
    56     name
    56   }
    57   }
    57 
    58 
    58   def resolve(base_dir: Path, names: List[String],
    59   def resolve(base_dir: Path, names: List[String],
    59     target_dir: Option[Path] = None,
    60     target_dir: Option[Path] = None,