(command.CommandList children: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<-z>} {(DQ ($ Id.VSub_DollarName SRC))} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'SRC='> name:SRC) op: assign_op.Equal rhs: {($ Id.VSub_DollarName CODEMGR_WS) <'/usr/src'>} spids: [97] ) ] redirects: [] ) ] spids: [81 94] ) ] else_action: [] redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<-z>} {(DQ ($ Id.VSub_DollarName CODEMGR_WS))} {<-o>} {<Id.KW_Bang '!'>} {<-d>} {(DQ ($ Id.VSub_DollarName CODEMGR_WS))} {<-o>} {<Id.KW_Bang '!'>} {<-d>} {(DQ ($ Id.VSub_DollarName SRC))} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<echo>} {(DQ ($ Id.VSub_Number 0) <': must be run from within a workspace.'>)}) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] spids: [104 137] ) ] else_action: [] redirects: [] ) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<cd>} {($ Id.VSub_DollarName CODEMGR_WS)}) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_Number 1))} {<Id.Lit_Equals '='>} {(DQ <-b>)} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'b_flg='> name:b_flg) op: assign_op.Equal rhs: {<y>} spids: [189] ) ] redirects: [] ) ] spids: [169 186] ) ] else_action: [] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'args='> name:args) op: assign_op.Equal rhs: {(DQ <'-k NEVER_CHECK'>)} spids: [198] ) ] redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName b_flg))} {<Id.Lit_Equals '='>} {<y>} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'rootlist='> name:rootlist) op: assign_op.Equal rhs: (rhs_word.Empty) spids: [237] ) ] redirects: [] ) ] spids: [219 234] ) (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {($ Id.VSub_Pound '#')} {<-gt>} {<0>} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'rootlist='> name:rootlist) op: assign_op.Equal rhs: {($ Id.VSub_Star '*')} spids: [255] ) ] redirects: [] ) ] spids: [239 252] ) ] else_action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'rootlist='> name:rootlist) op: assign_op.Equal rhs: { (DQ ($ Id.VSub_DollarName CODEMGR_WS) <'/proto/root_sparc '> ($ Id.VSub_DollarName CODEMGR_WS) <'/proto/root_i386'> ) } spids: [261] ) ] redirects: [] ) ] redirects: [] ) (command.ForEach iter_names: [ROOT] iterable: (for_iter.Words words:[{($ Id.VSub_DollarName rootlist)}]) body: (command.DoGroup children: [ (command.Case to_match: {(DQ ($ Id.VSub_DollarName ROOT))} arms: [ (case_arm pat_list: [{<Id.Lit_Star '*'> <sparc>} {<Id.Lit_Star '*'> <sparc-nd>}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'arch='> name:arch) op: assign_op.Equal rhs: {<sparc>} spids: [300] ) ] redirects: [] ) ] spids: [292 297 304 -1] ) (case_arm pat_list: [{<Id.Lit_Star '*'> <i386>} {<Id.Lit_Star '*'> <i386-nd>}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'arch='> name:arch) op: assign_op.Equal rhs: {<i386>} spids: [315] ) ] redirects: [] ) ] spids: [307 312 319 -1] ) (case_arm pat_list: [{<Id.Lit_Star '*'>}] action: [ (command.Simple words: [{<echo>} {(DQ ($ Id.VSub_DollarName ROOT) <' has unknown architecture.'>)}] redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})] more_env: [] do_fork: T ) (command.ControlFlow token: <Id.ControlFlow_Exit exit> arg_word: {<1>} ) ] spids: [322 323 342 -1] ) ] redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<-d>} {($ Id.VSub_DollarName ROOT)} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.AndOr ops: [Id.Op_DAmp] children: [ (C {<Id.Lit_LBracket '['>} {<-f>} {($ Id.VSub_DollarName SRC) <'/pkgdefs/etc/exception_list_'> ($ Id.VSub_DollarName arch) } {<Id.Lit_RBracket ']'>} ) (C {<validate_paths>} {(SQ <'-s/\\s*'>) ($ Id.VSub_DollarName arch) (SQ <'$//'>)} {<-e>} {<Id.Lit_Other '^'> <'usr/include/ike/'>} {<-b>} {($ Id.VSub_DollarName ROOT)} {($ Id.VSub_DollarName args)} {($ Id.VSub_DollarName SRC) <'/pkgdefs/etc/exception_list_'> ($ Id.VSub_DollarName arch)} ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'e='> name:e) op: assign_op.Equal rhs: {(DQ ($ Id.VSub_DollarName CODEMGR_WS) <'/exception_lists/packaging'>)} spids: [438] ) ] redirects: [] ) (command.ForEach iter_names: [f] iterable: (for_iter.Words words:[{($ Id.VSub_DollarName e)}]) body: (command.DoGroup children: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<-f>} {($ Id.VSub_DollarName f)} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.Pipeline children: [ (command.Simple words: [ {<nawk>} {(SQ <'NF == 1 || /[ \t]\\+'>) ($ Id.VSub_DollarName arch) (SQ <'$/ { print; }'>) } ] redirects: [ (redir op: <Id.Redir_Less '<'> loc: (redir_loc.Fd fd:0) arg: {($ Id.VSub_DollarName f)} ) ] more_env: [] do_fork: T ) (C {<validate_paths>} {<-b>} {($ Id.VSub_DollarName ROOT)} {<-n>} {($ Id.VSub_DollarName f)} ) ] negated: F stderr_indices: [] ) ] spids: [457 468] ) ] else_action: [] redirects: [] ) ] ) redirects: [] ) ] spids: [348 359] ) ] else_action: [] redirects: [] ) ] ) redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<-r>} {($ Id.VSub_DollarName SRC) <'/tools/findunref/exception_list'>} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<validate_paths>} {<-k>} {<ISUSED>} {<-r>} {<-e>} {(SQ <'^\\*'>)} {($ Id.VSub_DollarName SRC) <'/tools/findunref/exception_list'>} ) ] spids: [545 557] ) ] else_action: [] redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<-f>} {($ Id.VSub_DollarName SRC) <'/tools/opensolaris/license-list'>} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.Pipeline children: [ (command.Simple words: [{<sed>} {<-e>} {(SQ <'s/$/.descrip/'>)}] redirects: [ (redir op: <Id.Redir_Less '<'> loc: (redir_loc.Fd fd:0) arg: {($ Id.VSub_DollarName SRC) <'/tools/opensolaris/license-list'>} ) ] more_env: [] do_fork: T ) (C {<validate_paths>} {<-n>} {<'SRC/tools/opensolaris/license-list'>}) ] negated: F stderr_indices: [] ) ] spids: [580 592] ) ] else_action: [] redirects: [] ) (C {<validate_flg>} {<-f>}) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<0>}) ] )