src/Pure/Admin/other_isabelle.scala
changeset 69166 5c553c48c0e5
parent 68754 8999f9143e5f
child 69168 68816d1c73a7
equal deleted inserted replaced
69162:88842948515b 69166:5c553c48c0e5
    50     bash("bin/isabelle " + cmdline, redirect = redirect, echo = echo, strict = strict)
    50     bash("bin/isabelle " + cmdline, redirect = redirect, echo = echo, strict = strict)
    51 
    51 
    52   def resolve_components(echo: Boolean): Unit =
    52   def resolve_components(echo: Boolean): Unit =
    53     other_isabelle("components -a", redirect = true, echo = echo).check
    53     other_isabelle("components -a", redirect = true, echo = echo).check
    54 
    54 
    55   val isabelle_home_user: Path =
    55   def getenv(name: String): String =
    56     Path.explode(other_isabelle("getenv -b ISABELLE_HOME_USER").check.out)
    56     other_isabelle("getenv -b " + Bash.string(name)).check.out
       
    57 
       
    58   val isabelle_home_user: Path = Path.explode(getenv("ISABELLE_HOME_USER"))
    57 
    59 
    58   val etc: Path = isabelle_home_user + Path.explode("etc")
    60   val etc: Path = isabelle_home_user + Path.explode("etc")
    59   val etc_settings: Path = etc + Path.explode("settings")
    61   val etc_settings: Path = etc + Path.explode("settings")
    60   val etc_preferences: Path = etc + Path.explode("preferences")
    62   val etc_preferences: Path = etc + Path.explode("preferences")
    61 
    63