(CommandList children: [ (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'))}) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] spids: [21 23 38 16777215] ) ] spids: [13 19 40] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:CmdlineGL_SharePath) op: Equal rhs: {(DQ ('@share_path@'))} spids: [46] ) ] spids: [46] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-d)} {(DQ ('@share_path@'))} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:CmdlineGL_SharePath) op: Equal rhs: { (DQ (BracedVarSub token: <VSub_Name BASH_SOURCE> suffix_op: (StringUnary op_id:VOp1_Percent arg_word:{(Lit_Slash /) ('*')}) spids: [78 83] ) ) } spids: [76] ) ] spids: [76] ) ] spids: [16777215 69] ) ] spids: [16777215 86] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-d)} {(DQ ($ VSub_Name '$CmdlineGL_SharePath') (/lib-bash))} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (C {(echo)} { (DQ ("Can't determine CmdlineGL share path (checked for '") ($ VSub_Name '$CmdlineGL_SharePath') ("/lib-bash')") ) } ) (ControlFlow token:<ControlFlow_Return return> arg_word:{(1)}) ] spids: [16777215 104] ) ] spids: [16777215 120] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:CmdlineGL_TexPath) op: Equal rhs: {(DQ ($ VSub_Name '$CmdlineGL_SharePath') (/textures))} spids: [126] ) ] spids: [126] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:CmdlineGL_FontPath) op: Equal rhs: {(DQ ($ VSub_Name '$CmdlineGL_SharePath') (/fonts))} spids: [132] ) ] spids: [132] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(-n)} {(DQ ($ VSub_Name '$BASH_VERSION'))} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:CmdlineGL_LibPath) op: Equal rhs: {(DQ ($ VSub_Name '$CmdlineGL_SharePath') (/lib-bash))} spids: [157] ) ] spids: [157] ) (C {(source)} {(DQ ($ VSub_Name '$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.'))}) (Sentence child: (ControlFlow token:<ControlFlow_Return return> arg_word:{(1)}) terminator: <Op_Semi ';'> ) ] spids: [171 193] ) ] )