(command.CommandList
  children: [
    (C {<echo>} {(DQ <'*** PREPARE SYSROOT BEGIN ***'>)})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:SRC_DIR)
          op: assign_op.Equal
          rhs: {(command_sub left_token:<Id.Left_DollarParen '$('> child:(C {<pwd>}))}
          spids: [11]
        )
      ]
    )
    (C {<cd>} {<work>})
    (C {<echo>} {(DQ <'Cleaning existing sysroot. This may take a while...'>)})
    (C {<rm>} {<-rf>} {<sysroot>})
    (C {<rm>} {<-rf>} {<sysroot.specs>})
    (C {<echo>} {(DQ <'Preparing glibc. This may take a while...'>)})
    (C {<cp>} {<-r>} {<'glibc/glibc_installed'>} {<sysroot>})
    (C {<cd>} {<sysroot>})
    (C {<mkdir>} {<-p>} {<usr>})
    (C {<ln>} {<-s>} {<'../include'>} {<'usr/include'>})
    (C {<ln>} {<-s>} {<'../lib'>} {<'usr/lib'>})
    (C {<ln>} {<-s>} {<'../../kernel/kernel_installed/include/linux'>} {<'include/linux'>})
    (C {<ln>} {<-s>} {<'../../kernel/kernel_installed/include/asm'>} {<'include/asm'>})
    (C {<ln>} {<-s>} {<'../../kernel/kernel_installed/include/asm-generic'>} {<'include/asm-generic'>})
    (C {<ln>} {<-s>} {<'../../kernel/kernel_installed/include/mtd'>} {<'include/mtd'>})
    (C {<cd>} {<..>})
    (C {<echo>} {(DQ <'generating sysroot.specs'>)})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:SYSROOT)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_DollarName '$PWD') <'/sysroot'>)}
          spids: [180]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:GCC_INTERNAL_PATH)
          op: assign_op.Equal
          rhs: 
            {
              (command_sub
                left_token: <Id.Left_DollarParen '$('>
                child: 
                  (C {<dirname>} 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: (C {<gcc>} {<-print-libgcc-file-name>})
                      )
                    }
                  )
              )
            }
          spids: [190]
        )
      ]
    )
    (command.Simple
      words: [{<cat>}]
      redirects: [
        (redir
          op: <Id.Redir_DLess '<<'>
          loc: (redir_loc.Fd fd:0)
          arg: 
            (redir_param.HereDoc
              here_begin: {<CEOF>}
              here_end_span_id: 229
              stdin_parts: [
                <'*link_libgcc:\n'>
                <-L>
                ($ Id.VSub_DollarName '$SYSROOT')
                <'/lib -L'>
                ($ Id.VSub_DollarName '$SYSROOT')
                <'/lib64 -L'>
                ($ Id.VSub_DollarName '$SYSROOT')
                <'/usr/lib -L'>
                ($ Id.VSub_DollarName '$SYSROOT')
                <'/usr/lib64 -L'>
                ($ Id.VSub_DollarName '$SYSROOT')
                <'/usr/local/lib -L'>
                ($ Id.VSub_DollarName '$SYSROOT')
                <'/usr/local/lib64 -L'>
                ($ Id.VSub_DollarName '$GCC_INTERNAL_PATH')
                <'\n'>
              ]
            )
        )
        (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<sysroot.specs>})
      ]
      do_fork: T
    )
    (C {<cd>} {($ Id.VSub_DollarName '$SRC_DIR')})
    (C {<echo>} {(DQ <'*** PREPARE SYSROOT END ***'>)})
  ]
)