proper directory permissions to make "rm" work, notably for cygwin/etc/pki/ca-trust/extracted/pem/directory-hash;
authorwenzelm
Fri, 26 Apr 2024 21:32:27 +0200
changeset 80159 680e1618d404
parent 80158 059d5e115ae3
child 80160 ead20482da9c
proper directory permissions to make "rm" work, notably for cygwin/etc/pki/ca-trust/extracted/pem/directory-hash;
src/Pure/Admin/build_release.scala
--- a/src/Pure/Admin/build_release.scala	Fri Apr 26 20:18:15 2024 +0200
+++ b/src/Pure/Admin/build_release.scala	Fri Apr 26 21:32:27 2024 +0200
@@ -759,6 +759,10 @@
               """find . -type l -exec echo "{}" ";" -exec readlink "{}" ";" """ +
               """> contrib/cygwin/isabelle/symlinks""")
 
+            execute(isabelle_target,
+              """find . -type d -not -perm """ +
+              (if (Platform.is_macos) "+" else "/") + """222 -exec chmod +w "{}" ";" """)
+
             execute(isabelle_target, """find . -type l -exec rm "{}" ";" """)
 
             File.write(isabelle_target + Path.explode("contrib/cygwin/isabelle/uninitialized"), "")