(CommandList children: [ (If arms: [ (if_arm cond: [ (Sentence child: (AndOr ops: [Op_DPipe] children: [ (C {(test)} {($ VSub_Pound '$#')} {(KW_Bang '!') (Lit_Other '=')} {(1)}) (C {(test)} { (DQ (BracedVarSub token: <VSub_Number 1> suffix_op: (PatSub pat: {(EscapedLiteralPart token:<Lit_EscapedChar '\\/'>)} replace: {(EmptyPart)} do_all: F do_prefix: F do_suffix: F ) spids: [46 51] ) ) } {(KW_Bang '!') (Lit_Other '=')} {(DQ ($ VSub_Number '$1'))} ) ] ) terminator: <Op_Semi ';'> ) ] action: [ (SimpleCommand words: [ {(echo)} { (DQ ('Usage: ') ($ VSub_Number '$0') (': {python2.7-static|stackless2.7-static|stacklessco2.7-static}') ) } ] redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[73])] ) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] spids: [16777215 62] ) ] spids: [16777215 81] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(test)} { (DQ (CommandSubPart command_list: (CommandList children:[(C {(uname)})]) left_token: <Left_Backtick '`'> spids: [88 90] ) ) } {(Lit_Other '=')} {(Darwin)} ) terminator: <Op_Semi ';'> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:URL) op: Equal rhs: { (DQ ( 'https://raw.githubusercontent.com/pts/staticpython/master/release.darwin/' ) ($ VSub_Number '$1') ) } spids: [101] ) ] spids: [101] ) ] spids: [16777215 98] ) ] else_action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:URL) op: Equal rhs: { (DQ ('https://raw.githubusercontent.com/pts/staticpython/master/release/') ($ VSub_Number '$1') ) } spids: [110] ) ] spids: [110] ) ] spids: [107 116] ) (C {(echo)} {(DQ ('info: downloading: ') ($ VSub_Name '$URL'))}) (If arms: [ (if_arm cond: [ (Sentence child: (SimpleCommand words: [{(type)} {(-p)} {(curl)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(/dev/null)} spids: [133] ) (Redir op_id:Redir_GreatAnd fd:2 arg_word:{(1)} spids:[136]) ] ) terminator: <Op_Semi ';'> ) ] action: [ (AndOr ops: [Op_DPipe] children: [ (C {(curl)} {(-o)} {(DQ ($ VSub_Number '$1') (.download))} {(DQ ($ VSub_Name '$URL'))}) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(2)}) ] ) ] spids: [16777215 140] ) ] else_action: [ (AndOr ops: [Op_DPipe] children: [ (C {(wget)} {(-O)} {(DQ ($ VSub_Number '$1') (.download))} {(DQ ($ VSub_Name '$URL'))}) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(2)}) ] ) ] spids: [162 184] ) (AndOr ops: [Op_DPipe] children: [ (C {(chmod)} {(Lit_Other '+') (x)} {(DQ ($ VSub_Number '$1') (.download))}) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(2)}) ] ) (AndOr ops: [Op_DPipe] children: [ (C {(mv)} {(DQ ($ VSub_Number '$1') (.download))} {(DQ ($ VSub_Number '$1'))}) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(2)}) ] ) (C {(echo)} {(DQ ('info: download OK, run with: ./') ($ VSub_Number '$1'))}) ] )