(CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:scriptversion) op: Equal rhs: {(2016-01-01.00)} spids: [10] ) ] spids: [10] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:prog) op: Equal rhs: { (CommandSubPart command_list: (CommandList children:[(C {(basename)} {(DQ ($ VSub_Number '$0'))})]) left_token: <Left_Backtick '`'> spids: [101 107] ) } spids: [100] ) ] spids: [100] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:srcdir) op: Equal rhs: { (CommandSubPart command_list: (CommandList children:[(C {(pwd)})]) left_token: <Left_Backtick '`'> spids: [110 112] ) } spids: [109] ) ] spids: [109] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:scripturl) op: Equal rhs: {(DQ ('http://git.savannah.gnu.org/cgit/gnulib.git/plain/build-aux/gendocs.sh'))} spids: [115] ) ] spids: [115] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:templateurl) op: Equal rhs: {(DQ ('http://git.savannah.gnu.org/cgit/gnulib.git/plain/doc/gendocs_template'))} spids: [120] ) ] spids: [120] ) (C {(Lit_Other ':')} { (BracedVarSub token: <VSub_Name SETLANG> suffix_op: (StringUnary op_id: VTest_Equals arg_word: {(DQ ('env LANG= LC_MESSAGES= LC_ALL= LANGUAGE='))} ) spids: [128 134] ) } ) (C {(Lit_Other ':')} { (BracedVarSub token: <VSub_Name MAKEINFO> suffix_op: (StringUnary op_id:VTest_Equals arg_word:{(DQ (makeinfo))}) spids: [138 144] ) } ) (C {(Lit_Other ':')} { (BracedVarSub token: <VSub_Name TEXI2DVI> suffix_op: (StringUnary op_id:VTest_Equals arg_word:{(DQ (texi2dvi))}) spids: [148 154] ) } ) (C {(Lit_Other ':')} { (BracedVarSub token: <VSub_Name DOCBOOK2HTML> suffix_op: (StringUnary op_id:VTest_Equals arg_word:{(DQ (docbook2html))}) spids: [158 164] ) } ) (C {(Lit_Other ':')} { (BracedVarSub token: <VSub_Name DOCBOOK2PDF> suffix_op: (StringUnary op_id:VTest_Equals arg_word:{(DQ (docbook2pdf))}) spids: [168 174] ) } ) (C {(Lit_Other ':')} { (BracedVarSub token: <VSub_Name DOCBOOK2TXT> suffix_op: (StringUnary op_id:VTest_Equals arg_word:{(DQ (docbook2txt))}) spids: [178 184] ) } ) (C {(Lit_Other ':')} { (BracedVarSub token: <VSub_Name GENDOCS_TEMPLATE_DIR> suffix_op: (StringUnary op_id:VTest_Equals arg_word:{(DQ (.))}) spids: [188 194] ) } ) (C {(Lit_Other ':')} { (BracedVarSub token: <VSub_Name PERL> suffix_op: (StringUnary op_id:VTest_Equals arg_word:{(SQ <perl>)}) spids: [198 204] ) } ) (C {(Lit_Other ':')} { (BracedVarSub token: <VSub_Name TEXI2HTML> suffix_op: (StringUnary op_id:VTest_Equals arg_word:{(DQ (texi2html))}) spids: [208 214] ) } ) (C {(unset)} {(CDPATH)}) (C {(unset)} {(use_texi2html)}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:version) op: Equal rhs: { (DQ ('gendocs.sh ') ($ VSub_Name '$scriptversion') ('\n') ('\n') ('Copyright 2016 Free Software Foundation, Inc.\n') ('There is NO warranty. You may redistribute this software\n') ('under the terms of the GNU General Public License.\n') ('For more information about these matters, see the files named COPYING.') ) } spids: [225] ) ] spids: [225] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:usage) op: Equal rhs: { (DQ ('Usage: ') ($ VSub_Name '$prog') (' [OPTION]... PACKAGE MANUAL-TITLE\n') ('\n') ('Generate output in various formats from PACKAGE.texinfo (or .texi or\n') ('.txi) source. See the GNU Maintainers document for a more extensive\n') ('discussion:\n') (' http://www.gnu.org/prep/maintain_toc.html\n') ('\n') ('Options:\n') (' --email ADR use ADR as contact in generated web pages; always give this.\n') ('\n') (' -s SRCFILE read Texinfo from SRCFILE, instead of PACKAGE.{texinfo|texi|txi}\n') (' -o OUTDIR write files into OUTDIR, instead of manual/.\n') (' -I DIR append DIR to the Texinfo search path.\n') (' --common ARG pass ARG in all invocations.\n') (' --html ARG pass ARG to makeinfo or texi2html for HTML targets,\n') (' instead of --css-ref=/software/gnulib/manual.css.\n') (' --info ARG pass ARG to makeinfo for Info, instead of --no-split.\n') (' --no-ascii skip generating the plain text output.\n') (' --no-html skip generating the html output.\n') (' --no-info skip generating the info output.\n') (' --no-tex skip generating the dvi and pdf output.\n') (' --source ARG include ARG in tar archive of sources.\n') (' --split HOW make split HTML by node, section, chapter; default node.\n') (' --tex ARG pass ARG to texi2dvi for DVI and PDF, instead of -t @finalout.\n') ('\n') (' --texi2html use texi2html to make HTML target, with all split versions.\n') (' --docbook convert through DocBook too (xml, txt, html, pdf).\n') ('\n') (' --help display this help and exit successfully.\n') (' --version display version information and exit successfully.\n') ('\n') ('Simple example: ') ($ VSub_Name '$prog') (' --email bug-gnu-emacs@gnu.org emacs ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ('GNU Emacs Manual') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ('\n') ('\n') ('Typical sequence:\n') (' cd PACKAGESOURCE/doc\n') (' wget ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ($ VSub_Name '$scripturl') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ('\n') (' wget ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ($ VSub_Name '$templateurl') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ('\n') (' ') ($ VSub_Name '$prog') (' --email BUGLIST MANUAL ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ('GNU MANUAL - One-line description') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ('\n') ('\n') ('Output will be in a new subdirectory ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (manual) (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (' (by default;\n') ('use -o OUTDIR to override). Move all the new files into your web CVS\n') ('tree, as explained in the Web Pages node of maintain.texi.\n') ('\n') ('Please use the --email ADDRESS option so your own bug-reporting\n') ('address will be used in the generated HTML pages.\n') ('\n') ('MANUAL-TITLE is included as part of the HTML <title> of the overall\n') ('manual/index.html file. It should include the name of the package being\n') ('documented. manual/index.html is created by substitution from the file\n') ($ VSub_Name '$GENDOCS_TEMPLATE_DIR') ('/gendocs_template. (Feel free to modify the\n') ('generic template for your own purposes.)\n') ('\n') ("If you have several manuals, you'll need to run this script several\n") ('times with different MANUAL values, specifying a different output\n') ('directory with -o each time. Then write (by hand) an overall index.html\n') ('with links to them all.\n') ('\n') ("If a manual's Texinfo sources are spread across several directories,\n") ('first copy or symlink all Texinfo sources into a single directory.\n') ("(Part of the script's work is to make a tar.gz of the sources.)\n") ('\n') ('As implied above, by default monolithic Info files are generated.\n') ('If you want split Info, or other Info options, use --info to override.\n') ('\n') ('You can set the environment variables MAKEINFO, TEXI2DVI, TEXI2HTML,\n') ('and PERL to control the programs that get executed, and\n') ('GENDOCS_TEMPLATE_DIR to control where the gendocs_template file is\n') ('looked for. With --docbook, the environment variables DOCBOOK2HTML,\n') ('DOCBOOK2PDF, and DOCBOOK2TXT are also consulted.\n') ('\n') ('By default, makeinfo and texi2dvi are run in the default (English)\n') ("locale, since that's the language of most Texinfo manuals. If you\n") ('happen to have a non-English manual and non-English web site, see the\n') ('SETLANG setting in the source.\n') ('\n') ('Email bug reports or enhancement requests to bug-gnulib@gnu.org.\n') ) } spids: [238] ) ] spids: [238] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:MANUAL_TITLE) op:Equal rhs:{(EmptyPart)} spids:[346])] spids: [346] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:PACKAGE) op:Equal rhs:{(EmptyPart)} spids:[348])] spids: [348] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:EMAIL) op: Equal rhs: {(webmasters) (Lit_Other '@') (gnu.org)} spids: [350] ) ] spids: [350] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:commonarg) op:Equal rhs:{(EmptyPart)} spids:[358])] spids: [358] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:dirargs) op:Equal rhs:{(EmptyPart)} spids:[363])] spids: [363] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:dirs) op:Equal rhs:{(EmptyPart)} spids:[368])] spids: [368] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:htmlarg) op: Equal rhs: {(--css-ref) (Lit_Other '=') (/software/gnulib/manual.css)} spids: [373] ) ] spids: [373] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:infoarg) op:Equal rhs:{(--no-split)} spids:[378])] spids: [378] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:generate_ascii) op:Equal rhs:{(true)} spids:[381])] spids: [381] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:generate_html) op:Equal rhs:{(true)} spids:[384])] spids: [384] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:generate_info) op:Equal rhs:{(true)} spids:[387])] spids: [387] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:generate_tex) op:Equal rhs:{(true)} spids:[390])] spids: [390] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:outdir) op:Equal rhs:{(manual)} spids:[393])] spids: [393] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:source_extra) op:Equal rhs:{(EmptyPart)} spids:[396])] spids: [396] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:split) op:Equal rhs:{(node)} spids:[398])] spids: [398] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:srcfile) op:Equal rhs:{(EmptyPart)} spids:[401])] spids: [401] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:texarg) op: Equal rhs: {(DQ ('-t @finalout'))} spids: [403] ) ] spids: [403] ) (WhileUntil keyword: <KW_While while> cond: [ (Sentence child: (C {(test)} {($ VSub_Pound '$#')} {(-gt)} {(0)}) terminator: <Op_Semi ';'> ) ] body: (DoGroup children: [ (Case to_match: {($ VSub_Number '$1')} arms: [ (case_arm pat_list: [{(-s)}] action: [ (Sentence child:(C {(shift)}) terminator:<Op_Semi ';'>) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:srcfile) op: Equal rhs: {($ VSub_Number '$1')} spids: [436] ) ] spids: [436] ) ] spids: [430 431 438 16777215] ) (case_arm pat_list: [{(-o)}] action: [ (Sentence child:(C {(shift)}) terminator:<Op_Semi ';'>) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:outdir) op: Equal rhs: {($ VSub_Number '$1')} spids: [447] ) ] spids: [447] ) ] spids: [441 442 449 16777215] ) (case_arm pat_list: [{(-I)}] action: [ (Sentence child:(C {(shift)}) terminator:<Op_Semi ';'>) (Sentence child: (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:dirargs) op: Equal rhs: {(DQ ($ VSub_Name '$dirargs') (" -I '") ($ VSub_Number '$1') ("'"))} spids: [458] ) ] spids: [458] ) terminator: <Op_Semi ';'> ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:dirs) op: Equal rhs: {(DQ ($ VSub_Name '$dirs') (' ') ($ VSub_Number '$1'))} spids: [467] ) ] spids: [467] ) ] spids: [452 453 473 16777215] ) (case_arm pat_list: [{(--common)}] action: [ (Sentence child:(C {(shift)}) terminator:<Op_Semi ';'>) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:commonarg) op: Equal rhs: {($ VSub_Number '$1')} spids: [482] ) ] spids: [482] ) ] spids: [476 477 484 16777215] ) (case_arm pat_list: [{(--docbook)}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:docbook) op: Equal rhs: {(yes)} spids: [490] ) ] spids: [490] ) ] spids: [487 488 492 16777215] ) (case_arm pat_list: [{(--email)}] action: [ (Sentence child:(C {(shift)}) terminator:<Op_Semi ';'>) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:EMAIL) op: Equal rhs: {($ VSub_Number '$1')} spids: [501] ) ] spids: [501] ) ] spids: [495 496 503 16777215] ) (case_arm pat_list: [{(--html)}] action: [ (Sentence child:(C {(shift)}) terminator:<Op_Semi ';'>) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:htmlarg) op: Equal rhs: {($ VSub_Number '$1')} spids: [512] ) ] spids: [512] ) ] spids: [506 507 514 16777215] ) (case_arm pat_list: [{(--info)}] action: [ (Sentence child:(C {(shift)}) terminator:<Op_Semi ';'>) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:infoarg) op: Equal rhs: {($ VSub_Number '$1')} spids: [523] ) ] spids: [523] ) ] spids: [517 518 525 16777215] ) (case_arm pat_list: [{(--no-ascii)}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:generate_ascii) op: Equal rhs: {(false)} spids: [531] ) ] spids: [531] ) ] spids: [528 529 533 16777215] ) (case_arm pat_list: [{(--no-html)}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:generate_ascii) op: Equal rhs: {(false)} spids: [539] ) ] spids: [539] ) ] spids: [536 537 541 16777215] ) (case_arm pat_list: [{(--no-info)}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:generate_info) op: Equal rhs: {(false)} spids: [547] ) ] spids: [547] ) ] spids: [544 545 549 16777215] ) (case_arm pat_list: [{(--no-tex)}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:generate_tex) op: Equal rhs: {(false)} spids: [555] ) ] spids: [555] ) ] spids: [552 553 557 16777215] ) (case_arm pat_list: [{(--source)}] action: [ (Sentence child:(C {(shift)}) terminator:<Op_Semi ';'>) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source_extra) op: Equal rhs: {($ VSub_Number '$1')} spids: [566] ) ] spids: [566] ) ] spids: [560 561 568 16777215] ) (case_arm pat_list: [{(--split)}] action: [ (Sentence child:(C {(shift)}) terminator:<Op_Semi ';'>) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:split) op: Equal rhs: {($ VSub_Number '$1')} spids: [577] ) ] spids: [577] ) ] spids: [571 572 579 16777215] ) (case_arm pat_list: [{(--tex)}] action: [ (Sentence child:(C {(shift)}) terminator:<Op_Semi ';'>) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:texarg) op: Equal rhs: {($ VSub_Number '$1')} spids: [588] ) ] spids: [588] ) ] spids: [582 583 590 16777215] ) (case_arm pat_list: [{(--texi2html)}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:use_texi2html) op: Equal rhs: {(1)} spids: [596] ) ] spids: [596] ) ] spids: [593 594 598 16777215] ) (case_arm pat_list: [{(--help)}] action: [ (Sentence child: (C {(echo)} {(DQ ($ VSub_Name '$usage'))}) terminator: <Op_Semi ';'> ) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)}) ] spids: [602 603 615 16777215] ) (case_arm pat_list: [{(--version)}] action: [ (Sentence child: (C {(echo)} {(DQ ($ VSub_Name '$version'))}) terminator: <Op_Semi ';'> ) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)}) ] spids: [618 619 631 16777215] ) (case_arm pat_list: [{(-) (Lit_Other '*')}] action: [ (SimpleCommand words: [ {(echo)} { (DQ ($ VSub_Number '$0') (': Unknown option ') (EscapedLiteralPart token: <Lit_EscapedChar '\\`'> ) ($ VSub_Number '$1') ("'.") ) } ] redirects: [(Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (SimpleCommand words: [ {(echo)} { (DQ ($ VSub_Number '$0') (': Try ') (EscapedLiteralPart token: <Lit_EscapedChar '\\`'> ) ("--help' for more information.") ) } ] redirects: [(Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] spids: [634 636 669 16777215] ) (case_arm pat_list: [{(Lit_Other '*')}] action: [ (If arms: [ (if_arm cond: [ (Sentence child: (C {(test)} {(-z)} {(DQ ($ VSub_Name '$PACKAGE'))}) terminator: <Op_Semi ';'> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:PACKAGE) op: Equal rhs: {($ VSub_Number '$1')} spids: [690] ) ] spids: [690] ) ] spids: [16777215 687] ) (if_arm cond: [ (Sentence child: (C {(test)} {(-z)} {(DQ ($ VSub_Name '$MANUAL_TITLE'))}) terminator: <Op_Semi ';'> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:MANUAL_TITLE) op: Equal rhs: {($ VSub_Number '$1')} spids: [708] ) ] spids: [708] ) ] spids: [694 705] ) ] else_action: [ (SimpleCommand words: [ {(echo)} { (DQ ($ VSub_Number '$0') (': extra non-option argument ') (EscapedLiteralPart token: <Lit_EscapedChar '\\`'> ) ($ VSub_Number '$1') ("'.") ) } ] redirects: [(Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (ControlFlow token: <ControlFlow_Exit exit> arg_word: {(1)} ) ] spids: [712 734] ) ] spids: [672 673 735 16777215] ) ] spids: [423 427 738] ) (C {(shift)}) ] spids: [420 743] ) ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:commonarg) op: Equal rhs: {(DQ (' ') ($ VSub_Name '$dirargs') (' ') ($ VSub_Name '$commonarg'))} spids: [749] ) ] spids: [749] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:base) op: Equal rhs: {($ VSub_Name '$PACKAGE')} spids: [761] ) ] spids: [761] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(test)} {(-n)} {(DQ ($ VSub_Name '$srcfile'))}) terminator: <Op_Semi ';'> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:base) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [(C {(basename)} {(DQ ($ VSub_Name '$srcfile'))})] ) left_token: <Left_Backtick '`'> spids: [784 790] ) } spids: [783] ) ] spids: [783] ) (Case to_match: {($ VSub_Name '$base')} arms: [ (case_arm pat_list: [ {(Lit_Other '*') (.txi)} {(Lit_Other '*') (.texi)} {(Lit_Other '*') (.texinfo)} ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:base) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(echo)} {(DQ ($ VSub_Name '$base'))}) (C {(sed)} {(SQ <'s/\\.[texinfo]*$//'>)}) ] negated: F ) ] ) left_token: <Left_Backtick '`'> spids: [811 823] ) } spids: [810] ) ] spids: [810] ) ] spids: [800 808 824 16777215] ) ] spids: [793 797 827] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:PACKAGE) op: Equal rhs: {($ VSub_Name '$base')} spids: [830] ) ] spids: [830] ) ] spids: [16777215 776] ) (if_arm cond: [ (Sentence child: (C {(test)} {(-s)} {(DQ ($ VSub_Name '$srcdir') (/) ($ VSub_Name '$PACKAGE') (.texinfo))}) terminator: <Op_Semi ';'> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:srcfile) op: Equal rhs: {($ VSub_Name '$srcdir') (/) ($ VSub_Name '$PACKAGE') (.texinfo)} spids: [850] ) ] spids: [850] ) ] spids: [833 847] ) (if_arm cond: [ (Sentence child: (C {(test)} {(-s)} {(DQ ($ VSub_Name '$srcdir') (/) ($ VSub_Name '$PACKAGE') (.texi))}) terminator: <Op_Semi ';'> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:srcfile) op: Equal rhs: {($ VSub_Name '$srcdir') (/) ($ VSub_Name '$PACKAGE') (.texi)} spids: [873] ) ] spids: [873] ) ] spids: [856 870] ) (if_arm cond: [ (Sentence child: (C {(test)} {(-s)} {(DQ ($ VSub_Name '$srcdir') (/) ($ VSub_Name '$PACKAGE') (.txi))}) terminator: <Op_Semi ';'> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:srcfile) op: Equal rhs: {($ VSub_Name '$srcdir') (/) ($ VSub_Name '$PACKAGE') (.txi)} spids: [896] ) ] spids: [896] ) ] spids: [879 893] ) ] else_action: [ (SimpleCommand words: [ {(echo)} { (DQ ($ VSub_Number '$0') (': cannot find .texinfo or .texi or .txi for ') ($ VSub_Name '$PACKAGE') (' in ') ($ VSub_Name '$srcdir') (.) ) } ] redirects: [(Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] spids: [902 924] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(test)} {(KW_Bang '!')} {(-r)} {($ VSub_Name '$GENDOCS_TEMPLATE_DIR') (/gendocs_template)} ) terminator: <Op_Semi ';'> ) ] action: [ (SimpleCommand words: [ {(echo)} { (DQ ($ VSub_Number '$0') (': cannot read ') ($ VSub_Name '$GENDOCS_TEMPLATE_DIR') (/gendocs_template.) ) } ] redirects: [(Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (SimpleCommand words: [ {(echo)} { (DQ ($ VSub_Number '$0') (': it is available from ') ($ VSub_Name '$templateurl') (.)) } ] redirects: [(Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] spids: [16777215 939] ) ] spids: [16777215 972] ) (FuncDef name: calcsize body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:size) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(ls)} {(-ksl)} {($ VSub_Number '$1')}) (C {(awk)} {(SQ <'{print $1}'>)}) ] negated: F ) ] ) left_token: <Left_Backtick '`'> spids: [986 1000] ) } spids: [985] ) ] spids: [985] ) (C {(echo)} {($ VSub_Name '$size')}) ] spids: [982] ) spids: [978 981] ) (FuncDef name: copy_images body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [(assign_pair lhs:(LhsName name:odir) op:Equal spids:[1034])] spids: [1032] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:odir) op: Equal rhs: {($ VSub_Number '$1')} spids: [1037] ) ] spids: [1037] ) (C {(shift)}) (AndOr ops: [Op_DPipe] children: [ (C {($ VSub_Name '$PERL')} {(-n)} {(-e)} { (DQ ('\n') ('BEGIN {\n') (' ') (EscapedLiteralPart token:<Lit_EscapedChar '\\$'>) ("me = '") ($ VSub_Name '$prog') ("';\n") (' ') (EscapedLiteralPart token:<Lit_EscapedChar '\\$'>) ("odir = '") ($ VSub_Name '$odir') ("';\n") (' @dirs = qw(. ') ($ VSub_Name '$dirs') (');\n') ('}\n') ) } {(-e)} { (SQ <'\n'> <'/<img src="(.*?)"/g && ++$need{$1};\n'> <'\n'> <'END {\n'> < ' #print "$me: @{[keys %need]}\\n"; # for debugging, show images found.\n' > <' FILE: for my $f (keys %need) {\n'> <' for my $d (@dirs) {\n'> <' if (-f "$d/$f") {\n'> <' use File::Basename;\n'> <' my $dest = dirname ("$odir/$f");\n'> <' #\n'> <' use File::Path;\n'> <' -d $dest || mkpath ($dest)\n'> <' || die "$me: cannot mkdir $dest: $!\\n";\n'> <' #\n'> <' use File::Copy;\n'> <' copy ("$d/$f", $dest)\n'> <' || die "$me: cannot copy $d/$f to $dest: $!\\n";\n'> <' next FILE;\n'> <' }\n'> <' }\n'> <' die "$me: $ARGV: cannot find image $f\\n";\n'> <' }\n'> <'}\n'> ) } {(--)} {(DQ ($ VSub_At '$@'))} ) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] ) ] spids: [1029] ) spids: [1025 1028] ) (Case to_match: {($ VSub_Name '$outdir')} arms: [ (case_arm pat_list: [{(/) (Lit_Other '*')}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:abs_outdir) op: Equal rhs: {($ VSub_Name '$outdir')} spids: [1124] ) ] spids: [1124] ) ] spids: [1120 1122 1126 16777215] ) (case_arm pat_list: [{(Lit_Other '*')}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:abs_outdir) op: Equal rhs: {($ VSub_Name '$srcdir') (/) ($ VSub_Name '$outdir')} spids: [1132] ) ] spids: [1132] ) ] spids: [1129 1130 1136 16777215] ) ] spids: [1113 1117 1138] ) (C {(echo)} {(DQ ('Making output for ') ($ VSub_Name '$srcfile'))}) (C {(echo)} { (DQ (' in ') (CommandSubPart command_list: (CommandList children:[(C {(pwd)})]) left_token: <Left_Backtick '`'> spids: [1152 1154] ) ) } ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name '$outdir') (/))}) (If arms: [ (if_arm cond: [(Sentence child:(C {($ VSub_Name '$generate_info')}) terminator:<Op_Semi ';'>)] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:cmd) op: Equal rhs: { (DQ ($ VSub_Name '$SETLANG') (' ') ($ VSub_Name '$MAKEINFO') (' -o ') ($ VSub_Name '$PACKAGE') ('.info ') ($ VSub_Name '$commonarg') (' ') ($ VSub_Name '$infoarg') (' ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ($ VSub_Name '$srcfile') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ) } spids: [1178] ) ] spids: [1178] ) (C {(echo)} {(DQ ('Generating info... (') ($ VSub_Name '$cmd') (')'))}) (C {(rm)} {(-f)} {($ VSub_Name '$PACKAGE') (.info) (Lit_Other '*')}) (C {(eval)} {(DQ ($ VSub_Name '$cmd'))}) (C {(tar)} {(czf)} {(DQ ($ VSub_Name '$outdir') (/) ($ VSub_Name '$PACKAGE') (.info.tar.gz))} {($ VSub_Name '$PACKAGE') (.info) (Lit_Other '*')} ) (C {(ls)} {(-l)} {(DQ ($ VSub_Name '$outdir') (/) ($ VSub_Name '$PACKAGE') (.info.tar.gz))}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:info_tgz_size) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (C {(calcsize)} { (DQ ($ VSub_Name '$outdir') (/) ($ VSub_Name '$PACKAGE') (.info.tar.gz) ) } ) ] ) left_token: <Left_Backtick '`'> spids: [1253 1262] ) } spids: [1252] ) ] spids: [1252] ) ] spids: [16777215 1175] ) ] spids: [16777215 1272] ) (If arms: [ (if_arm cond: [(Sentence child:(C {($ VSub_Name '$generate_tex')}) terminator:<Op_Semi ';'>)] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:cmd) op: Equal rhs: { (DQ ($ VSub_Name '$SETLANG') (' ') ($ VSub_Name '$TEXI2DVI') (' ') ($ VSub_Name '$dirargs') (' ') ($ VSub_Name '$texarg') (' ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ($ VSub_Name '$srcfile') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ) } spids: [1289] ) ] spids: [1289] ) (C {(printf)} { (DQ (Lit_Other '\\') ('nGenerating dvi... (') ($ VSub_Name '$cmd') (')') (Lit_Other '\\') (n) ) } ) (C {(eval)} {(DQ ($ VSub_Name '$cmd'))}) (C {(gzip)} {(-f)} {(-9)} {($ VSub_Name '$PACKAGE') (.dvi)}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:dvi_gz_size) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [(C {(calcsize)} {($ VSub_Name '$PACKAGE') (.dvi.gz)})] ) left_token: <Left_Backtick '`'> spids: [1339 1344] ) } spids: [1338] ) ] spids: [1338] ) (C {(mv)} {($ VSub_Name '$PACKAGE') (.dvi.gz)} {(DQ ($ VSub_Name '$outdir') (/))}) (C {(ls)} {(-l)} {(DQ ($ VSub_Name '$outdir') (/) ($ VSub_Name '$PACKAGE') (.dvi.gz))}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:cmd) op: Equal rhs: { (DQ ($ VSub_Name '$SETLANG') (' ') ($ VSub_Name '$TEXI2DVI') (' --pdf ') ($ VSub_Name '$dirargs') (' ') ($ VSub_Name '$texarg') (' ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ($ VSub_Name '$srcfile') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ) } spids: [1371] ) ] spids: [1371] ) (C {(printf)} { (DQ (Lit_Other '\\') ('nGenerating pdf... (') ($ VSub_Name '$cmd') (')') (Lit_Other '\\') (n) ) } ) (C {(eval)} {(DQ ($ VSub_Name '$cmd'))}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pdf_size) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [(C {(calcsize)} {($ VSub_Name '$PACKAGE') (.pdf)})] ) left_token: <Left_Backtick '`'> spids: [1407 1412] ) } spids: [1406] ) ] spids: [1406] ) (C {(mv)} {($ VSub_Name '$PACKAGE') (.pdf)} {(DQ ($ VSub_Name '$outdir') (/))}) (C {(ls)} {(-l)} {(DQ ($ VSub_Name '$outdir') (/) ($ VSub_Name '$PACKAGE') (.pdf))}) ] spids: [16777215 1286] ) ] spids: [16777215 1437] ) (If arms: [ (if_arm cond: [(Sentence child:(C {($ VSub_Name '$generate_ascii')}) terminator:<Op_Semi ';'>)] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:opt) op: Equal rhs: { (DQ ('-o ') ($ VSub_Name '$PACKAGE') ('.txt --no-split --no-headers ') ($ VSub_Name '$commonarg') ) } spids: [1454] ) ] spids: [1454] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:cmd) op: Equal rhs: { (DQ ($ VSub_Name '$SETLANG') (' ') ($ VSub_Name '$MAKEINFO') (' ') ($ VSub_Name '$opt') (' ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ($ VSub_Name '$srcfile') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ) } spids: [1463] ) ] spids: [1463] ) (C {(printf)} { (DQ (Lit_Other '\\') ('nGenerating ascii... (') ($ VSub_Name '$cmd') (')') (Lit_Other '\\') (n) ) } ) (C {(eval)} {(DQ ($ VSub_Name '$cmd'))}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:ascii_size) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [(C {(calcsize)} {($ VSub_Name '$PACKAGE') (.txt)})] ) left_token: <Left_Backtick '`'> spids: [1497 1502] ) } spids: [1496] ) ] spids: [1496] ) (SimpleCommand words: [{(gzip)} {(-f)} {(-9)} {(-c)} {($ VSub_Name '$PACKAGE') (.txt)}] redirects: [ (Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(DQ ($ VSub_Name '$outdir') (/) ($ VSub_Name '$PACKAGE') (.txt.gz))} ) ] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:ascii_gz_size) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (C {(calcsize)} {(DQ ($ VSub_Name '$outdir') (/) ($ VSub_Name '$PACKAGE') (.txt.gz))} ) ] ) left_token: <Left_Backtick '`'> spids: [1526 1535] ) } spids: [1525] ) ] spids: [1525] ) (C {(mv)} {($ VSub_Name '$PACKAGE') (.txt)} {(DQ ($ VSub_Name '$outdir') (/))}) (C {(ls)} {(-l)} {(DQ ($ VSub_Name '$outdir') (/) ($ VSub_Name '$PACKAGE') (.txt))} {(DQ ($ VSub_Name '$outdir') (/) ($ VSub_Name '$PACKAGE') (.txt.gz))} ) ] spids: [16777215 1451] ) ] spids: [16777215 1567] ) (If arms: [ (if_arm cond: [(Sentence child:(C {($ VSub_Name '$generate_html')}) terminator:<Op_Semi ';'>)] action: [ (FuncDef name: html_split body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:opt) op: Equal rhs: { (DQ ('--split=') ($ VSub_Number '$1') (' --node-files ') ($ VSub_Name '$commonarg') (' ') ($ VSub_Name '$htmlarg') ) } spids: [1591] ) ] spids: [1591] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:cmd) op: Equal rhs: { (DQ ($ VSub_Name '$SETLANG') (' ') ($ VSub_Name '$TEXI2HTML') (' --output ') ($ VSub_Name '$PACKAGE') ('.html ') ($ VSub_Name '$opt') (' ') (EscapedLiteralPart token: <Lit_EscapedChar '\\"'> ) ($ VSub_Name '$srcfile') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ) } spids: [1602] ) ] spids: [1602] ) (C {(printf)} { (DQ (Lit_Other '\\') ('nGenerating html by ') ($ VSub_Number '$1') ('... (') ($ VSub_Name '$cmd') (')') (Lit_Other '\\') (n) ) } ) (C {(eval)} {(DQ ($ VSub_Name '$cmd'))}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:split_html_dir) op: Equal rhs: {($ VSub_Name '$PACKAGE') (.html)} spids: [1639] ) ] spids: [1639] ) (Subshell child: (CommandList children: [ (AndOr ops: [Op_DPipe] children: [ (C {(cd)} {(${ VSub_Name split_html_dir)}) (ControlFlow token: <ControlFlow_Exit exit> arg_word: {(1)} ) ] ) (C {(ln)} {(-sf)} {(${ VSub_Name PACKAGE) (.html)} {(index.html)}) (C {(tar)} {(-czf)} { (DQ ($ VSub_Name '$abs_outdir') (/) (${ VSub_Name PACKAGE) (.html_) ($ VSub_Number '$1') (.tar.gz) ) } {(--)} {(Lit_Other '*') (.html)} ) ] ) spids: [1644 1693] ) (C {(eval)} {(html_) ($ VSub_Number '$1') (Lit_VarLike '_tgz_size=') (CommandSubPart command_list: (CommandList children: [ (C {(calcsize)} { (DQ ($ VSub_Name '$outdir') (/) (${ VSub_Name PACKAGE) (.html_) ($ VSub_Number '$1') (.tar.gz) ) } ) ] ) left_token: <Left_Backtick '`'> spids: [1701 1714] ) } ) (C {(rm)} {(-f)} {(DQ ($ VSub_Name '$outdir')) (/html_) ($ VSub_Number '$1') (/) (Lit_Other '*') (.html) } ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name '$outdir') (/html_) ($ VSub_Number '$1') (/))}) (C {(mv)} {(${ VSub_Name split_html_dir) (/) (Lit_Other '*') (.html)} {(DQ ($ VSub_Name '$outdir') (/html_) ($ VSub_Number '$1') (/))} ) (C {(rmdir)} {(${ VSub_Name split_html_dir)}) ] spids: [1588] ) spids: [1584 1587] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(test)} {(-z)} {(DQ ($ VSub_Name '$use_texi2html'))}) terminator: <Op_Semi ';'> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:opt) op: Equal rhs: { (DQ ('--no-split --html -o ') ($ VSub_Name '$PACKAGE') ('.html ') ($ VSub_Name '$commonarg') (' ') ($ VSub_Name '$htmlarg') ) } spids: [1783] ) ] spids: [1783] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:cmd) op: Equal rhs: { (DQ ($ VSub_Name '$SETLANG') (' ') ($ VSub_Name '$MAKEINFO') (' ') ($ VSub_Name '$opt') (' ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ($ VSub_Name '$srcfile') (EscapedLiteralPart token: <Lit_EscapedChar '\\"'> ) ) } spids: [1794] ) ] spids: [1794] ) (C {(printf)} { (DQ (Lit_Other '\\') ('nGenerating monolithic html... (') ($ VSub_Name '$cmd') (')') (Lit_Other '\\') (n) ) } ) (C {(rm)} {(-rf)} {($ VSub_Name '$PACKAGE') (.html)}) (C {(eval)} {(DQ ($ VSub_Name '$cmd'))}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:html_mono_size) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [(C {(calcsize)} {($ VSub_Name '$PACKAGE') (.html)})] ) left_token: <Left_Backtick '`'> spids: [1839 1844] ) } spids: [1838] ) ] spids: [1838] ) (SimpleCommand words: [{(gzip)} {(-f)} {(-9)} {(-c)} {($ VSub_Name '$PACKAGE') (.html)}] redirects: [ (Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(DQ ($ VSub_Name '$outdir') (/) ($ VSub_Name '$PACKAGE') (.html.gz))} ) ] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:html_mono_gz_size) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (C {(calcsize)} { (DQ ($ VSub_Name '$outdir') (/) ($ VSub_Name '$PACKAGE') (.html.gz) ) } ) ] ) left_token: <Left_Backtick '`'> spids: [1868 1877] ) } spids: [1867] ) ] spids: [1867] ) (C {(copy_images)} {(DQ ($ VSub_Name '$outdir') (/))} {($ VSub_Name '$PACKAGE') (.html)} ) (C {(mv)} {($ VSub_Name '$PACKAGE') (.html)} {(DQ ($ VSub_Name '$outdir') (/))}) (C {(ls)} {(-l)} {(DQ ($ VSub_Name '$outdir') (/) ($ VSub_Name '$PACKAGE') (.html))} {(DQ ($ VSub_Name '$outdir') (/) ($ VSub_Name '$PACKAGE') (.html.gz))} ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(test)} {(DQ (x) ($ VSub_Name '$split'))} {(Lit_Other '=')} {(xnode)}) terminator: <Op_Semi ';'> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:split_arg) op: Equal rhs: {(EmptyPart)} spids: [1951] ) ] spids: [1951] ) ] spids: [16777215 1948] ) ] else_action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:split_arg) op: Equal rhs: {(--split) (Lit_Other '=') ($ VSub_Name '$split')} spids: [1957] ) ] spids: [1957] ) ] spids: [1954 1963] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:opt) op: Equal rhs: { (DQ ('--html -o ') ($ VSub_Name '$PACKAGE') ('.html ') ($ VSub_Name '$split_arg') (' ') ($ VSub_Name '$commonarg') (' ') ($ VSub_Name '$htmlarg') ) } spids: [1970] ) ] spids: [1970] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:cmd) op: Equal rhs: { (DQ ($ VSub_Name '$SETLANG') (' ') ($ VSub_Name '$MAKEINFO') (' ') ($ VSub_Name '$opt') (' ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ($ VSub_Name '$srcfile') (EscapedLiteralPart token: <Lit_EscapedChar '\\"'> ) ) } spids: [1983] ) ] spids: [1983] ) (C {(printf)} { (DQ (Lit_Other '\\') ('nGenerating html by ') ($ VSub_Name '$split') ('... (') ($ VSub_Name '$cmd') (')') (Lit_Other '\\') (n) ) } ) (C {(eval)} {(DQ ($ VSub_Name '$cmd'))}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:split_html_dir) op: Equal rhs: {($ VSub_Name '$PACKAGE') (.html)} spids: [2018] ) ] spids: [2018] ) (C {(copy_images)} {($ VSub_Name '$split_html_dir') (/)} {($ VSub_Name '$split_html_dir') (/) (Lit_Other '*') (.html)} ) (Subshell child: (CommandList children: [ (AndOr ops: [Op_DPipe] children: [ (C {(cd)} {($ VSub_Name '$split_html_dir')}) (ControlFlow token: <ControlFlow_Exit exit> arg_word: {(1)} ) ] ) (C {(tar)} {(-czf)} { (DQ ($ VSub_Name '$abs_outdir') (/) ($ VSub_Name '$PACKAGE') (.html_) ($ VSub_Name '$split') (.tar.gz) ) } {(--)} {(Lit_Other '*')} ) ] ) spids: [2034 2066] ) (C {(eval)} {(html_) (${ VSub_Name split) (Lit_VarLike '_tgz_size=') (CommandSubPart command_list: (CommandList children: [ (C {(calcsize)} { (DQ ($ VSub_Name '$outdir') (/) ($ VSub_Name '$PACKAGE') (.html_) ($ VSub_Name '$split') (.tar.gz) ) } ) ] ) left_token: <Left_Backtick '`'> spids: [2078 2089] ) } ) (C {(rm)} {(-rf)} {(DQ ($ VSub_Name '$outdir') (/html_) ($ VSub_Name '$split') (/))}) (C {(mv)} {($ VSub_Name '$split_html_dir')} {(DQ ($ VSub_Name '$outdir') (/html_) ($ VSub_Name '$split') (/))} ) (C {(du)} {(-s)} {(DQ ($ VSub_Name '$outdir') (/html_) ($ VSub_Name '$split') (/))}) (C {(ls)} {(-l)} { (DQ ($ VSub_Name '$outdir') (/) ($ VSub_Name '$PACKAGE') (.html_) ($ VSub_Name '$split') (.tar.gz) ) } ) ] spids: [16777215 1780] ) ] else_action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:opt) op: Equal rhs: { (DQ ('--output ') ($ VSub_Name '$PACKAGE') ('.html ') ($ VSub_Name '$commonarg') (' ') ($ VSub_Name '$htmlarg') ) } spids: [2148] ) ] spids: [2148] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:cmd) op: Equal rhs: { (DQ ($ VSub_Name '$SETLANG') (' ') ($ VSub_Name '$TEXI2HTML') (' ') ($ VSub_Name '$opt') (' ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ($ VSub_Name '$srcfile') (EscapedLiteralPart token: <Lit_EscapedChar '\\"'> ) ) } spids: [2159] ) ] spids: [2159] ) (C {(printf)} { (DQ (Lit_Other '\\') ('nGenerating monolithic html with texi2html... (') ($ VSub_Name '$cmd') (')') (Lit_Other '\\') (n) ) } ) (C {(rm)} {(-rf)} {($ VSub_Name '$PACKAGE') (.html)}) (C {(eval)} {(DQ ($ VSub_Name '$cmd'))}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:html_mono_size) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [(C {(calcsize)} {($ VSub_Name '$PACKAGE') (.html)})] ) left_token: <Left_Backtick '`'> spids: [2204 2209] ) } spids: [2203] ) ] spids: [2203] ) (SimpleCommand words: [{(gzip)} {(-f)} {(-9)} {(-c)} {($ VSub_Name '$PACKAGE') (.html)}] redirects: [ (Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(DQ ($ VSub_Name '$outdir') (/) ($ VSub_Name '$PACKAGE') (.html.gz))} ) ] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:html_mono_gz_size) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (C {(calcsize)} { (DQ ($ VSub_Name '$outdir') (/) ($ VSub_Name '$PACKAGE') (.html.gz) ) } ) ] ) left_token: <Left_Backtick '`'> spids: [2233 2242] ) } spids: [2232] ) ] spids: [2232] ) (C {(mv)} {($ VSub_Name '$PACKAGE') (.html)} {(DQ ($ VSub_Name '$outdir') (/))}) (C {(html_split)} {(node)}) (C {(html_split)} {(chapter)}) (C {(html_split)} {(section)}) ] spids: [2142 2271] ) ] spids: [16777215 1579] ) ] spids: [16777215 2273] ) (C {(printf)} {(DQ (Lit_Other '\\') ('nMaking .tar.gz for sources...') (Lit_Other '\\') (n))}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:d) op: Equal rhs: { (CommandSubPart command_list: (CommandList children:[(C {(dirname)} {($ VSub_Name '$srcfile')})]) left_token: <Left_Backtick '`'> spids: [2292 2296] ) } spids: [2291] ) ] spids: [2291] ) (Subshell child: (CommandList children: [ (C {(cd)} {(DQ ($ VSub_Name '$d'))}) (AndOr ops: [Op_DPipe] children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:srcfiles) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (SimpleCommand words: [ {(ls)} {(-d)} {(Lit_Other '*') (.texinfo)} {(Lit_Other '*') (.texi)} {(Lit_Other '*') (.txi)} {(Lit_Other '*') (.eps)} {($ VSub_Name '$source_extra')} ] redirects: [ (Redir op: <Redir_Great '2>'> fd: 2 arg_word: {(/dev/null)} ) ] ) ] ) left_token: <Left_Backtick '`'> spids: [2309 2330] ) } spids: [2308] ) ] spids: [2308] ) (C {(true)}) ] ) (C {(tar)} {(czfh)} {(DQ ($ VSub_Name '$abs_outdir') (/) ($ VSub_Name '$PACKAGE') (.texi.tar.gz))} {($ VSub_Name '$srcfiles')} ) (C {(ls)} {(-l)} {(DQ ($ VSub_Name '$abs_outdir') (/) ($ VSub_Name '$PACKAGE') (.texi.tar.gz))} ) ] ) spids: [2298 2362] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:texi_tgz_size) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (C {(calcsize)} {(DQ ($ VSub_Name '$outdir') (/) ($ VSub_Name '$PACKAGE') (.texi.tar.gz))} ) ] ) left_token: <Left_Backtick '`'> spids: [2365 2374] ) } spids: [2364] ) ] spids: [2364] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(test)} {(-n)} {(DQ ($ VSub_Name '$docbook'))}) terminator: <Op_Semi ';'> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:opt) op: Equal rhs: {(DQ ('-o - --docbook ') ($ VSub_Name '$commonarg'))} spids: [2397] ) ] spids: [2397] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:cmd) op: Equal rhs: { (DQ ($ VSub_Name '$SETLANG') (' ') ($ VSub_Name '$MAKEINFO') (' ') ($ VSub_Name '$opt') (' ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ($ VSub_Name '$srcfile') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (' >') (${ VSub_Name srcdir) (/) ($ VSub_Name '$PACKAGE') (-db.xml) ) } spids: [2404] ) ] spids: [2404] ) (C {(printf)} { (DQ (Lit_Other '\\') ('nGenerating docbook XML... (') ($ VSub_Name '$cmd') (')') (Lit_Other '\\') (n) ) } ) (C {(eval)} {(DQ ($ VSub_Name '$cmd'))}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:docbook_xml_size) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [(C {(calcsize)} {($ VSub_Name '$PACKAGE') (-db.xml)})] ) left_token: <Left_Backtick '`'> spids: [2445 2450] ) } spids: [2444] ) ] spids: [2444] ) (SimpleCommand words: [{(gzip)} {(-f)} {(-9)} {(-c)} {($ VSub_Name '$PACKAGE') (-db.xml)}] redirects: [ (Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(DQ ($ VSub_Name '$outdir') (/) ($ VSub_Name '$PACKAGE') (-db.xml.gz))} ) ] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:docbook_xml_gz_size) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (C {(calcsize)} { (DQ ($ VSub_Name '$outdir') (/) ($ VSub_Name '$PACKAGE') (-db.xml.gz)) } ) ] ) left_token: <Left_Backtick '`'> spids: [2474 2483] ) } spids: [2473] ) ] spids: [2473] ) (C {(mv)} {($ VSub_Name '$PACKAGE') (-db.xml)} {(DQ ($ VSub_Name '$outdir') (/))}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:split_html_db_dir) op: Equal rhs: {(html_node_db)} spids: [2498] ) ] spids: [2498] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:opt) op: Equal rhs: {(DQ ($ VSub_Name '$commonarg') (' -o ') ($ VSub_Name '$split_html_db_dir'))} spids: [2502] ) ] spids: [2502] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:cmd) op: Equal rhs: { (DQ ($ VSub_Name '$DOCBOOK2HTML') (' ') ($ VSub_Name '$opt') (' ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (${ VSub_Name outdir) (/) ($ VSub_Name '$PACKAGE') (-db.xml) (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ) } spids: [2510] ) ] spids: [2510] ) (C {(printf)} { (DQ (Lit_Other '\\') ('nGenerating docbook HTML... (') ($ VSub_Name '$cmd') (')') (Lit_Other '\\') (n) ) } ) (C {(eval)} {(DQ ($ VSub_Name '$cmd'))}) (Subshell child: (CommandList children: [ (AndOr ops: [Op_DPipe] children: [ (C {(cd)} {(${ VSub_Name split_html_db_dir)}) (ControlFlow token: <ControlFlow_Exit exit> arg_word: {(1)} ) ] ) (C {(tar)} {(-czf)} { (DQ ($ VSub_Name '$abs_outdir') (/) (${ VSub_Name PACKAGE) (.html_node_db.tar.gz) ) } {(--)} {(Lit_Other '*') (.html)} ) ] ) spids: [2546 2581] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:html_node_db_tgz_size) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (C {(calcsize)} { (DQ ($ VSub_Name '$outdir') (/) (${ VSub_Name PACKAGE) (.html_node_db.tar.gz) ) } ) ] ) left_token: <Left_Backtick '`'> spids: [2585 2596] ) } spids: [2584] ) ] spids: [2584] ) (C {(rm)} {(-f)} {(DQ ($ VSub_Name '$outdir')) (/html_node_db/) (Lit_Other '*') (.html)}) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name '$outdir') (/html_node_db))}) (C {(mv)} {(${ VSub_Name split_html_db_dir) (/) (Lit_Other '*') (.html)} {(DQ ($ VSub_Name '$outdir') (/html_node_db/))} ) (C {(rmdir)} {(${ VSub_Name split_html_db_dir)}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:cmd) op: Equal rhs: { (DQ ($ VSub_Name '$DOCBOOK2TXT') (' ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (${ VSub_Name outdir) (/) ($ VSub_Name '$PACKAGE') (-db.xml) (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ) } spids: [2644] ) ] spids: [2644] ) (C {(printf)} { (DQ (Lit_Other '\\') ('nGenerating docbook ASCII... (') ($ VSub_Name '$cmd') (')') (Lit_Other '\\') (n) ) } ) (C {(eval)} {(DQ ($ VSub_Name '$cmd'))}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:docbook_ascii_size) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [(C {(calcsize)} {($ VSub_Name '$PACKAGE') (-db.txt)})] ) left_token: <Left_Backtick '`'> spids: [2679 2684] ) } spids: [2678] ) ] spids: [2678] ) (C {(mv)} {($ VSub_Name '$PACKAGE') (-db.txt)} {(DQ ($ VSub_Name '$outdir') (/))}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:cmd) op: Equal rhs: { (DQ ($ VSub_Name '$DOCBOOK2PDF') (' ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) (${ VSub_Name outdir) (/) ($ VSub_Name '$PACKAGE') (-db.xml) (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ) } spids: [2699] ) ] spids: [2699] ) (C {(printf)} { (DQ (Lit_Other '\\') ('nGenerating docbook PDF... (') ($ VSub_Name '$cmd') (')') (Lit_Other '\\') (n) ) } ) (C {(eval)} {(DQ ($ VSub_Name '$cmd'))}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:docbook_pdf_size) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [(C {(calcsize)} {($ VSub_Name '$PACKAGE') (-db.pdf)})] ) left_token: <Left_Backtick '`'> spids: [2734 2739] ) } spids: [2733] ) ] spids: [2733] ) (C {(mv)} {($ VSub_Name '$PACKAGE') (-db.pdf)} {(DQ ($ VSub_Name '$outdir') (/))}) ] spids: [16777215 2394] ) ] spids: [16777215 2752] ) (C {(printf)} { (DQ (Lit_Other '\\') ('nMaking index.html for ') ($ VSub_Name '$PACKAGE') (...) (Lit_Other '\\') (n) ) } ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(test)} {(-z)} {(DQ ($ VSub_Name '$use_texi2html'))}) terminator: <Op_Semi ';'> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:CONDS) op: Equal rhs: { (DQ ('/%%IF *HTML_SECTION%%/,/%%ENDIF *HTML_SECTION%%/d;') (' /%%IF *HTML_CHAPTER%%/,/%%ENDIF *HTML_CHAPTER%%/d') ) } spids: [2783] ) ] spids: [2783] ) ] spids: [16777215 2780] ) ] else_action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:CONDS) op: Equal rhs: {(DQ ('/%%ENDIF.*%%/d;/%%IF *HTML_SECTION%%/d;/%%IF *HTML_CHAPTER%%/d'))} spids: [2797] ) ] spids: [2797] ) ] spids: [2790 2802] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:curdate) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [(C {($ VSub_Name '$SETLANG')} {(date)} {(SQ <'+%B %d, %Y'>)})] ) left_token: <Left_Backtick '`'> spids: [2806 2814] ) } spids: [2805] ) ] spids: [2805] ) (SimpleCommand words: [ {(sed)} {(-e)} {(DQ ('s!%%TITLE%%!') ($ VSub_Name '$MANUAL_TITLE') ('!g'))} {(-e)} {(DQ ('s!%%EMAIL%%!') ($ VSub_Name '$EMAIL') ('!g'))} {(-e)} {(DQ ('s!%%PACKAGE%%!') ($ VSub_Name '$PACKAGE') ('!g'))} {(-e)} {(DQ ('s!%%DATE%%!') ($ VSub_Name '$curdate') ('!g'))} {(-e)} {(DQ ('s!%%HTML_MONO_SIZE%%!') ($ VSub_Name '$html_mono_size') ('!g'))} {(-e)} {(DQ ('s!%%HTML_MONO_GZ_SIZE%%!') ($ VSub_Name '$html_mono_gz_size') ('!g'))} {(-e)} {(DQ ('s!%%HTML_NODE_TGZ_SIZE%%!') ($ VSub_Name '$html_node_tgz_size') ('!g'))} {(-e)} {(DQ ('s!%%HTML_SECTION_TGZ_SIZE%%!') ($ VSub_Name '$html_section_tgz_size') ('!g'))} {(-e)} {(DQ ('s!%%HTML_CHAPTER_TGZ_SIZE%%!') ($ VSub_Name '$html_chapter_tgz_size') ('!g'))} {(-e)} {(DQ ('s!%%INFO_TGZ_SIZE%%!') ($ VSub_Name '$info_tgz_size') ('!g'))} {(-e)} {(DQ ('s!%%DVI_GZ_SIZE%%!') ($ VSub_Name '$dvi_gz_size') ('!g'))} {(-e)} {(DQ ('s!%%PDF_SIZE%%!') ($ VSub_Name '$pdf_size') ('!g'))} {(-e)} {(DQ ('s!%%ASCII_SIZE%%!') ($ VSub_Name '$ascii_size') ('!g'))} {(-e)} {(DQ ('s!%%ASCII_GZ_SIZE%%!') ($ VSub_Name '$ascii_gz_size') ('!g'))} {(-e)} {(DQ ('s!%%TEXI_TGZ_SIZE%%!') ($ VSub_Name '$texi_tgz_size') ('!g'))} {(-e)} {(DQ ('s!%%DOCBOOK_HTML_NODE_TGZ_SIZE%%!') ($ VSub_Name '$html_node_db_tgz_size') ('!g'))} {(-e)} {(DQ ('s!%%DOCBOOK_ASCII_SIZE%%!') ($ VSub_Name '$docbook_ascii_size') ('!g'))} {(-e)} {(DQ ('s!%%DOCBOOK_PDF_SIZE%%!') ($ VSub_Name '$docbook_pdf_size') ('!g'))} {(-e)} {(DQ ('s!%%DOCBOOK_XML_SIZE%%!') ($ VSub_Name '$docbook_xml_size') ('!g'))} {(-e)} {(DQ ('s!%%DOCBOOK_XML_GZ_SIZE%%!') ($ VSub_Name '$docbook_xml_gz_size') ('!g'))} {(-e)} {(DQ ('s,%%SCRIPTURL%%,') ($ VSub_Name '$scripturl') (',g'))} {(-e)} {(DQ ('s!%%SCRIPTNAME%%!') ($ VSub_Name '$prog') ('!g'))} {(-e)} {(DQ ($ VSub_Name '$CONDS'))} {($ VSub_Name '$GENDOCS_TEMPLATE_DIR') (/gendocs_template)} ] redirects: [ (Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(DQ ($ VSub_Name '$outdir') (/index.html))} ) ] ) (C {(echo)} {(DQ ('Done, see ') ($ VSub_Name '$outdir') ('/ subdirectory for new files.'))}) ] )