(command.CommandList children: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.AndOr ops: [Op_DPipe] children: [ (C {(test)} {($ VSub_Pound '$#')} {(KW_Bang '!') (Lit_Other '=')} {(1)}) (C {(test)} { (DQ (word_part.BracedVarSub token: <VSub_Number 1> suffix_op: (suffix_op.PatSub pat: {(word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\/'>)} replace: (word.EmptyWord) replace_mode: Undefined_Tok ) ) ) } {(KW_Bang '!') (Lit_Other '=')} {(DQ ($ VSub_Number '$1'))} ) ] ) terminator: <Op_Semi ';'> ) ] action: [ (command.SimpleCommand words: [ {(echo)} { (DQ ('Usage: ') ($ VSub_Number '$0') (': {python2.7-static|stackless2.7-static|stacklessco2.7-static}') ) } ] redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(test)} { (DQ (word_part.CommandSubPart command_list: (command.CommandList children:[(C {(uname)})]) left_token: <Left_Backtick '`'> ) ) } {(Lit_Other '=')} {(Darwin)} ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:URL) op: Equal rhs: { (DQ ( 'https://raw.githubusercontent.com/pts/staticpython/master/release.darwin/' ) ($ VSub_Number '$1') ) } ) ] ) ] ) ] else_action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:URL) op: Equal rhs: { (DQ ('https://raw.githubusercontent.com/pts/staticpython/master/release/') ($ VSub_Number '$1') ) } ) ] ) ] ) (C {(echo)} {(DQ ('info: downloading: ') ($ VSub_DollarName '$URL'))}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.SimpleCommand words: [{(type)} {(-p)} {(curl)}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(/dev/null)} ) (redir.Redir op:<Redir_GreatAnd '2>&'> fd:2 arg_word:{(1)}) ] ) terminator: <Op_Semi ';'> ) ] action: [ (command.AndOr ops: [Op_DPipe] children: [ (C {(curl)} {(-o)} {(DQ ($ VSub_Number '$1') (.download))} {(DQ ($ VSub_DollarName '$URL'))} ) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(2)}) ] ) ] ) ] else_action: [ (command.AndOr ops: [Op_DPipe] children: [ (C {(wget)} {(-O)} {(DQ ($ VSub_Number '$1') (.download))} {(DQ ($ VSub_DollarName '$URL'))}) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(2)}) ] ) ] ) (command.AndOr ops: [Op_DPipe] children: [ (C {(chmod)} {(Lit_Other '+') (x)} {(DQ ($ VSub_Number '$1') (.download))}) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(2)}) ] ) (command.AndOr ops: [Op_DPipe] children: [ (C {(mv)} {(DQ ($ VSub_Number '$1') (.download))} {(DQ ($ VSub_Number '$1'))}) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(2)}) ] ) (C {(echo)} {(DQ ('info: download OK, run with: ./') ($ VSub_Number '$1'))}) ] )