(CommandList
  children: [
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:TYPE) op:Equal rhs:{(DQ (FreeBSD))} spids:[128])]
      spids: [128]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:REVISION) op:Equal rhs:{(DQ (11.1))} spids:[133])]
      spids: [133]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:BRANCH) op:Equal rhs:{(DQ (STABLE))} spids:[138])]
      spids: [138]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (C {(Lit_Other '[')} {(-n)} {(DQ (${ VSub_Name BRANCH_OVERRIDE))} {(Lit_Other ']')})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:BRANCH)
                  op: Equal
                  rhs: {(${ VSub_Name BRANCH_OVERRIDE)}
                  spids: [161]
                )
              ]
              spids: [161]
            )
          ]
          spids: [-1 158]
        )
      ]
      spids: [-1 166]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:RELEASE)
          op: Equal
          rhs: {(DQ (${ VSub_Name REVISION) (-) (${ VSub_Name BRANCH))}
          spids: [168]
        )
      ]
      spids: [168]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:VERSION)
          op: Equal
          rhs: {(DQ (${ VSub_Name TYPE) (' ') (${ VSub_Name RELEASE))}
          spids: [179]
        )
      ]
      spids: [179]
    )
    (FuncDef
      name: findvcs
      body: 
        (BraceGroup
          children: [
            (Assignment
              keyword: Assign_Local
              pairs: [(assign_pair lhs:(LhsName name:savedir) op:Equal spids:[212])]
              spids: [210]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:savedir)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: (CommandList children:[(C {(pwd)})])
                        left_token: <Left_CommandSub '$('>
                        spids: [217 219]
                      )
                    }
                  spids: [216]
                )
              ]
              spids: [216]
            )
            (C {(cd)} {(${ VSub_Name SYSDIR) (/..)})
            (While
              cond: [
                (Sentence
                  child: 
                    (C {(Lit_Other '[')} 
                      {
                        (CommandSubPart
                          command_list: (CommandList children:[(C {(pwd)})])
                          left_token: <Left_CommandSub '$('>
                          spids: [234 236]
                        )
                      } {(KW_Bang '!') (Lit_Other '=')} {(DQ (/))} {(Lit_Other ']')}
                    )
                  terminator: <Op_Semi ';'>
                )
              ]
              body: 
                (DoGroup
                  children: [
                    (If
                      arms: [
                        (if_arm
                          cond: [
                            (Sentence
                              child: 
                                (C {(Lit_Other '[')} {(-e)} {(DQ (./) ($ VSub_Number '$1'))} 
                                  {(Lit_Other ']')}
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:VCSDIR)
                                  op: Equal
                                  rhs: 
                                    {
                                      (CommandSubPart
                                        command_list: (CommandList children:[(C {(pwd)})])
                                        left_token: <Left_CommandSub '$('>
                                        spids: [269 271]
                                      ) (DQ (/) ($ VSub_Number '$1'))
                                    }
                                  spids: [268]
                                )
                              ]
                              spids: [268]
                            )
                            (C {(cd)} {(${ VSub_Name savedir)})
                            (ControlFlow
                              token: <ControlFlow_Return return>
                              arg_word: {(0)}
                            )
                          ]
                          spids: [-1 265]
                        )
                      ]
                      spids: [-1 290]
                    )
                    (C {(cd)} {(..)})
                  ]
                  spids: [248 298]
                )
            )
            (C {(cd)} {(${ VSub_Name savedir)})
            (ControlFlow token:<ControlFlow_Return return> arg_word:{(1)})
          ]
          spids: [207]
        )
      spids: [203 206]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(Lit_Other '[')} {(-z)} {(DQ (${ VSub_Name SYSDIR))} {(Lit_Other ']')})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:SYSDIR)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: (CommandList children:[(C {(dirname)} {($ VSub_Number '$0')})])
                        left_token: <Left_CommandSub '$('>
                        spids: [334 338]
                      ) (/..)
                    }
                  spids: [333]
                )
              ]
              spids: [333]
            )
          ]
          spids: [-1 330]
        )
      ]
      spids: [-1 341]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(Lit_Other '[')} {(-n)} {(DQ (${ VSub_Name PARAMFILE))} {(Lit_Other ']')})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:RELDATE)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (C {(awk)} 
                                {(SQ <'/__FreeBSD_version.*propagated to newvers/ {print $3}'>)} {(${ VSub_Name PARAMFILE)}
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [363 375]
                      )
                    }
                  spids: [362]
                )
              ]
              spids: [362]
            )
          ]
          spids: [-1 359]
        )
      ]
      else_action: [
        (Assignment
          keyword: Assign_None
          pairs: [
            (assign_pair
              lhs: (LhsName name:RELDATE)
              op: Equal
              rhs: 
                {
                  (CommandSubPart
                    command_list: 
                      (CommandList
                        children: [
                          (C {(awk)} {(SQ <'/__FreeBSD_version.*propagated to newvers/ {print $3}'>)} 
                            {(${ VSub_Name SYSDIR) (/sys/param.h)}
                          )
                        ]
                      )
                    left_token: <Left_CommandSub '$('>
                    spids: [381 394]
                  )
                }
              spids: [380]
            )
          ]
          spids: [380]
        )
      ]
      spids: [377 396]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:b)
          op: Equal
          rhs: {(share/examples/etc/bsd-style-copyright)}
          spids: [399]
        )
      ]
      spids: [399]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (C {(Lit_Other '[')} {(-r)} {(DQ (${ VSub_Name SYSDIR) (/../COPYRIGHT))} 
                  {(Lit_Other ']')}
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:year)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (C {(sed)} {(-Ee)} 
                                {
                                  (SQ 
                                    <
'/^Copyright .* The FreeBSD Project/!d;s/^.*1992-([0-9]*) .*$/\\1/g'
                                    >
                                  )
                                } {(${ VSub_Name SYSDIR) (/../COPYRIGHT)}
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                        spids: [422 435]
                      )
                    }
                  spids: [421]
                )
              ]
              spids: [421]
            )
          ]
          spids: [-1 418]
        )
      ]
      else_action: [
        (Assignment
          keyword: Assign_None
          pairs: [
            (assign_pair
              lhs: (LhsName name:year)
              op: Equal
              rhs: 
                {
                  (CommandSubPart
                    command_list: 
                      (CommandList
                        children: [(C {(date)} {(Lit_Other '+') (Lit_Other '%') (Y)})]
                      )
                    left_token: <Left_CommandSub '$('>
                    spids: [441 447]
                  )
                }
              spids: [440]
            )
          ]
          spids: [440]
        )
      ]
      spids: [437 449]
    )
    (ForEach
      iter_name: bsd_copyright
      iter_words: [
        {(../) ($ VSub_Name '$b')}
        {(../../) ($ VSub_Name '$b')}
        {(../../../) ($ VSub_Name '$b')}
        {(/usr/src/) ($ VSub_Name '$b')}
        {(/usr/) ($ VSub_Name '$b')}
      ]
      do_arg_iter: False
      body: 
        (DoGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C {(Lit_Other '[')} {(-r)} {(DQ ($ VSub_Name '$bsd_copyright'))} 
                          {(Lit_Other ']')}
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:COPYRIGHT)
                          op: Equal
                          rhs: 
                            {
                              (CommandSubPart
                                command_list: 
                                  (CommandList
                                    children: [
                                      (C {(sed)} {(-e)} 
                                        {
                                          (DQ (s/) (EscapedLiteralPart token:<Lit_EscapedChar '\\['>) 
                                            (year) (EscapedLiteralPart token:<Lit_EscapedChar '\\]'>) (/1992-) ($ VSub_Name '$year') (/)
                                          )
                                        } {(-e)} {(SQ <'s/\\[your name here\\]\\.* /The FreeBSD Project./'>)} {(-e)} 
                                        {(SQ <'s/\\[your name\\]\\.*/The FreeBSD Project./'>)} {(-e)} {(SQ <'/\\[id for your version control system, if any\\]/d'>)} {($ VSub_Name '$bsd_copyright')}
                                      )
                                    ]
                                  )
                                left_token: <Left_Backtick '`'>
                                spids: [495 539]
                              )
                            }
                          spids: [494]
                        )
                      ]
                      spids: [494]
                    )
                    (ControlFlow token:<ControlFlow_Break break>)
                  ]
                  spids: [-1 491]
                )
              ]
              spids: [-1 546]
            )
          ]
          spids: [475 548]
        )
      spids: [459 -1]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(Lit_Other '[')} {(-z)} {(DQ ($ VSub_Name '$COPYRIGHT'))} {(Lit_Other ']')})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:COPYRIGHT)
                  op: Equal
                  rhs: 
                    {
                      (DQ ('/*-\n') (' * Copyright (c) 1992-') ($ VSub_Name '$year') 
                        (' The FreeBSD Project.\n') (' * All rights reserved.\n') (' *\n') (' */')
                      )
                    }
                  spids: [570]
                )
              ]
              spids: [570]
            )
          ]
          spids: [-1 567]
        )
      ]
      spids: [-1 581]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:COPYRIGHT)
          op: Equal
          rhs: {(DQ ($ VSub_Name '$COPYRIGHT') ('\n'))}
          spids: [587]
        )
      ]
      spids: [587]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(Lit_Other '[')} {(-n)} {(DQ ($ VSub_Name '$VARS_ONLY'))} {(Lit_Other ']')})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [(ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})]
          spids: [-1 613]
        )
      ]
      spids: [-1 620]
    )
    (Sentence
      child: 
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:LC_ALL) op:Equal rhs:{(C)} spids:[623])]
          spids: [623]
        )
      terminator: <Op_Semi ';'>
    )
    (C {(export)} {(LC_ALL)})
    (If
      arms: [
        (if_arm
          cond: [(C {(Lit_Other '[')} {(KW_Bang '!')} {(-r)} {(version)} {(Lit_Other ']')})]
          action: [
            (SimpleCommand
              words: [{(echo)} {(0)}]
              redirects: [(Redir op_id:Redir_Great fd:-1 arg_word:{(version)} spids:[650])]
            )
          ]
          spids: [-1 643]
        )
      ]
      spids: [-1 654]
    )
    (C {(touch)} {(version)})
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:v)
          op: Equal
          rhs: 
            {
              (CommandSubPart
                command_list: (CommandList children:[(C {(cat)} {(version)})])
                left_token: <Left_Backtick '`'>
                spids: [662 666]
              )
            }
          spids: [661]
        )
      ]
      spids: [661]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:u)
          op: Equal
          rhs: 
            {
              (BracedVarSub
                token: <VSub_Name USER>
                suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(root)})
                spids: [669 673]
              )
            }
          spids: [668]
        )
      ]
      spids: [668]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:d)
          op: Equal
          rhs: 
            {
              (CommandSubPart
                command_list: (CommandList children:[(C {(pwd)})])
                left_token: <Left_Backtick '`'>
                spids: [676 678]
              )
            }
          spids: [675]
        )
      ]
      spids: [675]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:h)
          op: Equal
          rhs: 
            {
              (BracedVarSub
                token: <VSub_Name HOSTNAME>
                suffix_op: 
                  (StringUnary
                    op_id: VTest_ColonHyphen
                    arg_word: 
                      {
                        (CommandSubPart
                          command_list: (CommandList children:[(C {(hostname)})])
                          left_token: <Left_Backtick '`'>
                          spids: [684 686]
                        )
                      }
                  )
                spids: [681 687]
              )
            }
          spids: [680]
        )
      ]
      spids: [680]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (C {(Lit_Other '[')} {(-n)} {(DQ ($ VSub_Name '$SOURCE_DATE_EPOCH'))} {(Lit_Other ']')})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (Pipeline
                          children: [
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:t)
                                  op: Equal
                                  rhs: 
                                    {
                                      (CommandSubPart
                                        command_list: 
                                          (CommandList
                                            children: [
                                              (SimpleCommand
                                                words: [
                                                  {(date)}
                                                  {(-r)}
                                                  {($ VSub_Name '$SOURCE_DATE_EPOCH')}
                                                ]
                                                redirects: [
                                                  (Redir
                                                    op_id: Redir_Great
                                                    fd: 2
                                                    arg_word: {(/dev/null)}
                                                    spids: [717]
                                                  )
                                                ]
                                              )
                                            ]
                                          )
                                        left_token: <Left_Backtick '`'>
                                        spids: [710 719]
                                      )
                                    }
                                  spids: [709]
                                )
                              ]
                              spids: [709]
                            )
                          ]
                          negated: True
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (SimpleCommand
                      words: [{(echo)} {(DQ ('Invalid SOURCE_DATE_EPOCH'))}]
                      redirects: [(Redir op_id:Redir_GreatAnd fd:-1 arg_word:{(2)} spids:[731])]
                    )
                    (C {(exit)} {(1)})
                  ]
                  spids: [-1 722]
                )
              ]
              spids: [-1 740]
            )
          ]
          spids: [-1 702]
        )
      ]
      else_action: [
        (Assignment
          keyword: Assign_None
          pairs: [
            (assign_pair
              lhs: (LhsName name:t)
              op: Equal
              rhs: 
                {
                  (CommandSubPart
                    command_list: (CommandList children:[(C {(date)})])
                    left_token: <Left_Backtick '`'>
                    spids: [746 748]
                  )
                }
              spids: [745]
            )
          ]
          spids: [745]
        )
      ]
      spids: [742 750]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:i)
          op: Equal
          rhs: 
            {
              (CommandSubPart
                command_list: 
                  (CommandList
                    children: [
                      (C 
                        {
                          (BracedVarSub
                            token: <VSub_Name MAKE>
                            suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(make)})
                            spids: [754 758]
                          )
                        } {(-V)} {(KERN_IDENT)}
                      )
                    ]
                  )
                left_token: <Left_Backtick '`'>
                spids: [753 763]
              )
            }
          spids: [752]
        )
      ]
      spids: [752]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:compiler_v)
          op: Equal
          rhs: 
            {
              (CommandSubPart
                command_list: 
                  (CommandList
                    children: [
                      (Pipeline
                        children: [
                          (SimpleCommand
                            words: [
                              {
                                (CommandSubPart
                                  command_list: 
                                    (CommandList
                                      children: [
                                        (C 
                                          {
                                            (BracedVarSub
                                              token: <VSub_Name MAKE>
                                              suffix_op: 
                                                (StringUnary
                                                  op_id: VTest_ColonHyphen
                                                  arg_word: {(make)}
                                                )
                                              spids: [768 772]
                                            )
                                          } {(-V)} {(CC)}
                                        )
                                      ]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [767 777]
                                )
                              }
                              {(-v)}
                            ]
                            redirects: [(Redir op_id:Redir_GreatAnd fd:2 arg_word:{(1)} spids:[781])]
                          )
                          (C {(grep)} {(-w)} {(SQ <version>)})
                        ]
                        negated: False
                      )
                    ]
                  )
                left_token: <Left_CommandSub '$('>
                spids: [766 793]
              )
            }
          spids: [765]
        )
      ]
      spids: [765]
    )
    (ForEach
      iter_name: dir
      iter_words: [{(/usr/bin)} {(/usr/local/bin)}]
      do_arg_iter: False
      body: 
        (DoGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C {(Lit_Other '[')} {(KW_Bang '!')} {(-z)} {(DQ (${ VSub_Name svnversion))} 
                          {(Lit_Other ']')}
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [(ControlFlow token:<ControlFlow_Break break>)]
                  spids: [-1 828]
                )
              ]
              spids: [-1 834]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (AndOr
                          children: [
                            (C {(Lit_Other '[')} {(-x)} {(DQ (${ VSub_Name dir) (/svnversion))} 
                              {(Lit_Other ']')}
                            )
                            (C {(Lit_Other '[')} {(-z)} {(${ VSub_Name svnversion)} {(Lit_Other ']')})
                          ]
                          op_id: Op_DAmp
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (SimpleCommand
                      words: [
                        {(${ VSub_Name dir) (/svnversion)}
                        {
                          (CommandSubPart
                            command_list: 
                              (CommandList
                                children: [(C {(realpath)} {(${ VSub_Number 0)})]
                              )
                            left_token: <Left_CommandSub '$('>
                            spids: [886 892]
                          )
                        }
                      ]
                      redirects: [
                        (Redir
                          op_id: Redir_Great
                          fd: -1
                          arg_word: {(/dev/null)}
                          spids: [894]
                        )
                        (Redir
                          op_id: Redir_GreatAnd
                          fd: 2
                          arg_word: {(1)}
                          spids: [897]
                        )
                      ]
                    )
                    (If
                      arms: [
                        (if_arm
                          cond: [
                            (Sentence
                              child: 
                                (C {(Lit_Other '[')} {($ VSub_QMark '$?')} {(-eq)} {(0)} {(Lit_Other ']')})
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:svnversion)
                                  op: Equal
                                  rhs: {(${ VSub_Name dir) (/svnversion)}
                                  spids: [917]
                                )
                              ]
                              spids: [917]
                            )
                            (ControlFlow token:<ControlFlow_Break break>)
                          ]
                          spids: [-1 914]
                        )
                      ]
                      spids: [-1 927]
                    )
                  ]
                  spids: [-1 866]
                )
              ]
              spids: [-1 930]
            )
          ]
          spids: [807 932]
        )
      spids: [801 805]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (AndOr
                  children: [
                    (C {(Lit_Other '[')} {(-z)} {(DQ (${ VSub_Name svnversion))} {(Lit_Other ']')})
                    (C {(Lit_Other '[')} {(-x)} {(/usr/bin/svnliteversion)} {(Lit_Other ']')})
                  ]
                  op_id: Op_DAmp
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [
                {(/usr/bin/svnliteversion)}
                {
                  (CommandSubPart
                    command_list: (CommandList children:[(C {(realpath)} {(${ VSub_Number 0)})])
                    left_token: <Left_CommandSub '$('>
                    spids: [966 972]
                  )
                }
              ]
              redirects: [
                (Redir op_id:Redir_Great fd:-1 arg_word:{(/dev/null)} spids:[974])
                (Redir op_id:Redir_GreatAnd fd:2 arg_word:{(1)} spids:[977])
              ]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C {(Lit_Other '[')} {($ VSub_QMark '$?')} {(-eq)} {(0)} {(Lit_Other ']')})
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:svnversion)
                          op: Equal
                          rhs: {(/usr/bin/svnliteversion)}
                          spids: [997]
                        )
                      ]
                      spids: [997]
                    )
                  ]
                  spids: [-1 994]
                )
              ]
              else_action: [
                (Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:svnversion)
                      op: Equal
                      rhs: {(SQ )}
                      spids: [1004]
                    )
                  ]
                  spids: [1004]
                )
              ]
              spids: [1001 1007]
            )
          ]
          spids: [-1 961]
        )
      ]
      spids: [-1 1009]
    )
    (ForEach
      iter_name: dir
      iter_words: [{(/usr/bin)} {(/usr/local/bin)}]
      do_arg_iter: False
      body: 
        (DoGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (AndOr
                          children: [
                            (C {(Lit_Other '[')} {(-x)} {(DQ (${ VSub_Name dir) (/p4))} {(Lit_Other ']')})
                            (C {(Lit_Other '[')} {(-z)} {(${ VSub_Name p4_cmd)} {(Lit_Other ']')})
                          ]
                          op_id: Op_DAmp
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:p4_cmd)
                          op: Equal
                          rhs: {(${ VSub_Name dir) (/p4)}
                          spids: [1058]
                        )
                      ]
                      spids: [1058]
                    )
                  ]
                  spids: [-1 1055]
                )
              ]
              spids: [-1 1065]
            )
          ]
          spids: [1023 1067]
        )
      spids: [1017 1021]
    )
    (If
      arms: [
        (if_arm
          cond: [(Sentence child:(C {(findvcs)} {(.git)}) terminator:<Op_Semi ';'>)]
          action: [
            (ForEach
              iter_name: dir
              iter_words: [{(/usr/bin)} {(/usr/local/bin)}]
              do_arg_iter: False
              body: 
                (DoGroup
                  children: [
                    (If
                      arms: [
                        (if_arm
                          cond: [
                            (Sentence
                              child: 
                                (C {(Lit_Other '[')} {(-x)} {(DQ (${ VSub_Name dir) (/git))} 
                                  {(Lit_Other ']')}
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:git_cmd)
                                  op: Equal
                                  rhs: 
                                    {
                                      (DQ (${ VSub_Name dir) ('/git --git-dir=') (${ VSub_Name VCSDIR))
                                    }
                                  spids: [1114]
                                )
                              ]
                              spids: [1114]
                            )
                            (ControlFlow token:<ControlFlow_Break break>)
                          ]
                          spids: [-1 1111]
                        )
                      ]
                      spids: [-1 1129]
                    )
                  ]
                  spids: [1091 1132]
                )
              spids: [1085 1089]
            )
          ]
          spids: [-1 1077]
        )
      ]
      spids: [-1 1134]
    )
    (If
      arms: [
        (if_arm
          cond: [(Sentence child:(C {(findvcs)} {(.hg)}) terminator:<Op_Semi ';'>)]
          action: [
            (ForEach
              iter_name: dir
              iter_words: [{(/usr/bin)} {(/usr/local/bin)}]
              do_arg_iter: False
              body: 
                (DoGroup
                  children: [
                    (If
                      arms: [
                        (if_arm
                          cond: [
                            (Sentence
                              child: 
                                (C {(Lit_Other '[')} {(-x)} {(DQ (${ VSub_Name dir) (/hg))} 
                                  {(Lit_Other ']')}
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:hg_cmd)
                                  op: Equal
                                  rhs: {(DQ (${ VSub_Name dir) ('/hg -R ') (${ VSub_Name VCSDIR))}
                                  spids: [1181]
                                )
                              ]
                              spids: [1181]
                            )
                            (ControlFlow token:<ControlFlow_Break break>)
                          ]
                          spids: [-1 1178]
                        )
                      ]
                      spids: [-1 1196]
                    )
                  ]
                  spids: [1158 1199]
                )
              spids: [1152 1156]
            )
          ]
          spids: [-1 1144]
        )
      ]
      spids: [-1 1201]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(Lit_Other '[')} {(-n)} {(DQ ($ VSub_Name '$svnversion'))} {(Lit_Other ']')})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:svn)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (AndOr
                                children: [
                                  (C {(cd)} {(${ VSub_Name SYSDIR)})
                                  (SimpleCommand
                                    words: [{($ VSub_Name '$svnversion')}]
                                    redirects: [
                                      (Redir
                                        op_id: Redir_Great
                                        fd: 2
                                        arg_word: {(/dev/null)}
                                        spids: [1233]
                                      )
                                    ]
                                  )
                                ]
                                op_id: Op_DAmp
                              )
                            ]
                          )
                        left_token: <Left_Backtick '`'>
                        spids: [1222 1235]
                      )
                    }
                  spids: [1221]
                )
              ]
              spids: [1221]
            )
            (Case
              to_match: {(DQ ($ VSub_Name '$svn'))}
              arms: [
                (case_arm
                  pat_list: [
                    {(Lit_Other '[') (0-9) (Lit_Other ']') (Lit_Other '*') (Lit_Other '[') (MSP) 
                      (Lit_Other ']')
                    }
                    {(Lit_Other '*') (Lit_Other ':') (Lit_Other '*')}
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:svn)
                          op: Equal
                          rhs: {(DQ (' r') (${ VSub_Name svn))}
                          spids: [1261]
                        )
                      ]
                      spids: [1261]
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:modified)
                          op: Equal
                          rhs: {(true)}
                          spids: [1270]
                        )
                      ]
                      spids: [1270]
                    )
                  ]
                  spids: [1247 1258 1274 -1]
                )
                (case_arm
                  pat_list: [{(Lit_Other '[') (0-9) (Lit_Other ']') (Lit_Other '*')}]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:svn)
                          op: Equal
                          rhs: {(DQ (' r') (${ VSub_Name svn))}
                          spids: [1284]
                        )
                      ]
                      spids: [1284]
                    )
                  ]
                  spids: [1277 1281 1293 -1]
                )
                (case_arm
                  pat_list: [{(Lit_Other '*')}]
                  action: [(C {(unset)} {(svn)})]
                  spids: [1296 1297 1305 -1]
                )
              ]
              spids: [1238 1244 1308]
            )
          ]
          spids: [-1 1218]
        )
      ]
      spids: [-1 1310]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(Lit_Other '[')} {(-n)} {(DQ ($ VSub_Name '$git_cmd'))} {(Lit_Other ']')})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:git)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (SimpleCommand
                                words: [
                                  {($ VSub_Name '$git_cmd')}
                                  {(rev-parse)}
                                  {(--verify)}
                                  {(--short)}
                                  {(HEAD)}
                                ]
                                redirects: [
                                  (Redir
                                    op_id: Redir_Great
                                    fd: 2
                                    arg_word: {(/dev/null)}
                                    spids: [1342]
                                  )
                                ]
                              )
                            ]
                          )
                        left_token: <Left_Backtick '`'>
                        spids: [1331 1344]
                      )
                    }
                  spids: [1330]
                )
              ]
              spids: [1330]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:svn)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (SimpleCommand
                                words: [
                                  {($ VSub_Name '$git_cmd')}
                                  {(svn)}
                                  {(find-rev)}
                                  {($ VSub_Name '$git')}
                                ]
                                redirects: [
                                  (Redir
                                    op_id: Redir_Great
                                    fd: 2
                                    arg_word: {(/dev/null)}
                                    spids: [1357]
                                  )
                                ]
                              )
                            ]
                          )
                        left_token: <Left_Backtick '`'>
                        spids: [1348 1359]
                      )
                    }
                  spids: [1347]
                )
              ]
              spids: [1347]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {(Lit_Other '[')} {(-n)} {(DQ ($ VSub_Name '$svn'))} {(Lit_Other ']')})
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:svn)
                          op: Equal
                          rhs: {(DQ (' r') (${ VSub_Name svn))}
                          spids: [1379]
                        )
                      ]
                      spids: [1379]
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:git)
                          op: Equal
                          rhs: {(DQ ('=') (${ VSub_Name git))}
                          spids: [1388]
                        )
                      ]
                      spids: [1388]
                    )
                  ]
                  spids: [-1 1376]
                )
              ]
              else_action: [
                (Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:svn)
                      op: Equal
                      rhs: 
                        {
                          (CommandSubPart
                            command_list: 
                              (CommandList
                                children: [
                                  (Pipeline
                                    children: [
                                      (C {($ VSub_Name '$git_cmd')} {(log)} {(--grep)} 
                                        {(SQ <'^git-svn-id:'>)}
                                      )
                                      (C {(grep)} {(SQ <'^    git-svn-id:'>)})
                                      (C {(head)} {(-1)})
                                      (C {(sed)} {(-n)} {(SQ <'s/^.*@\\([0-9][0-9]*\\).*$/\\1/p'>)})
                                    ]
                                    negated: False
                                  )
                                ]
                              )
                            left_token: <Left_Backtick '`'>
                            spids: [1401 1439]
                          )
                        }
                      spids: [1400]
                    )
                  ]
                  spids: [1400]
                )
                (If
                  arms: [
                    (if_arm
                      cond: [
                        (Sentence
                          child: 
                            (C {(Lit_Other '[')} {(-z)} {(DQ ($ VSub_Name '$svn'))} {(Lit_Other ']')})
                          terminator: <Op_Semi ';'>
                        )
                      ]
                      action: [
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:svn)
                              op: Equal
                              rhs: 
                                {
                                  (CommandSubPart
                                    command_list: 
                                      (CommandList
                                        children: [
                                          (Pipeline
                                            children: [
                                              (C {($ VSub_Name '$git_cmd')} {(log)} 
                                                {(--format) (Lit_Other '=') (SQ <'format:%N'>)}
                                              )
                                              (C {(grep)} {(SQ <'^svn '>)})
                                              (C {(head)} {(-1)})
                                              (C {(sed)} {(-n)} 
                                                {(SQ <'s/^.*revision=\\([0-9][0-9]*\\).*$/\\1/p'>)}
                                              )
                                            ]
                                            negated: False
                                          )
                                        ]
                                      )
                                    left_token: <Left_Backtick '`'>
                                    spids: [1460 1498]
                                  )
                                }
                              spids: [1459]
                            )
                          ]
                          spids: [1459]
                        )
                      ]
                      spids: [-1 1456]
                    )
                  ]
                  spids: [-1 1501]
                )
                (If
                  arms: [
                    (if_arm
                      cond: [
                        (Sentence
                          child: 
                            (C {(Lit_Other '[')} {(-n)} {(DQ ($ VSub_Name '$svn'))} {(Lit_Other ']')})
                          terminator: <Op_Semi ';'>
                        )
                      ]
                      action: [
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:svn)
                              op: Equal
                              rhs: {(DQ (' r') (${ VSub_Name svn))}
                              spids: [1521]
                            )
                          ]
                          spids: [1521]
                        )
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:git)
                              op: Equal
                              rhs: {(DQ ('+') (${ VSub_Name git))}
                              spids: [1530]
                            )
                          ]
                          spids: [1530]
                        )
                      ]
                      spids: [-1 1518]
                    )
                  ]
                  else_action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:git)
                          op: Equal
                          rhs: {(DQ (' ') (${ VSub_Name git))}
                          spids: [1542]
                        )
                      ]
                      spids: [1542]
                    )
                  ]
                  spids: [1539 1551]
                )
              ]
              spids: [1397 1554]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:git_b)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (C {($ VSub_Name '$git_cmd')} {(rev-parse)} {(--abbrev-ref)} {(HEAD)})
                            ]
                          )
                        left_token: <Left_Backtick '`'>
                        spids: [1558 1566]
                      )
                    }
                  spids: [1557]
                )
              ]
              spids: [1557]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (C {(Lit_Other '[')} {(-n)} {(DQ ($ VSub_Name '$git_b'))} {(Lit_Other ']')})
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:git)
                          op: Equal
                          rhs: {(DQ (${ VSub_Name git) ('(') (${ VSub_Name git_b) (')'))}
                          spids: [1586]
                        )
                      ]
                      spids: [1586]
                    )
                  ]
                  spids: [-1 1583]
                )
              ]
              spids: [-1 1599]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: 
                        (Pipeline
                          children: [
                            (C {($ VSub_Name '$git_cmd')} 
                              {(--work-tree) (Lit_Other '=') (${ VSub_Name VCSDIR) (/..)} {(diff-index)} {(--name-only)} {(HEAD)}
                            )
                            (C {(read)} {(dummy)})
                          ]
                          negated: False
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:git)
                          op: Equal
                          rhs: {(DQ (${ VSub_Name git) (-dirty))}
                          spids: [1631]
                        )
                      ]
                      spids: [1631]
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:modified)
                          op: Equal
                          rhs: {(true)}
                          spids: [1640]
                        )
                      ]
                      spids: [1640]
                    )
                  ]
                  spids: [-1 1628]
                )
              ]
              spids: [-1 1644]
            )
          ]
          spids: [-1 1327]
        )
      ]
      spids: [-1 1646]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(Lit_Other '[')} {(-n)} {(DQ ($ VSub_Name '$p4_cmd'))} {(Lit_Other ']')})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:p4version)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (AndOr
                                children: [
                                  (C {(cd)} {(${ VSub_Name SYSDIR)})
                                  (Pipeline
                                    children: [
                                      (SimpleCommand
                                        words: [
                                          {($ VSub_Name '$p4_cmd')}
                                          {(changes)}
                                          {(-m1)}
                                          {(DQ ('./...#have'))}
                                        ]
                                        redirects: [
                                          (Redir
                                            op_id: Redir_GreatAnd
                                            fd: 2
                                            arg_word: {(1)}
                                            spids: [1686]
                                          )
                                        ]
                                      )
                                      (C {(awk)} {(SQ <'{ print $2 }'>)})
                                    ]
                                    negated: False
                                  )
                                ]
                                op_id: Op_DAmp
                              )
                            ]
                          )
                        left_token: <Left_Backtick '`'>
                        spids: [1667 1698]
                      )
                    }
                  spids: [1666]
                )
              ]
              spids: [1666]
            )
            (Case
              to_match: {(DQ ($ VSub_Name '$p4version'))}
              arms: [
                (case_arm
                  pat_list: [{(Lit_Other '[') (0-9) (Lit_Other ']') (Lit_Other '*')}]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:p4version)
                          op: Equal
                          rhs: {(DQ (' ') (${ VSub_Name p4version))}
                          spids: [1717]
                        )
                      ]
                      spids: [1717]
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:p4opened)
                          op: Equal
                          rhs: 
                            {
                              (CommandSubPart
                                command_list: 
                                  (CommandList
                                    children: [
                                      (AndOr
                                        children: [
                                          (C {(cd)} {(${ VSub_Name SYSDIR)})
                                          (SimpleCommand
                                            words: [{($ VSub_Name '$p4_cmd')} {(opened)} {(./...)}]
                                            redirects: [
                                              (Redir
                                                op_id: Redir_GreatAnd
                                                fd: 2
                                                arg_word: {(1)}
                                                spids: [1742]
                                              )
                                            ]
                                          )
                                        ]
                                        op_id: Op_DAmp
                                      )
                                    ]
                                  )
                                left_token: <Left_Backtick '`'>
                                spids: [1727 1744]
                              )
                            }
                          spids: [1726]
                        )
                      ]
                      spids: [1726]
                    )
                    (Case
                      to_match: {(DQ ($ VSub_Name '$p4opened'))}
                      arms: [
                        (case_arm
                          pat_list: [{(File) (Lit_Other '*')}]
                          spids: [1756 1758 1760 -1]
                        )
                        (case_arm
                          pat_list: [{(//) (Lit_Other '*')}]
                          action: [
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:p4version)
                                  op: Equal
                                  rhs: {(DQ (${ VSub_Name p4version) ('+edit'))}
                                  spids: [1768]
                                )
                              ]
                              spids: [1768]
                            )
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:modified)
                                  op: Equal
                                  rhs: {(true)}
                                  spids: [1777]
                                )
                              ]
                              spids: [1777]
                            )
                          ]
                          spids: [1763 1765 1781 -1]
                        )
                      ]
                      spids: [1747 1753 1784]
                    )
                  ]
                  spids: [1710 1714 1787 -1]
                )
                (case_arm
                  pat_list: [{(Lit_Other '*')}]
                  action: [(C {(unset)} {(p4version)})]
                  spids: [1790 1791 1797 -1]
                )
              ]
              spids: [1701 1707 1800]
            )
          ]
          spids: [-1 1663]
        )
      ]
      spids: [-1 1802]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: (C {(Lit_Other '[')} {(-n)} {(DQ ($ VSub_Name '$hg_cmd'))} {(Lit_Other ']')})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:hg)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (SimpleCommand
                                words: [{($ VSub_Name '$hg_cmd')} {(id)}]
                                redirects: [
                                  (Redir
                                    op_id: Redir_Great
                                    fd: 2
                                    arg_word: {(/dev/null)}
                                    spids: [1828]
                                  )
                                ]
                              )
                            ]
                          )
                        left_token: <Left_Backtick '`'>
                        spids: [1823 1830]
                      )
                    }
                  spids: [1822]
                )
              ]
              spids: [1822]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:svn)
                  op: Equal
                  rhs: 
                    {
                      (CommandSubPart
                        command_list: 
                          (CommandList
                            children: [
                              (Pipeline
                                children: [
                                  (SimpleCommand
                                    words: [{($ VSub_Name '$hg_cmd')} {(svn)} {(info)}]
                                    redirects: [
                                      (Redir
                                        op_id: Redir_Great
                                        fd: 2
                                        arg_word: {(/dev/null)}
                                        spids: [1841]
                                      )
                                    ]
                                  )
                                  (C {(awk)} {(-F) (SQ <': '>)} {(SQ <'/Revision/ { print $2 }'>)})
                                ]
                                negated: False
                              )
                            ]
                          )
                        left_token: <Left_Backtick '`'>
                        spids: [1834 1858]
                      )
                    }
                  spids: [1833]
                )
              ]
              spids: [1833]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {(Lit_Other '[')} {(-n)} {(DQ ($ VSub_Name '$svn'))} {(Lit_Other ']')})
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:svn)
                          op: Equal
                          rhs: {(DQ (' r') (${ VSub_Name svn))}
                          spids: [1878]
                        )
                      ]
                      spids: [1878]
                    )
                  ]
                  spids: [-1 1875]
                )
              ]
              spids: [-1 1887]
            )
            (If
              arms: [
                (if_arm
                  cond: [
                    (Sentence
                      child: (C {(Lit_Other '[')} {(-n)} {(DQ ($ VSub_Name '$hg'))} {(Lit_Other ']')})
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:hg)
                          op: Equal
                          rhs: {(DQ (' ') (${ VSub_Name hg))}
                          spids: [1907]
                        )
                      ]
                      spids: [1907]
                    )
                  ]
                  spids: [-1 1904]
                )
              ]
              spids: [-1 1916]
            )
          ]
          spids: [-1 1819]
        )
      ]
      spids: [-1 1918]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:include_metadata) op:Equal rhs:{(true)} spids:[1921])]
      spids: [1921]
    )
    (While
      cond: [(Sentence child:(C {(getopts)} {(rR)} {(opt)}) terminator:<Op_Semi ';'>)]
      body: 
        (DoGroup
          children: [
            (Case
              to_match: {(DQ ($ VSub_Name '$opt'))}
              arms: [
                (case_arm
                  pat_list: [{(r)}]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:include_metadata)
                          op: Equal
                          rhs: {(SQ )}
                          spids: [1949]
                        )
                      ]
                      spids: [1949]
                    )
                  ]
                  spids: [1945 1946 1952 -1]
                )
                (case_arm
                  pat_list: [{(R)}]
                  action: [
                    (If
                      arms: [
                        (if_arm
                          cond: [
                            (Sentence
                              child: 
                                (C {(Lit_Other '[')} {(-z)} {(DQ (${ VSub_Name modified))} 
                                  {(Lit_Other ']')}
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (LhsName name:include_metadata)
                                  op: Equal
                                  rhs: {(SQ )}
                                  spids: [1977]
                                )
                              ]
                              spids: [1977]
                            )
                          ]
                          spids: [-1 1974]
                        )
                      ]
                      spids: [-1 1980]
                    )
                  ]
                  spids: [1955 1956 -1 1983]
                )
              ]
              spids: [1936 1942 1983]
            )
          ]
          spids: [1933 1985]
        )
    )
    (C {(shift)} 
      {
        (ArithSubPart
          anode: 
            (ArithBinary
              op_id: Arith_Minus
              left: (ArithVarRef name:OPTIND)
              right: (ArithWord w:{(Lit_Digits 1)})
            )
          spids: [1989 1996]
        )
      }
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (C {(Lit_Other '[')} {(-z)} {(DQ (${ VSub_Name include_metadata))} {(Lit_Other ']')})
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:VERINFO)
                  op: Equal
                  rhs: 
                    {
                      (DQ (${ VSub_Name VERSION) (' ') (${ VSub_Name svn) (${ VSub_Name git) 
                        (${ VSub_Name hg) (${ VSub_Name p4version)
                      )
                    }
                  spids: [2017]
                )
              ]
              spids: [2017]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:VERSTR)
                  op: Equal
                  rhs: 
                    {
                      (DQ (${ VSub_Name VERINFO) (EscapedLiteralPart token:<Lit_EscapedChar '\\\\'>) 
                        (n)
                      )
                    }
                  spids: [2038]
                )
              ]
              spids: [2038]
            )
          ]
          spids: [-1 2014]
        )
      ]
      else_action: [
        (Assignment
          keyword: Assign_None
          pairs: [
            (assign_pair
              lhs: (LhsName name:VERINFO)
              op: Equal
              rhs: 
                {
                  (DQ (${ VSub_Name VERSION) (' #') (${ VSub_Name v) (${ VSub_Name svn) 
                    (${ VSub_Name git) (${ VSub_Name hg) (${ VSub_Name p4version) (': ') (${ VSub_Name t)
                  )
                }
              spids: [2050]
            )
          ]
          spids: [2050]
        )
        (Assignment
          keyword: Assign_None
          pairs: [
            (assign_pair
              lhs: (LhsName name:VERSTR)
              op: Equal
              rhs: 
                {
                  (DQ (${ VSub_Name VERINFO) (EscapedLiteralPart token:<Lit_EscapedChar '\\\\'>) 
                    ('n    ') (${ VSub_Name u) ('@') (${ VSub_Name h) (':') (${ VSub_Name d) 
                    (EscapedLiteralPart token:<Lit_EscapedChar '\\\\'>) (n)
                  )
                }
              spids: [2078]
            )
          ]
          spids: [2078]
        )
      ]
      spids: [2047 2100]
    )
    (SimpleCommand
      words: [{(cat)}]
      redirects: [
        (HereDoc
          op_id: Redir_DLess
          fd: -1
          body: 
            {
              (DQ ($ VSub_Name '$COPYRIGHT') ('\n') ('#define SCCSSTR ') (Right_DoubleQuote '"') ('@(#)') 
                (${ VSub_Name VERINFO) (Right_DoubleQuote '"') ('\n') ('#define VERSTR ') (Right_DoubleQuote '"') (${ VSub_Name VERSTR) 
                (Right_DoubleQuote '"') ('\n') ('#define RELSTR ') (Right_DoubleQuote '"') (${ VSub_Name RELEASE) (Right_DoubleQuote '"') ('\n') 
                ('\n') ('char sccs[sizeof(SCCSSTR) > 128 ? sizeof(SCCSSTR) : 128] = SCCSSTR;\n') 
                ('char version[sizeof(VERSTR) > 256 ? sizeof(VERSTR) : 256] = VERSTR;\n') ('char compiler_version[] = ') (Right_DoubleQuote '"') (${ VSub_Name compiler_v) (Right_DoubleQuote '"') 
                (';\n') ('char ostype[] = ') (Right_DoubleQuote '"') (${ VSub_Name TYPE) (Right_DoubleQuote '"') (';\n') 
                ('char osrelease[sizeof(RELSTR) > 32 ? sizeof(RELSTR) : 32] = RELSTR;\n') ('int osreldate = ') (${ VSub_Name RELDATE) (';\n') ('char kern_ident[] = ') (Right_DoubleQuote '"') 
                (${ VSub_Name i) (Right_DoubleQuote '"') (';\n')
              )
            }
          do_expansion: True
          here_end: EOF
          was_filled: True
          spids: [2105]
        )
        (Redir op_id:Redir_Great fd:-1 arg_word:{(vers.c)} spids:[2109])
      ]
    )
    (SimpleCommand
      words: [
        {(echo)}
        {
          (ArithSubPart
            anode: 
              (ArithBinary
                op_id: Arith_Plus
                left: (ArithVarRef name:v)
                right: (ArithWord w:{(Lit_Digits 1)})
              )
            spids: [2171 2178]
          )
        }
      ]
      redirects: [(Redir op_id:Redir_Great fd:-1 arg_word:{(version)} spids:[2180])]
    )
  ]
)