(command.CommandList children: [ (C {(set)} {(-eu)}) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:OUTPUT) op: Equal rhs: {(DQ (${ VSub_Name PWD) (/) ($ VSub_Number '$1'))} ) ] ) (C {(shift)}) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:TMP_DIR) op: Equal rhs: { (word_part.BracedVarSub token: <VSub_Name TMPDIR> suffix_op: (suffix_op.StringUnary op_id: VTest_ColonHyphen arg_word: {(Lit_Slash /) (tmp)} ) ) } ) ] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:PACKAGE_DIR) op: Equal rhs: { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(mktemp)} {(-d)} { (word_part.BracedVarSub token: <VSub_Name TMP_DIR> suffix_op: (suffix_op.StringUnary op_id: VOp1_DPercent arg_word: {(Lit_Slash /)} ) ) (/bazel.XXXXXXXX) } ) ] ) left_token: <Left_DollarParen '$('> ) ) } ) ] ) (C {(trap)} { (DQ ('rm -fr ') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (${ VSub_Name PACKAGE_DIR) (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ) } {(EXIT)} ) (C {(mkdir)} {(-p)} {(DQ (${ VSub_Name PACKAGE_DIR))}) (command.ForEach iter_name: i iter_words: [{($ VSub_Star '$*')}] do_arg_iter: F body: (command.DoGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:ARCHIVE) op: Equal rhs: {(DQ (${ VSub_Name PWD) (/) ($ VSub_DollarName '$i'))} ) ] ) (command.Case to_match: {(DQ ($ VSub_DollarName '$i'))} arms: [ (case_arm pat_list: [{(Lit_Other '*') (.zip)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:UNPACK) op: Equal rhs: {(DQ ('unzip -q'))} ) ] ) ] ) (case_arm pat_list: [{(Lit_Other '*') (.tar)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:UNPACK) op: Equal rhs: {(DQ ('tar xf'))} ) ] ) ] ) ] ) (command.Subshell command_list: (command.CommandList children: [ (command.AndOr ops: [Op_DAmp] children: [ (C {(cd)} {(DQ (${ VSub_Name PACKAGE_DIR))}) (C {(${ VSub_Name UNPACK)} {(DQ (${ VSub_Name ARCHIVE))}) ] ) ] ) ) ] ) ) (command.Subshell command_list: (command.CommandList children: [ (command.AndOr ops: [Op_DAmp] children: [ (C {(cd)} {(DQ (${ VSub_Name PACKAGE_DIR))}) (command.Pipeline children: [ (C {(find)} {(.)} {(-type)} {(f)}) (C {(sort)}) (C {(zip)} {(-qDX) (Lit_Other '@')} {(DQ (${ VSub_Name OUTPUT))}) ] negated: F ) ] ) ] ) ) ] )