(command.CommandList
  children: [
    (command.ShFunction
      name: process_text_file
      body: 
        (BraceGroup
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:X)
                  op: assign_op.Equal
                  rhs: {<0>}
                  spids: [15]
                )
              ]
            )
            (command.Pipeline
              children: [
                (C {<sed>} {<-e>} 
                  {
                    (SQ 
                      <
's/\\(................................................................................\\)/\\1\\n/g'
                      >
                    )
                  } {(DQ ($ Id.VSub_Number '$1'))}
                )
                (C {<tail>} {<-n>} {<25>})
                (command.WhileUntil
                  keyword: <Id.KW_While while>
                  cond: (condition.Shell commands:[(C {<read>} {<i>})])
                  body: 
                    (command.DoGroup
                      children: [
                        (command.Pipeline
                          children: [
                            (C {<echo>} {<-n>} {(DQ ($ Id.VSub_DollarName '$i'))})
                            (C {<sed>} {<-e>} {(SQ <'s@\\&@\\&amp;@g'>)} {<-e>} {(SQ <'s@<@\\&lt;@g'>)} 
                              {<-e>} {(SQ <'s@>@\\&gt;@g'>)}
                            )
                          ]
                          negated: F
                        )
                        (command.If
                          arms: [
                            (if_arm
                              cond: 
                                (condition.Shell
                                  commands: [
                                    (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName '$X')} {<-eq>} 
                                      {<0>} {<Id.Lit_RBracket ']'>}
                                    )
                                  ]
                                )
                              action: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: (sh_lhs_expr.Name name:X)
                                      op: assign_op.Equal
                                      rhs: 
                                        {
                                          (braced_var_sub
                                            token: <Id.VSub_Name i>
                                            prefix_op: (Id.VSub_Pound)
                                          )
                                        }
                                      spids: [110]
                                    )
                                  ]
                                )
                                (command.WhileUntil
                                  keyword: <Id.KW_While while>
                                  cond: 
                                    (condition.Shell
                                      commands: [
                                        (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName '$X')} {<-lt>} 
                                          {<80>} {<Id.Lit_RBracket ']'>}
                                        )
                                      ]
                                    )
                                  body: 
                                    (command.DoGroup
                                      children: [
                                        (C {<echo>} {<-n>} {(SQ <'&nbsp;'>)})
                                        (command.ShAssignment
                                          pairs: [
                                            (assign_pair
                                              lhs: (sh_lhs_expr.Name name:X)
                                              op: assign_op.Equal
                                              rhs: 
                                                {
                                                  (word_part.ExprSub
                                                    left: <Id.Left_DollarBracket '$['>
                                                    child: 
                                                      (expr.Binary
                                                        op: <Id.Arith_Plus _>
                                                        left: ($ Id.VSub_DollarName '$X')
                                                        right: (Const Id.Expr_DecInt 1)
                                                      )
                                                  )
                                                }
                                              spids: [142]
                                            )
                                          ]
                                        )
                                      ]
                                    )
                                )
                              ]
                              spids: [94 107]
                            )
                          ]
                        )
                        (C {<echo>})
                      ]
                    )
                )
              ]
              negated: F
            )
          ]
        )
    )
    (command.ShFunction
      name: wrap_screenshot
      body: 
        (BraceGroup
          children: [
            (C {<echo>} {(SQ <'</center></td></tr><tr>'>)})
            (command.Simple
              words: [{<cat>}]
              redirects: [
                (redir
                  op: <Id.Redir_DLess '<<'>
                  loc: (redir_loc.Fd fd:0)
                  arg: 
                    (redir_param.HereDoc
                      here_begin: {<EOF>}
                      here_end_span_id: 214
                      stdin_parts: [
                        <'<td>\n'>
                        <'<a href=bootlog-'>
                        ($ Id.VSub_Number '$1')
                        <'.txt>boot log</a></li>\n'>
                        <'<a href=../bin/cross-compiler-'>
                        ($ Id.VSub_Number '$1')
                        <'.tar.bz2>cross&nbsp;compiler</a><br>\n'>
                        <'<a href=../bin/native-compiler-'>
                        ($ Id.VSub_Number '$1')
                        <'.tar.bz2>native&nbsp;compiler</a><br>\n'>
                        <'<a href=../bin/root-filesystem-'>
                        ($ Id.VSub_Number '$1')
                        <'.tar.bz2>root&nbsp;filesystem</a><br>\n'>
                        <'<a href=../bin/system-image-'>
                        ($ Id.VSub_Number '$1')
                        <'.tar.bz2>system&nbsp;image</a><br>\n'>
                        <'\n'>
                        <'<hr />\n'>
                        <'<a href=../bin/busybox-'>
                        ($ Id.VSub_Number '$1')
                        <'>busybox&nbsp;binary</a><br>\n'>
                        <'<a href=../bin/dropbearmulti-'>
                        ($ Id.VSub_Number '$1')
                        <'>dropbear&nbsp;binary</a><br>\n'>
                        <'<a href=../bin/strace-'>
                        ($ Id.VSub_Number '$1')
                        <'>strace&nbsp;binary</a><br>\n'>
                        <'</ul></td>\n'>
                      ]
                    )
                )
              ]
              do_fork: T
            )
            (C {<echo>} {(SQ <'<td>'>)})
            (C {<echo>} {(SQ <'<table bgcolor=#000000><tr><td><font color=#ffffff size=-2><pre>'>)})
            (C {<process_text_file>} {(DQ <bootlog-> ($ Id.VSub_Number '$1') <.txt>)})
            (C {<echo>} {(SQ <'</pre></font></td></tr></table></td>'>)})
            (C {<echo>})
            (C {<echo>} {(SQ <'</tr></table></td>'>)})
          ]
        )
    )
    (C {<'more/for-each-target.sh'>} 
      {
        (SQ 
          <
'(sleep 20 && echo -n cat "/proc" && sleep 1 && echo /cpuinfo && sleep 2 && echo exit) | more/run-emulator-from-build.sh $TARGET | tee www/screenshots/bootlog-$TARGET.txt'
          >
        )
      }
    )
    (C {<cd>} {<'www/screenshots'>})
    (C {<sed>} {<-i>} 
      {
        (command_sub
          left_token: <Id.Left_DollarParen '$('>
          child: (C {<echo>} {<-e>} {(SQ <'s/\\033\\[6n//g;s/\\015$//'>)})
        )
      } {<bootlog-> <Id.Lit_Star '*'> <.txt>}
    )
    (command.ForEach
      iter_name: i
      iter_words: [
        {
          (command_sub
            left_token: <Id.Left_DollarParen '$('>
            child: 
              (command.Pipeline
                children: [
                  (C {<ls>} {<bootlog-> <Id.Lit_Star '*'> <.txt>})
                  (C {<sed>} {(SQ <'s/bootlog-\\(.*\\)\\.txt/\\1/'>)})
                ]
                negated: F
              )
          )
        }
      ]
      do_arg_iter: F
      body: 
        (command.DoGroup
          children: [
            (command.Simple
              words: [{<wrap_screenshot>} {(DQ ($ Id.VSub_DollarName '$i'))}]
              redirects: [
                (redir
                  op: <Id.Redir_Great '>'>
                  loc: (redir_loc.Fd fd:1)
                  arg: {(DQ <screenshot-> ($ Id.VSub_DollarName '$i') <.html>)}
                )
              ]
              do_fork: T
            )
          ]
        )
    )
  ]
)