(command.CommandList
  children: [
    (command.FuncDef
      name: die
      body: 
        (command.BraceGroup
          children: [
            (command.SimpleCommand
              words: [{(echo)} {(DQ ('FATAL install error: ') ($ VSub_At '$@'))}]
              redirects: [(redir.Redir op:<Redir_GreatAnd '1>&'> fd:1 arg_word:{(2)})]
            )
            (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
          ]
          spids: [34]
        )
      spids: [30 33]
    )
    (command.FuncDef
      name: main
      body: 
        (command.BraceGroup
          children: [
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.Pipeline
                          children: [(C {(.)} {(_build/detected-config.sh)})]
                          negated: T
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (C {(die)} {(DQ ("Can't find _build/detected-config.h.  Run './configure'"))})
                  ]
                  spids: [16777215 74]
                )
              ]
              spids: [16777215 84]
            )
            (command.Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:exec_filename spids:[99])
                  op: Equal
                  rhs: {(oil.ovm)}
                  spids: [99]
                )
              ]
              spids: [97]
            )
            (command.Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:dest spids:[109])
                  op: Equal
                  rhs: {($ VSub_DollarName '$PREFIX') (/bin/) ($ VSub_DollarName '$exec_filename')}
                  spids: [109]
                )
              ]
              spids: [107]
            )
            (C {(echo)} {(DQ ('Installing to ') ($ VSub_DollarName '$dest'))})
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.Pipeline
                          children: [
                            (C {(install)} {(_bin/) ($ VSub_DollarName '$exec_filename')} 
                              {($ VSub_DollarName '$dest')}
                            )
                          ]
                          negated: T
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [(C {(die)} {(DQ ("Couldn't install oil binary"))})]
                  spids: [16777215 136]
                )
              ]
              spids: [16777215 146]
            )
            (C {(cd)} {($ VSub_DollarName '$PREFIX') (/bin)})
            (command.ForEach
              iter_name: link
              iter_words: [{(osh)} {(oshc)}]
              do_arg_iter: F
              body: 
                (command.DoGroup
                  children: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: [
                            (command.Sentence
                              child: 
                                (command.Pipeline
                                  children: [
                                    (C {(ln)} {(-s)} {(-f)} {($ VSub_DollarName '$exec_filename')} 
                                      {($ VSub_DollarName '$link')}
                                    )
                                  ]
                                  negated: T
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (C {(die)} 
                              {(DQ ("Couldn't create ") ($ VSub_DollarName '$link') (' symlink'))}
                            )
                          ]
                          spids: [16777215 185]
                        )
                      ]
                      spids: [16777215 200]
                    )
                  ]
                  spids: [167 203]
                )
              spids: [161 165]
            )
          ]
          spids: [62]
        )
      spids: [58 61]
    )
    (C {(main)} {(DQ ($ VSub_At '$@'))})
  ]
)