equal
deleted
inserted
replaced
416 if (gnutar_check) bash("tar " + options + args, redirect = redirect) |
416 if (gnutar_check) bash("tar " + options + args, redirect = redirect) |
417 else error("Expected to find GNU tar executable") |
417 else error("Expected to find GNU tar executable") |
418 } |
418 } |
419 |
419 |
420 def make_patch(base_dir: Path, src: Path, dst: Path, diff_options: String = ""): String = { |
420 def make_patch(base_dir: Path, src: Path, dst: Path, diff_options: String = ""): String = { |
421 with_tmp_file("patch")(patch => { |
421 with_tmp_file("patch") { patch => |
422 Isabelle_System.bash( |
422 Isabelle_System.bash( |
423 "diff -ru " + diff_options + " -- " + File.bash_path(src) + " " + File.bash_path(dst) + |
423 "diff -ru " + diff_options + " -- " + File.bash_path(src) + " " + File.bash_path(dst) + |
424 " > " + File.bash_path(patch), |
424 " > " + File.bash_path(patch), |
425 cwd = base_dir.file).check_rc(_ <= 1) |
425 cwd = base_dir.file).check_rc(_ <= 1) |
426 File.read(patch) |
426 File.read(patch) |
427 }) |
427 } |
428 } |
428 } |
429 |
429 |
430 def hostname(): String = bash("hostname -s").check.out |
430 def hostname(): String = bash("hostname -s").check.out |
431 |
431 |
432 def open(arg: String): Unit = |
432 def open(arg: String): Unit = |