# HG changeset patch # User wenzelm # Date 1373973817 -7200 # Node ID 8de4235298cbbb6c36a182fc2310a73e5b08c85d # Parent 9a360530eac8fc40856ad799c1571964db9b1850 more robust executable path specifications; afford final test of Isabelle.init; tuned; diff -r 9a360530eac8 -r 8de4235298cb Admin/Windows/Cygwin/isabelle/postinstall --- a/Admin/Windows/Cygwin/isabelle/postinstall Tue Jul 16 12:31:08 2013 +0200 +++ b/Admin/Windows/Cygwin/isabelle/postinstall Tue Jul 16 13:23:37 2013 +0200 @@ -1,9 +1,14 @@ #!/bin/bash -PATH=/bin +export PATH=/bin bash /etc/postinstall/base-files-mketc.sh.done mkpasswd -l >/etc/passwd mkgroup -l >/etc/group +find -type d -exec chmod 755 '{}' + +find -type f \( -name '*.exe' -o -name '*.dll' \) -exec chmod 755 '{}' + +find -type f -not -name '*.exe' -not -name '*.dll' -exec chmod 644 '{}' + +xargs -0 < contrib/cygwin/isabelle/executables chmod 755 + diff -r 9a360530eac8 -r 8de4235298cb Admin/Windows/Cygwin/isabelle/rebaseall --- a/Admin/Windows/Cygwin/isabelle/rebaseall Tue Jul 16 12:31:08 2013 +0200 +++ b/Admin/Windows/Cygwin/isabelle/rebaseall Tue Jul 16 13:23:37 2013 +0200 @@ -1,6 +1,6 @@ #!/bin/dash -PATH=/bin +export PATH=/bin FILE_LIST="$(mktemp)" diff -r 9a360530eac8 -r 8de4235298cb Admin/lib/Tools/makedist_bundle --- a/Admin/lib/Tools/makedist_bundle Tue Jul 16 12:31:08 2013 +0200 +++ b/Admin/lib/Tools/makedist_bundle Tue Jul 16 13:23:37 2013 +0200 @@ -154,16 +154,6 @@ find . -type l -exec echo "{}" ";" -exec readlink "{}" ";" \ > "contrib/cygwin/isabelle/symlinks" - - cat >> "contrib/cygwin/isabelle/postinstall" < "nodosfilewarning") + val proc = Isabelle_System.raw_execute(cwd, env, true, args: _*) + proc.getOutputStream.close + + val stdout = new BufferedReader(new InputStreamReader(proc.getInputStream, UTF8.charset)) + try { + var line = stdout.readLine + while (line != null) { + echo(line) + line = stdout.readLine + } + } + finally { stdout.close } + + proc.waitFor + } + + echo("Initializing Cygwin:") echo("symlinks ...") val symlinks = @@ -150,33 +170,16 @@ } recover_symlinks(symlinks) - - val execute_cwd = new JFile(isabelle_home) - val execute_env = Map("CYGWIN" -> "nodosfilewarning") - - def execute(args: String*): Int = - { - val proc = Isabelle_System.raw_execute(execute_cwd, execute_env, true, args: _*) - proc.getOutputStream.close - - val stdout = new BufferedReader(new InputStreamReader(proc.getInputStream, UTF8.charset)) - try { - var line = stdout.readLine - while (line != null) { - echo(line) - line = stdout.readLine - } - } - finally { stdout.close } - - proc.waitFor - } - echo("rebaseall ...") - execute("contrib\\cygwin\\bin\\dash", "/isabelle/rebaseall") + execute(cygwin_root + "\\bin\\dash.exe", "/isabelle/rebaseall") echo("postinstall ...") - execute("contrib\\cygwin\\bin\\bash", "/isabelle/postinstall") + execute(cygwin_root + "\\bin\\bash.exe", "/isabelle/postinstall") + + echo("init ...") + System.setProperty("cygwin.root", cygwin_root) + Isabelle_System.init() + echo("OK") } }