changeset 74215 | 7515abfe18cf |
parent 73785 | b5fb99b985b4 |
child 74255 | e117e0c29204 |
--- a/src/Pure/Thy/export.scala Mon Aug 30 21:10:13 2021 +0200 +++ b/src/Pure/Thy/export.scala Mon Aug 30 21:18:49 2021 +0200 @@ -376,7 +376,8 @@ progress.echo("export " + path + (if (entry.executable) " (executable)" else "")) Isabelle_System.make_directory(path.dir) - Bytes.write(path, entry.uncompressed) + val bytes = entry.uncompressed + if (!path.is_file || Bytes.read(path) != bytes) Bytes.write(path, bytes) File.set_executable(path, entry.executable) } }