(command.CommandList
  children: [
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:gitref spids:[14])
          op: Equal
          rhs: 
            {
              (word_part.BracedVarSub
                token: <VSub_Number 1>
                suffix_op: (suffix_op.StringUnary op_id:VTest_ColonHyphen arg_word:{(HEAD)})
                spids: [15 19]
              )
            }
          spids: [14]
        )
      ]
      spids: [14]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:ver spids:[22])
          op: Equal
          rhs: 
            {
              (word_part.CommandSubPart
                command_list: 
                  (command.CommandList
                    children: [(C {(git)} {(show)} {(DQ ($ VSub_DollarName '$gitref') (':VERSION'))})]
                  )
                left_token: <Left_CommandSub '$('>
                spids: [23 32]
              )
            }
          spids: [22]
        )
      ]
      spids: [22]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:major spids:[34])
          op: Equal
          rhs: 
            {
              (word_part.CommandSubPart
                command_list: 
                  (command.CommandList
                    children: [
                      (command.Pipeline
                        children: [
                          (C {(echo)} {($ VSub_DollarName '$ver')})
                          (C {(cut)} {(-f)} {(1)} {(-d)} {(.)})
                        ]
                        negated: F
                      )
                    ]
                  )
                left_token: <Left_CommandSub '$('>
                spids: [35 51]
              )
            }
          spids: [34]
        )
      ]
      spids: [34]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:minor spids:[53])
          op: Equal
          rhs: 
            {
              (word_part.CommandSubPart
                command_list: 
                  (command.CommandList
                    children: [
                      (command.Pipeline
                        children: [
                          (C {(echo)} {($ VSub_DollarName '$ver')})
                          (C {(cut)} {(-f)} {(2)} {(-d)} {(.)})
                        ]
                        negated: F
                      )
                    ]
                  )
                left_token: <Left_CommandSub '$('>
                spids: [54 70]
              )
            }
          spids: [53]
        )
      ]
      spids: [53]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {(Lit_Other '[')} {($ VSub_DollarName '$major')} {(Lit_Other '=')} {(0)} {(-a)} 
                  {($ VSub_DollarName '$minor')} {(-lt)} {(5)} {(Lit_Other ']')}
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:last_tag spids:[101])
                  op: Equal
                  rhs: 
                    {
                      (word_part.CommandSubPart
                        command_list: 
                          (command.CommandList
                            children: [
                              (C {(git)} {(describe)} {(--tags)} {(--abbrev) (Lit_Other '=') (0)} 
                                {(DQ ($ VSub_DollarName '$gitref'))}
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [102 116]
                      )
                    }
                  spids: [101]
                )
              ]
              spids: [101]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:nb spids:[119])
                  op: Equal
                  rhs: 
                    {
                      (word_part.CommandSubPart
                        command_list: 
                          (command.CommandList
                            children: [
                              (C {(git)} {(rev-list)} {(--count)} {(DQ ($ VSub_DollarName '$gitref'))} 
                                {(DQ ('^') ($ VSub_DollarName '$last_tag'))}
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [120 135]
                      )
                    }
                  spids: [119]
                )
              ]
              spids: [119]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (C {(Lit_Other '[')} {($ VSub_DollarName '$nb')} {(Lit_Other '=')} {(0)} 
                          {(Lit_Other ']')}
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [(C {(echo)} {($ VSub_DollarName '$ver')})]
                  spids: [16777215 151]
                )
              ]
              else_action: [
                (C {(echo)} {(DQ ($ VSub_DollarName '$ver') ('+') ($ VSub_DollarName '$nb'))})
              ]
              spids: [159 171]
            )
          ]
          spids: [16777215 94]
        )
      ]
      else_action: [
        (command.Assignment
          keyword: Assign_None
          pairs: [
            (assign_pair
              lhs: (lhs_expr.LhsName name:topdir spids:[176])
              op: Equal
              rhs: 
                {
                  (word_part.CommandSubPart
                    command_list: 
                      (command.CommandList
                        children: [(C {(git)} {(rev-parse)} {(--show-toplevel)})]
                      )
                    left_token: <Left_CommandSub '$('>
                    spids: [177 183]
                  )
                }
              spids: [176]
            )
          ]
          spids: [176]
        )
        (command.Assignment
          keyword: Assign_None
          pairs: [
            (assign_pair
              lhs: (lhs_expr.LhsName name:verchanged spids:[186])
              op: Equal
              rhs: 
                {
                  (word_part.CommandSubPart
                    command_list: 
                      (command.CommandList
                        children: [
                          (command.Pipeline
                            children: [
                              (C {(git)} {(blame)} {(-L)} {(Lit_Comma ',') (1)} {(-sl)} 
                                {($ VSub_DollarName '$gitref')} {(--)} {(DQ ($ VSub_DollarName '$topdir') (/VERSION))}
                              )
                              (C {(cut)} {(-f)} {(1)} {(-d)} {(DQ (' '))})
                            ]
                            negated: F
                          )
                        ]
                      )
                    left_token: <Left_CommandSub '$('>
                    spids: [187 221]
                  )
                }
              spids: [186]
            )
          ]
          spids: [186]
        )
        (command.Assignment
          keyword: Assign_None
          pairs: [
            (assign_pair
              lhs: (lhs_expr.LhsName name:nb spids:[224])
              op: Equal
              rhs: 
                {
                  (word_part.CommandSubPart
                    command_list: 
                      (command.CommandList
                        children: [
                          (C {(git)} {(rev-list)} {(--count)} {(DQ ($ VSub_DollarName '$gitref'))} 
                            {(DQ ('^') ($ VSub_DollarName '$verchanged'))}
                          )
                        ]
                      )
                    left_token: <Left_CommandSub '$('>
                    spids: [225 240]
                  )
                }
              spids: [224]
            )
          ]
          spids: [224]
        )
        (command.Assignment
          keyword: Assign_None
          pairs: [
            (assign_pair
              lhs: (lhs_expr.LhsName name:pre spids:[243])
              op: Equal
              rhs: 
                {
                  (word_part.CommandSubPart
                    command_list: 
                      (command.CommandList
                        children: [
                          (command.Pipeline
                            children: [
                              (C {(echo)} {($ VSub_DollarName '$ver')})
                              (C {(cut)} {(-s)} {(-f)} {(2)} {(-d)} {(DQ (-))})
                            ]
                            negated: F
                          )
                        ]
                      )
                    left_token: <Left_CommandSub '$('>
                    spids: [244 264]
                  )
                }
              spids: [243]
            )
          ]
          spids: [243]
        )
        (command.If
          arms: [
            (if_arm
              cond: [
                (command.Sentence
                  child: 
                    (C {(Lit_Other '[')} {($ VSub_DollarName '$ver')} {(Lit_Other '=')} {(DQ (0.5.0-dev))} 
                      {(Lit_Other ']')}
                    )
                  terminator: <Op_Semi ';'>
                )
              ]
              action: [
                (command.Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:nb spids:[289])
                      op: Equal
                      rhs: 
                        {
                          (word_part.CommandSubPart
                            command_list: 
                              (command.CommandList
                                children: [
                                  (C {(expr)} {($ VSub_DollarName '$nb')} {(Lit_Other '+')} {(1)})
                                ]
                              )
                            left_token: <Left_CommandSub '$('>
                            spids: [290 298]
                          )
                        }
                      spids: [289]
                    )
                  ]
                  spids: [289]
                )
              ]
              spids: [16777215 282]
            )
            (if_arm
              cond: [
                (command.Sentence
                  child: 
                    (C {(Lit_Other '[')} {($ VSub_DollarName '$ver')} {(Lit_Other '=')} {(DQ (0.5.0-pre))} 
                      {(Lit_Other ']')}
                    )
                  terminator: <Op_Semi ';'>
                )
              ]
              action: [
                (command.Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:nb spids:[323])
                      op: Equal
                      rhs: 
                        {
                          (word_part.CommandSubPart
                            command_list: 
                              (command.CommandList
                                children: [
                                  (C {(expr)} {($ VSub_DollarName '$nb')} {(Lit_Other '+')} {(5578)})
                                ]
                              )
                            left_token: <Left_CommandSub '$('>
                            spids: [324 332]
                          )
                        }
                      spids: [323]
                    )
                  ]
                  spids: [323]
                )
              ]
              spids: [301 316]
            )
          ]
          spids: [16777215 335]
        )
        (command.If
          arms: [
            (if_arm
              cond: [
                (command.Sentence
                  child: 
                    (C {(Lit_Other '[')} {(-n)} {(DQ ($ VSub_DollarName '$pre'))} {(Lit_Other ']')})
                  terminator: <Op_Semi ';'>
                )
              ]
              action: [
                (command.If
                  arms: [
                    (if_arm
                      cond: [
                        (command.Sentence
                          child: 
                            (C {(Lit_Other '[')} {($ VSub_DollarName '$major')} {(Lit_Other '=')} {(0)} 
                              {(-a)} {($ VSub_DollarName '$minor')} {(-le)} {(5)} {(Lit_Other ']')}
                            )
                          terminator: <Op_Semi ';'>
                        )
                      ]
                      action: [
                        (C {(echo)} {(DQ ($ VSub_DollarName '$ver') ('+') ($ VSub_DollarName '$nb'))})
                      ]
                      spids: [16777215 375]
                    )
                  ]
                  else_action: [
                    (C {(echo)} {(DQ ($ VSub_DollarName '$ver') (.) ($ VSub_DollarName '$nb'))})
                  ]
                  spids: [387 399]
                )
              ]
              spids: [16777215 351]
            )
          ]
          else_action: [(C {(echo)} {($ VSub_DollarName '$ver')})]
          spids: [402 410]
        )
      ]
      spids: [173 412]
    )
  ]
)