src/Pure/Admin/build_spass.scala
author wenzelm
Sun, 11 Oct 2020 13:09:43 +0200
changeset 72440 d0ba71b3297e
parent 72412 9ed9585c495b
child 72444 2d9a70b85009
permissions -rw-r--r--
tuned messages;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
72411
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
     1
/*  Title:      Pure/Admin/build_spass.scala
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
     2
    Author:     Makarius
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
     3
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
     4
Build Isabelle SPASS component from unofficial download.
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
     5
*/
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
     6
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
     7
package isabelle
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
     8
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
     9
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    10
object Build_SPASS
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    11
{
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    12
  /* build SPASS */
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    13
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    14
  val default_download_url = "https://www.cs.vu.nl/~jbe248/spass-3.8ds-src.tar.gz"
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    15
  val standard_version = "3.8ds"
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    16
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    17
  def build_spass(
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    18
    download_url: String = default_download_url,
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    19
    verbose: Boolean = false,
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    20
    progress: Progress = new Progress,
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    21
    target_dir: Path = Path.current)
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    22
  {
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    23
    Isabelle_System.with_tmp_dir("build")(tmp_dir =>
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    24
    {
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    25
      /* required commands */
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    26
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    27
      List("bison", "flex").foreach(cmd =>
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    28
        if (!Isabelle_System.bash(cmd + " --version").ok) error("Missing command: " + cmd))
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    29
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    30
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    31
      /* component */
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    32
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    33
      val Archive_Name = """^.*?([^/]+)$""".r
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    34
      val Component_Name = """^(.+)-src\.tar.gz$""".r
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    35
      val Version = """^[^-]+-([^-]+)$""".r
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    36
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    37
      val (archive_name, archive_base_name) =
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    38
        download_url match {
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    39
          case Archive_Name(name) => (name, Library.perhaps_unsuffix(".tar.gz", name))
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    40
          case _ => error("Failed to determine source archive name from " + quote(download_url))
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    41
        }
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    42
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    43
      val component_name =
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    44
        archive_name match {
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    45
          case Component_Name(name) => name
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    46
          case _ => error("Failed to determine component name from " + quote(archive_name))
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    47
        }
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    48
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    49
      val version =
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    50
        component_name match {
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    51
          case Version(version) => version
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    52
          case _ => error("Failed to determine component version from " + quote(component_name))
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    53
        }
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    54
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    55
      if (version != standard_version) {
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    56
        progress.echo_warning("Odd SPASS version " + version + " (expected " + standard_version + ")")
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    57
      }
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    58
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    59
      val component_dir = Isabelle_System.new_directory(target_dir + Path.basic(component_name))
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    60
      progress.echo("Component " + component_dir)
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    61
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    62
      val platform_name =
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    63
        proper_string(Isabelle_System.getenv("ISABELLE_PLATFORM64"))
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    64
          .getOrElse(error("No 64bit platform"))
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    65
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    66
      val platform_dir = Isabelle_System.make_directory(component_dir + Path.basic(platform_name))
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    67
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    68
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    69
      /* download source */
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    70
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    71
      val archive_path = tmp_dir + Path.basic(archive_name)
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    72
      Isabelle_System.download(download_url, archive_path, progress = progress)
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    73
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    74
      Isabelle_System.bash("tar xzf " + archive_path, cwd = tmp_dir.file).check
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    75
      Isabelle_System.bash(
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    76
        "tar xzf " + archive_path + " && mv " + Bash.string(archive_base_name) + " src",
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    77
        cwd = component_dir.file).check
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    78
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    79
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    80
      /* build */
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    81
72440
d0ba71b3297e tuned messages;
wenzelm
parents: 72412
diff changeset
    82
      progress.echo("Building SPASS for " + platform_name + " ...")
72411
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    83
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    84
      val build_dir = tmp_dir + Path.basic(archive_base_name)
72412
9ed9585c495b proper support for Windows/Cygwin;
wenzelm
parents: 72411
diff changeset
    85
9ed9585c495b proper support for Windows/Cygwin;
wenzelm
parents: 72411
diff changeset
    86
      if (Platform.is_windows) {
9ed9585c495b proper support for Windows/Cygwin;
wenzelm
parents: 72411
diff changeset
    87
        File.change(build_dir + Path.basic("misc.c"),
9ed9585c495b proper support for Windows/Cygwin;
wenzelm
parents: 72411
diff changeset
    88
          _.replace("""#include "execinfo.h" """, "")
9ed9585c495b proper support for Windows/Cygwin;
wenzelm
parents: 72411
diff changeset
    89
           .replaceAll("""void misc_DumpCore\(void\)[^}]+}""", "void misc_DumpCore(void) { abort(); }"))
9ed9585c495b proper support for Windows/Cygwin;
wenzelm
parents: 72411
diff changeset
    90
      }
9ed9585c495b proper support for Windows/Cygwin;
wenzelm
parents: 72411
diff changeset
    91
72411
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    92
      Isabelle_System.bash("make",
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    93
        cwd = build_dir.file,
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    94
        progress_stdout = progress.echo_if(verbose, _),
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    95
        progress_stderr = progress.echo_if(verbose, _)).check
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    96
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    97
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    98
      /* install */
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
    99
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   100
      File.copy(build_dir + Path.basic("LICENCE"), component_dir + Path.basic("LICENSE"))
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   101
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   102
      val install_files = List("SPASS")
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   103
      for (name <- install_files ::: install_files.map(_ + ".exe")) {
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   104
        val path = build_dir + Path.basic(name)
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   105
        if (path.is_file) File.copy(path, platform_dir)
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   106
      }
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   107
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   108
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   109
      /* settings */
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   110
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   111
      val etc_dir = Isabelle_System.make_directory(component_dir + Path.basic("etc"))
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   112
      File.write(etc_dir + Path.basic("settings"),
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   113
        """# -*- shell-script -*- :mode=shellscript:
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   114
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   115
SPASS_HOME="$COMPONENT/$ISABELLE_PLATFORM64"
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   116
SPASS_VERSION=""" + quote(version) + """
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   117
""")
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   118
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   119
      /* README */
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   120
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   121
      File.write(component_dir + Path.basic("README"),
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   122
"""This distribution of SPASS 3.8ds, described in Blanchette, Popescu, Wand, and
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   123
Weidenbach's ITP 2012 paper "More SPASS with Isabelle", has been compiled from
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   124
sources available at """ + download_url + """
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   125
via "make".
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   126
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   127
The Windows/Cygwin compilation required commenting out the line
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   128
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   129
    #include "execinfo.h"
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   130
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   131
in "misc.c" as well as most of the body of the "misc_DumpCore" function.
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   132
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   133
The latest official SPASS sources can be downloaded from
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   134
http://www.spass-prover.org/. Be aware, however, that the official SPASS
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   135
releases are not compatible with Isabelle.
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   136
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   137
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   138
Viel SPASS!
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   139
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   140
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   141
    Jasmin Blanchette
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   142
    16-May-2018
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   143
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   144
    Makarius
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   145
    """ + Date.Format.date(Date.now()) + "\n")
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   146
    })
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   147
}
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   148
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   149
  /* Isabelle tool wrapper */
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   150
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   151
  val isabelle_tool =
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   152
    Isabelle_Tool("build_spass", "build prover component from source distribution",
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   153
    args =>
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   154
    {
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   155
      var target_dir = Path.current
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   156
      var download_url = default_download_url
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   157
      var verbose = false
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   158
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   159
      val getopts = Getopts("""
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   160
Usage: isabelle build_spass [OPTIONS]
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   161
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   162
  Options are:
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   163
    -D DIR       target directory (default ".")
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   164
    -U URL       download URL
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   165
                 (default: """" + default_download_url + """")
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   166
    -v           verbose
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   167
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   168
  Build prover component from the specified source distribution.
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   169
""",
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   170
        "D:" -> (arg => target_dir = Path.explode(arg)),
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   171
        "U:" -> (arg => download_url = arg),
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   172
        "v" -> (_ => verbose = true))
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   173
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   174
      val more_args = getopts(args)
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   175
      if (more_args.nonEmpty) getopts.usage()
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   176
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   177
      val progress = new Console_Progress()
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   178
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   179
      build_spass(download_url = download_url, verbose = verbose, progress = progress,
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   180
        target_dir = target_dir)
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   181
    })
b8cc129ece05 build Isabelle SPASS component from unofficial download;
wenzelm
parents:
diff changeset
   182
}