# HG changeset patch # User wenzelm # Date 1528142685 -7200 # Node ID 5714e8806060003f1c196e8eea1ef864a0279343 # Parent 8740e12415557d10582829d9eb257f3e2c358ee9 avoid hardwired cygwin mirror; diff -r 8740e1241555 -r 5714e8806060 Admin/Windows/Cygwin/Cygwin-Setup.bat --- a/Admin/Windows/Cygwin/Cygwin-Setup.bat Mon Jun 04 21:57:38 2018 +0200 +++ b/Admin/Windows/Cygwin/Cygwin-Setup.bat Mon Jun 04 22:04:45 2018 +0200 @@ -1,3 +1,3 @@ @echo off -"%CD%\contrib\cygwin\isabelle\cygwin" --site https://isabelle.sketis.net/cygwin_2018 --no-verify --only-site --local-package-dir "%TEMP%" --root "%CD%\contrib\cygwin" +"%CD%\contrib\cygwin\isabelle\cygwin" --site {MIRROR} --no-verify --only-site --local-package-dir "%TEMP%" --root "%CD%\contrib\cygwin" diff -r 8740e1241555 -r 5714e8806060 Admin/lib/Tools/makedist_bundle --- a/Admin/lib/Tools/makedist_bundle Mon Jun 04 21:57:38 2018 +0200 +++ b/Admin/lib/Tools/makedist_bundle Mon Jun 04 22:04:45 2018 +0200 @@ -284,8 +284,12 @@ ( cd "$ISABELLE_TARGET" - cp "$ISABELLE_HOME/Admin/Windows/Cygwin/Cygwin-Setup.bat" \ - "$ISABELLE_HOME/Admin/Windows/Cygwin/Cygwin-Terminal.bat" . + cp "$ISABELLE_HOME/Admin/Windows/Cygwin/Cygwin-Terminal.bat" . + + CYGWIN_MIRROR="$(cat contrib/cygwin/isabelle/cygwin_mirror)" + cat "$ISABELLE_HOME/Admin/Windows/Cygwin/Cygwin-Setup.bat" | \ + perl -p > "Cygwin-Setup.bat" -e "s,{MIRROR},$CYGWIN_MIRROR,;" + chmod +x "Cygwin-Setup.bat" for NAME in postinstall rebaseall do