(command.CommandList children: [ (command.Case to_match: {(DQ ($ VSub_Number '$0'))} arms: [ (case_arm pat_list: [{(Lit_Other '*') (/CmdlineGL.lib)}] action: [ (C {(echo)} {(DQ ('Usage: source /path/to/CmdlineGL.lib'))}) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] spids: [21 23 38 16777215] ) ] spids: [13 19 40] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:CmdlineGL_SharePath spids:[46]) op: Equal rhs: {(DQ ('@share_path@'))} spids: [46] ) ] spids: [46] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-d)} {(DQ ('@share_path@'))} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:CmdlineGL_SharePath spids:[76]) op: Equal rhs: { (DQ (word_part.BracedVarSub token: <VSub_Name BASH_SOURCE> suffix_op: (suffix_op.StringUnary op_id: VOp1_Percent arg_word: {(Lit_Slash /) ('*')} ) spids: [78 83] ) ) } spids: [76] ) ] spids: [76] ) ] spids: [16777215 69] ) ] spids: [16777215 86] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-d)} {(DQ ($ VSub_DollarName '$CmdlineGL_SharePath') (/lib-bash))} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (C {(echo)} { (DQ ("Can't determine CmdlineGL share path (checked for '") ($ VSub_DollarName '$CmdlineGL_SharePath') ("/lib-bash')") ) } ) (command.ControlFlow token:<ControlFlow_Return return> arg_word:{(1)}) ] spids: [16777215 104] ) ] spids: [16777215 120] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:CmdlineGL_TexPath spids:[126]) op: Equal rhs: {(DQ ($ VSub_DollarName '$CmdlineGL_SharePath') (/textures))} spids: [126] ) ] spids: [126] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:CmdlineGL_FontPath spids:[132]) op: Equal rhs: {(DQ ($ VSub_DollarName '$CmdlineGL_SharePath') (/fonts))} spids: [132] ) ] spids: [132] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(-n)} {(DQ ($ VSub_DollarName '$BASH_VERSION'))} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:CmdlineGL_LibPath spids:[157]) op: Equal rhs: {(DQ ($ VSub_DollarName '$CmdlineGL_SharePath') (/lib-bash))} spids: [157] ) ] spids: [157] ) (C {(source)} {(DQ ($ VSub_DollarName '$CmdlineGL_SharePath') (/lib-bash/CmdlineGL.lib))}) ] spids: [16777215 154] ) ] else_action: [ (C {(echo)} {(DQ ('You must source this libary from bash.'))}) (C {(echo)} {(DQ ('No other shells are currently supported.'))}) (command.Sentence child: (command.ControlFlow token:<ControlFlow_Return return> arg_word:{(1)}) terminator: <Op_Semi ';'> ) ] spids: [171 193] ) ] )