(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:INSTALL)
          op: assign_op.Equal
          rhs: 
            {
              (braced_var_sub
                token: <Id.VSub_Name REAL_INSTALL>
                suffix_op: (suffix_op.Unary tok:<Id.VTest_ColonHyphen ':-'> arg_word:{<install>})
              )
            }
          spids: [147]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:OBJDIR)
          op: assign_op.Equal
          rhs: {<.>}
          spids: [154]
        )
      ]
    )
    (command.WhileUntil
      keyword: <Id.KW_While while>
      cond: (condition.Shell commands:[(C {<Id.Lit_Colon ':'>})])
      body: 
        (command.DoGroup
          children: [
            (command.Case
              to_match: {(DQ ($ Id.VSub_Number '$1'))}
              arms: [
                (case_arm
                  pat_list: [{<Id.Lit_Star '*'> <Id.Lit_Equals '='> <Id.Lit_Star '*'>}]
                  action: [
                    (command.Sentence
                      child: (C {<eval>} {(DQ ($ Id.VSub_Number '$1'))})
                      terminator: <Id.Op_Semi _>
                    )
                    (C {<shift>})
                  ]
                  spids: [174 177 187 -1]
                )
                (case_arm
                  pat_list: [{<Id.Lit_Star '*'>}]
                  action: [(command.ControlFlow token:<Id.ControlFlow_Break break>)]
                  spids: [190 191 194 -1]
                )
              ]
            )
          ]
        )
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:_DIRDEP)
          op: assign_op.Equal
          rhs: 
            {
              (braced_var_sub
                token: <Id.VSub_Name _DIRDEP>
                suffix_op: 
                  (suffix_op.Unary
                    tok: <Id.VTest_ColonHyphen ':-'>
                    arg_word: {($ Id.VSub_DollarName '$OBJDIR') <Id.Lit_Slash '/'> <.dirdep>}
                  )
              )
            }
          spids: [205]
        )
      ]
    )
    (command.AndOr
      ops: [Id.Op_DAmp Id.Op_DPipe]
      children: [
        (C {<Id.Lit_LBracket '['>} {<-s>} {($ Id.VSub_DollarName '$_DIRDEP')} {<Id.Lit_RBracket ']'>})
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:EXEC)
              op: assign_op.Equal
              rhs: (word.Empty)
              spids: [224]
            )
          ]
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:EXEC)
              op: assign_op.Equal
              rhs: {<exec>}
              spids: [228]
            )
          ]
        )
      ]
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {($ Id.VSub_DollarName '$EXEC')} {($ Id.VSub_DollarName '$INSTALL')} 
          {(DQ ($ Id.VSub_At '$@'))}
        )
        (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
      ]
    )
    (command.ShFunction
      name: LnCp
      body: 
        (BraceGroup
          children: [
            (command.Simple
              words: [{<rm>} {<-f>} {($ Id.VSub_Number '$2')}]
              redirects: [(redir op:<Id.Redir_Great '2>'> loc:(redir_loc.Fd fd:2) arg:{<'/dev/null'>})]
              do_fork: T
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (command.Simple
                  words: [{<ln>} {($ Id.VSub_Number '$1')} {($ Id.VSub_Number '$2')}]
                  redirects: [
                    (redir
                      op: <Id.Redir_Great '2>'>
                      loc: (redir_loc.Fd fd:2)
                      arg: {<'/dev/null'>}
                    )
                  ]
                  do_fork: T
                )
                (C {<cp>} {<-p>} {($ Id.VSub_Number '$1')} {($ Id.VSub_Number '$2')})
              ]
            )
          ]
        )
    )
    (command.ShFunction
      name: StageDirdep
      body: 
        (BraceGroup
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:t)
                  op: assign_op.Equal
                  rhs: {($ Id.VSub_Number '$1')}
                  spids: [297]
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (C {<Id.Lit_LBracket '['>} {<-s>} {($ Id.VSub_DollarName '$t') <.dirdep>} 
                              {<Id.Lit_RBracket ']'>}
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.AndOr
                      ops: [Id.Op_DAmp]
                      children: [
                        (C {<cmp>} {<-s>} {($ Id.VSub_DollarName '$_DIRDEP')} 
                          {($ Id.VSub_DollarName '$t') <.dirdep>}
                        )
                        (command.ControlFlow
                          token: <Id.ControlFlow_Return return>
                        )
                      ]
                    )
                    (command.Simple
                      words: [
                        {<echo>}
                        {
                          (DQ <'ERROR: '> ($ Id.VSub_DollarName '$t') <' installed by '> 
                            (command_sub
                              left_token: <Id.Left_Backtick '`'>
                              child: (C {<cat>} {($ Id.VSub_DollarName '$t') <.dirdep>})
                            ) <' not '> 
                            (command_sub
                              left_token: <Id.Left_Backtick '`'>
                              child: (C {<cat>} {($ Id.VSub_DollarName '$_DIRDEP')})
                            )
                          )
                        }
                      ]
                      redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
                      do_fork: T
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Exit exit>
                      arg_word: {<1>}
                    )
                  ]
                  spids: [301 313]
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<LnCp>} {($ Id.VSub_DollarName '$_DIRDEP')} {($ Id.VSub_DollarName '$t') <.dirdep>})
                (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
              ]
            )
          ]
        )
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:args)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_At '$@'))}
          spids: [382]
        )
      ]
    )
    (command.WhileUntil
      keyword: <Id.KW_While while>
      cond: 
        (condition.Shell
          commands: [
            (C {<Id.Lit_LBracket '['>} {($ Id.VSub_Pound '$#')} {<-gt>} {<8>} {<Id.Lit_RBracket ']'>})
          ]
        )
      body: (command.DoGroup children:[(C {<shift>} {<8>})])
    )
    (C {<eval>} 
      {<Id.Lit_VarLike 'dest='> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\$'>) 
        ($ Id.VSub_Pound '$#')
      }
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {<-f>} {($ Id.VSub_DollarName '$dest')} 
                      {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [(C {<StageDirdep>} {($ Id.VSub_DollarName '$dest')})]
          spids: [414 425]
        )
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {<-d>} {($ Id.VSub_DollarName '$dest')} 
                      {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ForEach
              iter_name: f
              iter_words: [{($ Id.VSub_DollarName '$args')}]
              do_arg_iter: F
              body: 
                (command.DoGroup
                  children: [
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (C {<test>} {<-f>} {($ Id.VSub_DollarName '$f')})
                        (command.ControlFlow
                          token: <Id.ControlFlow_Continue continue>
                        )
                      ]
                    )
                    (C {<StageDirdep>} 
                      {($ Id.VSub_DollarName '$dest') <'/'> 
                        (braced_var_sub
                          token: <Id.VSub_Name f>
                          suffix_op: 
                            (suffix_op.Unary
                              tok: <Id.VOp1_DPound '##'>
                              arg_word: {<Id.Lit_Other '*'> <Id.Lit_Slash '/'>}
                            )
                        )
                      }
                    )
                  ]
                )
            )
          ]
          spids: [436 447]
        )
      ]
    )
  ]
)