(CommandList children: [ (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(DQ ($ VSub_Pound '$#'))} {(-ne)} {(1)} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [ (C {(echo)} {(DQ ('Usage: bootgen.sh *build dir*'))}) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] spids: [16777215 19] ) ] spids: [16777215 33] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:BUILD) op:Equal rhs:{($ VSub_Number '$1')} spids:[36])] spids: [36] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:RELOCATOR) op: Equal rhs: {(bootmgr/relocator)} spids: [43] ) ] spids: [43] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:BOOTMGR) op:Equal rhs:{(${ VSub_Name BUILD)} spids:[50])] spids: [50] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-f)} {($ VSub_Name '$RELOCATOR') (/relocator.bin)} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (C {(echo)} {(DQ ('Error : Relocator Not found!'))}) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] spids: [16777215 73] ) ] else_action: [(C {(echo)} {(DQ ('Relocator found...'))})] spids: [88 97] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-f)} {($ VSub_Name '$BOOTMGR') (/bootmgr.bin)} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (C {(echo)} {(DQ ('Error : Boot Manager Not found!'))}) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] spids: [16777215 117] ) ] else_action: [(C {(echo)} {(DQ ('Boot Manager found...'))})] spids: [132 141] ) (C {(echo)} {(DQ ('Generating bootloader...'))}) (SimpleCommand words: [ {(dd)} {(Lit_VarLike 'if=') (/dev/zero)} {(Lit_VarLike 'of=') (__tmp.bin)} {(Lit_VarLike 'ibs=') (1)} {(Lit_VarLike 'count=') (256)} {(Lit_VarLike 'conv=') (notrunc)} ] redirects: [ (Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(/dev/null)}) (Redir op:<Redir_GreatAnd '2>&'> fd:2 arg_word:{(1)}) ] ) (SimpleCommand words: [ {(dd)} {(Lit_VarLike 'if=') ($ VSub_Name '$RELOCATOR') (/relocator.bin)} {(Lit_VarLike 'of=') (__tmp.bin)} {(Lit_VarLike 'ibs=') (1)} {(Lit_VarLike 'conv=') (notrunc)} ] redirects: [ (Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(/dev/null)}) (Redir op:<Redir_GreatAnd '2>&'> fd:2 arg_word:{(1)}) ] ) (SimpleCommand words: [{(cat)} {(__tmp.bin)} {($ VSub_Name '$BOOTMGR') (/bootmgr.bin)}] redirects: [ (Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {($ VSub_Name '$BOOTMGR') (/bootloader.bin)} ) ] ) (C {(rm)} {(-f)} {(__tmp.bin)}) (C {(rm)} {(-f)} {($ VSub_Name '$BOOTMGR') (/bootmgr.bin)}) ] )