(CommandList children: [ (FuncDef name: usage body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:USAGE) op: Equal rhs: { (DQ ('Usage: ') ($ VSub_Number '$0') (' i386|amd64 [target dir] [be|dev|<stable version>]]') (Lit_Other '\\') ('n\n') (Lit_Other '\\') ('n\n') ('The first mandatory argument speciifies the CPU architecture using') (Lit_Other '\\') ('n\n') ('the Debian convention (e.g. i386 and amd64).') (Lit_Other '\\') ('n\n') (Lit_Other '\\') ('n\n') ('The second optional argument specifies the destination') (Lit_Other '\\') ('n\n') ("directory. This defaults to 'debian_<architecture>'.") (Lit_Other '\\') ('n\n') (Lit_Other '\\') ('n\n') ('The third optional argument specifies whether the chroot is') (Lit_Other '\\') ('n\n') ("populated with a Dart checkout. Use 'be' for bleeding edge, 'dev'") (Lit_Other '\\') ('n\n') ('for trunk/developer or the specific version number for a stable') (Lit_Other '\\') ('n\n') ('version (e.g. 1.2).') ) } spids: [35] ) ] spids: [35] ) (C {(echo)} {(-e)} {($ VSub_Name '$USAGE')}) (C {(exit)} {(1)}) ] spids: [32] ) spids: [28 31] ) (If arms: [ (if_arm cond: [ (AndOr children: [ (C {(Lit_Other '[')} {($ VSub_Pound '$#')} {(-lt)} {(1)} {(Lit_Other ']')}) (C {(Lit_Other '[')} {($ VSub_Pound '$#')} {(-gt)} {(3)} {(Lit_Other ']')}) ] op_id: Op_DPipe ) ] action: [(C {(usage)})] spids: [16777215 118] ) ] spids: [16777215 123] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:ARCH) op:Equal rhs:{($ VSub_Number '$1')} spids:[126])] spids: [126] ) (If arms: [ (if_arm cond: [(C {(Lit_Other '[')} {(-n)} {(DQ ($ VSub_Number '$2'))} {(Lit_Other ']')})] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:CHROOT) op: Equal rhs: {($ VSub_Number '$2')} spids: [145] ) ] spids: [145] ) ] spids: [16777215 142] ) ] else_action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:CHROOT) op: Equal rhs: {(debian_) ($ VSub_Name '$ARCH')} spids: [151] ) ] spids: [151] ) ] spids: [148 155] ) (If arms: [ (if_arm cond: [(C {(Lit_Other '[')} {(-n)} {(DQ ($ VSub_Number '$3'))} {(Lit_Other ']')})] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:CHANNEL) op: Equal rhs: {($ VSub_Number '$3')} spids: [173] ) ] spids: [173] ) ] spids: [16777215 170] ) ] spids: [16777215 176] ) (If arms: [ (if_arm cond: [ (AndOr children: [ (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$ARCH'))} {(KW_Bang '!') (Lit_Other '=')} {(DQ (i386))} {(Lit_Other ']')} ) (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$ARCH'))} {(KW_Bang '!') (Lit_Other '=')} {(DQ (amd64))} {(Lit_Other ']')} ) ] op_id: Op_DAmp ) ] action: [(C {(usage)})] spids: [16777215 213] ) ] spids: [16777215 218] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:SVN_REPRO) op: Equal rhs: {(DQ ('http://dart.googlecode.com/svn/'))} spids: [221] ) ] spids: [221] ) (If arms: [ (if_arm cond: [(C {(Lit_Other '[')} {(-n)} {(DQ ($ VSub_Name '$CHANNEL'))} {(Lit_Other ']')})] action: [ (If arms: [ (if_arm cond: [ (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$CHANNEL'))} {(Lit_Other '=') (Lit_Other '=')} {(DQ (be))} {(Lit_Other ']')} ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:SVN_PATH) op: Equal rhs: {(DQ (branches/bleeding_edge/deps/all.deps))} spids: [262] ) ] spids: [262] ) ] spids: [16777215 259] ) (if_arm cond: [ (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$CHANNEL'))} {(Lit_Other '=') (Lit_Other '=')} {(DQ (dev))} {(Lit_Other ']')} ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:SVN_PATH) op: Equal rhs: {(DQ (trunk/deps/all.deps))} spids: [289] ) ] spids: [289] ) ] spids: [268 286] ) ] else_action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:SVN_PATH) op: Equal rhs: {(DQ (branches/) ($ VSub_Name '$CHANNEL') (/deps/all.deps))} spids: [298] ) ] spids: [298] ) ] spids: [295 306] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:SRC_URI) op: Equal rhs: {($ VSub_Name '$SVN_REPRO') ($ VSub_Name '$SVN_PATH')} spids: [309] ) ] spids: [309] ) ] spids: [16777215 238] ) ] spids: [16777215 313] ) (C {(debootstrap)} {(--arch) (Lit_Other '=') ($ VSub_Name '$ARCH')} {(--components) (Lit_Other '=') (main) (Lit_Comma ',') (restricted) (Lit_Comma ',') (universe) (Lit_Comma ',') (multiverse) } {(wheezy)} {($ VSub_Name '$CHROOT')} {(http) (Lit_Other ':') (//http.us.debian.org/debian/)} ) (C {(chroot)} {($ VSub_Name '$CHROOT')} {(apt-get)} {(update)}) (C {(chroot)} {($ VSub_Name '$CHROOT')} {(apt-get)} {(-y)} {(install)} {(debhelper)} {(python)} {(git)} {(gcc)} {(sudo)} {(make)} ) (C {(chroot)} {($ VSub_Name '$CHROOT')} {(groupadd)} {(--gid)} {(1001)} {(chrome-bot)}) (C {(chroot)} {($ VSub_Name '$CHROOT')} {(useradd)} {(--gid)} {(1001)} {(--uid)} {(1001)} {(--create-home)} {(chrome-bot)} ) (C {(mkdir)} {($ VSub_Name '$CHROOT') (/b)}) (C {(chown)} {(1001) (Lit_Other ':') (1001)} {($ VSub_Name '$CHROOT') (/b)}) (SimpleCommand words: [{(cat)}] redirects: [ (HereDoc op_id: Redir_DLess fd: 16777215 body: {(DQ ('#!/bin/sh\n') ('su -c /b/init_chroot.sh chrome-bot\n'))} do_expansion: True here_end: EOF was_filled: True spids: [431] ) (Redir op_id: Redir_Great fd: 16777215 arg_word: {($ VSub_Name '$CHROOT') (/b/init_chroot_trampoline.sh)} spids: [435] ) ] ) (SimpleCommand words: [{(cat)}] redirects: [ (HereDoc op_id: Redir_DLess fd: 16777215 body: {('#!/bin/sh\n') ('cd /b\n')} do_expansion: False here_end: EOF was_filled: True spids: [449] ) (Redir op_id: Redir_Great fd: 16777215 arg_word: {($ VSub_Name '$CHROOT') (/b/init_chroot.sh)} spids: [455] ) ] ) (If arms: [ (if_arm cond: [(C {(Lit_Other '[')} {(-n)} {(DQ ($ VSub_Name '$SRC_URI'))} {(Lit_Other ']')})] action: [ (SimpleCommand words: [{(cat)}] redirects: [ (HereDoc op_id: Redir_DLess fd: 16777215 body: { ( 'git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git\n' ) ('export PATH=$PATH:/b/depot_tools\n') } do_expansion: False here_end: EOF was_filled: True spids: [486] ) (Redir op_id: Redir_DGreat fd: 16777215 arg_word: {($ VSub_Name '$CHROOT') (/b/init_chroot.sh)} spids: [492] ) ] ) (SimpleCommand words: [{(cat)}] redirects: [ (HereDoc op_id: Redir_DLess fd: 16777215 body: { (DQ ('gclient config ') ($ VSub_Name '$SRC_URI') ('\n') ('gclient sync\n') ('gclient runhooks\n') ) } do_expansion: True here_end: EOF was_filled: True spids: [500] ) (Redir op_id: Redir_DGreat fd: 16777215 arg_word: {($ VSub_Name '$CHROOT') (/b/init_chroot.sh)} spids: [504] ) ] ) ] spids: [16777215 482] ) ] spids: [16777215 515] ) (C {(chmod)} {(755)} {($ VSub_Name '$CHROOT') (/b/init_chroot_trampoline.sh)}) (C {(chown)} {(1001) (Lit_Other ':') (1001)} {($ VSub_Name '$CHROOT') (/b/init_chroot.sh)}) (C {(chmod)} {(755)} {($ VSub_Name '$CHROOT') (/b/init_chroot.sh)}) (C {(chroot)} {($ VSub_Name '$CHROOT')} {(/bin/sh)} {(/b/init_chroot_trampoline.sh)}) ] )