src/Pure/Tools/update.scala
changeset 76925 47f1b099497c
parent 76924 fc24cf493202
child 76926 d858e6f15da3
equal deleted inserted replaced
76924:fc24cf493202 76925:47f1b099497c
   117         var requirements = false
   117         var requirements = false
   118         var exclude_session_groups: List[String] = Nil
   118         var exclude_session_groups: List[String] = Nil
   119         var all_sessions = false
   119         var all_sessions = false
   120         var dirs: List[Path] = Nil
   120         var dirs: List[Path] = Nil
   121         var session_groups: List[String] = Nil
   121         var session_groups: List[String] = Nil
       
   122         var max_jobs = 1
   122         var base_logics: List[String] = Nil
   123         var base_logics: List[String] = Nil
   123         var max_jobs = 1
       
   124         var no_build = false
   124         var no_build = false
   125         var options = Options.init()
   125         var options = Options.init()
   126         var verbose = false
   126         var verbose = false
   127         var exclude_sessions: List[String] = Nil
   127         var exclude_sessions: List[String] = Nil
   128 
   128 
   133     -B NAME      include session NAME and all descendants
   133     -B NAME      include session NAME and all descendants
   134     -D DIR       include session directory and select its sessions
   134     -D DIR       include session directory and select its sessions
   135     -R           refer to requirements of selected sessions
   135     -R           refer to requirements of selected sessions
   136     -X NAME      exclude sessions from group NAME and all descendants
   136     -X NAME      exclude sessions from group NAME and all descendants
   137     -a           select all sessions
   137     -a           select all sessions
   138     -b NAME      additional base logic
       
   139     -d DIR       include session directory
   138     -d DIR       include session directory
   140     -g NAME      select session group NAME
   139     -g NAME      select session group NAME
   141     -j INT       maximum number of parallel jobs (default 1)
   140     -j INT       maximum number of parallel jobs (default 1)
       
   141     -l NAME      additional base logic
   142     -n           no build -- take existing build databases
   142     -n           no build -- take existing build databases
   143     -o OPTION    override Isabelle system OPTION (via NAME=VAL or NAME)
   143     -o OPTION    override Isabelle system OPTION (via NAME=VAL or NAME)
   144     -u OPT       override "update" option: shortcut for "-o update_OPT"
   144     -u OPT       override "update" option: shortcut for "-o update_OPT"
   145     -v           verbose
   145     -v           verbose
   146     -x NAME      exclude session NAME and all descendants
   146     -x NAME      exclude session NAME and all descendants
   151         "D:" -> (arg => select_dirs = select_dirs ::: List(Path.explode(arg))),
   151         "D:" -> (arg => select_dirs = select_dirs ::: List(Path.explode(arg))),
   152         "N" -> (_ => numa_shuffling = true),
   152         "N" -> (_ => numa_shuffling = true),
   153         "R" -> (_ => requirements = true),
   153         "R" -> (_ => requirements = true),
   154         "X:" -> (arg => exclude_session_groups = exclude_session_groups ::: List(arg)),
   154         "X:" -> (arg => exclude_session_groups = exclude_session_groups ::: List(arg)),
   155         "a" -> (_ => all_sessions = true),
   155         "a" -> (_ => all_sessions = true),
   156         "b:" -> (arg => base_logics ::= arg),
       
   157         "d:" -> (arg => dirs = dirs ::: List(Path.explode(arg))),
   156         "d:" -> (arg => dirs = dirs ::: List(Path.explode(arg))),
   158         "g:" -> (arg => session_groups = session_groups ::: List(arg)),
   157         "g:" -> (arg => session_groups = session_groups ::: List(arg)),
   159         "j:" -> (arg => max_jobs = Value.Int.parse(arg)),
   158         "j:" -> (arg => max_jobs = Value.Int.parse(arg)),
       
   159         "l:" -> (arg => base_logics ::= arg),
   160         "n" -> (_ => no_build = true),
   160         "n" -> (_ => no_build = true),
   161         "o:" -> (arg => options = options + arg),
   161         "o:" -> (arg => options = options + arg),
   162         "u:" -> (arg => options = options + ("update_" + arg)),
   162         "u:" -> (arg => options = options + ("update_" + arg)),
   163         "v" -> (_ => verbose = true),
   163         "v" -> (_ => verbose = true),
   164         "x:" -> (arg => exclude_sessions = exclude_sessions ::: List(arg)))
   164         "x:" -> (arg => exclude_sessions = exclude_sessions ::: List(arg)))