(CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:scriptversion) op: Equal rhs: {(2013-10-10.09)} 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: [107 113] ) } spids: [106] ) ] spids: [106] ) (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: [116 118] ) } spids: [115] ) ] spids: [115] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:scripturl) op: Equal rhs: { (DQ ( 'http://savannah.gnu.org/cgi-bin/viewcvs/~checkout~/texinfo/texinfo/util/gendocs.sh' ) ) } spids: [121] ) ] spids: [121] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:templateurl) op: Equal rhs: { (DQ ( 'http://savannah.gnu.org/cgi-bin/viewcvs/~checkout~/texinfo/texinfo/util/gendocs_template' ) ) } spids: [126] ) ] spids: [126] ) (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: [134 140] ) } ) (C {(Lit_Other ':')} { (BracedVarSub token: <VSub_Name MAKEINFO> suffix_op: (StringUnary op_id:VTest_Equals arg_word:{(DQ (makeinfo))}) spids: [144 150] ) } ) (C {(Lit_Other ':')} { (BracedVarSub token: <VSub_Name TEXI2DVI> suffix_op: (StringUnary op_id:VTest_Equals arg_word:{(DQ ('texi2dvi -t @finalout'))}) spids: [154 160] ) } ) (C {(Lit_Other ':')} { (BracedVarSub token: <VSub_Name DOCBOOK2HTML> suffix_op: (StringUnary op_id:VTest_Equals arg_word:{(DQ (docbook2html))}) spids: [164 170] ) } ) (C {(Lit_Other ':')} { (BracedVarSub token: <VSub_Name DOCBOOK2PDF> suffix_op: (StringUnary op_id:VTest_Equals arg_word:{(DQ (docbook2pdf))}) spids: [174 180] ) } ) (C {(Lit_Other ':')} { (BracedVarSub token: <VSub_Name DOCBOOK2TXT> suffix_op: (StringUnary op_id:VTest_Equals arg_word:{(DQ (docbook2txt))}) spids: [184 190] ) } ) (C {(Lit_Other ':')} { (BracedVarSub token: <VSub_Name GENDOCS_TEMPLATE_DIR> suffix_op: (StringUnary op_id:VTest_Equals arg_word:{(DQ (.))}) spids: [194 200] ) } ) (C {(Lit_Other ':')} { (BracedVarSub token: <VSub_Name PERL> suffix_op: (StringUnary op_id:VTest_Equals arg_word:{(SQ <perl>)}) spids: [204 210] ) } ) (C {(Lit_Other ':')} { (BracedVarSub token: <VSub_Name TEXI2HTML> suffix_op: (StringUnary op_id:VTest_Equals arg_word:{(DQ (texi2html))}) spids: [214 220] ) } ) (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 2013 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: [231] ) ] spids: [231] ) (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') (' --info ARG pass ARG to makeinfo for Info, instead of --no-split.\n') (' --no-ascii skip generating the plain text output.\n') (' --source ARG include ARG in tar archive of sources.\n') (' --split HOW make split HTML by node, section, chapter; default node.\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-texinfo@gnu.org.\n') ) } spids: [244] ) ] spids: [244] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:MANUAL_TITLE) op:Equal rhs:{(SQ )} spids:[347])] spids: [347] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:PACKAGE) op:Equal rhs:{(SQ )} spids:[349])] spids: [349] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:EMAIL) op: Equal rhs: {(webmasters) (Lit_Other '@') (gnu.org)} spids: [351] ) ] spids: [351] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:commonarg) op:Equal rhs:{(SQ )} spids:[359])] spids: [359] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:dirargs) op:Equal rhs:{(SQ )} spids:[364])] spids: [364] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:dirs) op:Equal rhs:{(SQ )} spids:[369])] spids: [369] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:htmlarg) op:Equal rhs:{(SQ )} spids:[374])] spids: [374] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:infoarg) op:Equal rhs:{(--no-split)} spids:[376])] spids: [376] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:generate_ascii) op:Equal rhs:{(true)} spids:[379])] spids: [379] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:outdir) op:Equal rhs:{(manual)} spids:[382])] spids: [382] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:source_extra) op:Equal rhs:{(SQ )} spids:[385])] spids: [385] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:split) op:Equal rhs:{(node)} spids:[387])] spids: [387] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:srcfile) op:Equal rhs:{(SQ )} spids:[390])] spids: [390] ) (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: [420] ) ] spids: [420] ) ] spids: [414 415 422 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: [431] ) ] spids: [431] ) ] spids: [425 426 433 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: [442] ) ] spids: [442] ) 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: [451] ) ] spids: [451] ) ] spids: [436 437 457 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: [466] ) ] spids: [466] ) ] spids: [460 461 468 16777215] ) (case_arm pat_list: [{(--docbook)}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:docbook) op: Equal rhs: {(yes)} spids: [474] ) ] spids: [474] ) ] spids: [471 472 476 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: [485] ) ] spids: [485] ) ] spids: [479 480 487 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: [496] ) ] spids: [496] ) ] spids: [490 491 498 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: [507] ) ] spids: [507] ) ] spids: [501 502 509 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: [515] ) ] spids: [515] ) ] spids: [512 513 517 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: [526] ) ] spids: [526] ) ] spids: [520 521 528 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: [537] ) ] spids: [537] ) ] spids: [531 532 539 16777215] ) (case_arm pat_list: [{(--texi2html)}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:use_texi2html) op: Equal rhs: {(1)} spids: [545] ) ] spids: [545] ) ] spids: [542 543 547 16777215] ) (case_arm pat_list: [{(--help)}] action: [ (Sentence child: (C {(echo)} {(DQ ($ VSub_Name '$usage'))}) terminator: <Op_Semi ';'> ) (C {(exit)} {(0)}) ] spids: [551 552 564 16777215] ) (case_arm pat_list: [{(--version)}] action: [ (Sentence child: (C {(echo)} {(DQ ($ VSub_Name '$version'))}) terminator: <Op_Semi ';'> ) (C {(exit)} {(0)}) ] spids: [567 568 580 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_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[598])] ) (SimpleCommand words: [ {(echo)} { (DQ ($ VSub_Number '$0') (': Try ') (EscapedLiteralPart token: <Lit_EscapedChar '\\`'> ) ("--help' for more information.") ) } ] redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[611])] ) (C {(exit)} {(1)}) ] spids: [583 585 618 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: [639] ) ] spids: [639] ) ] spids: [16777215 636] ) (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: [657] ) ] spids: [657] ) ] spids: [643 654] ) ] else_action: [ (SimpleCommand words: [ {(echo)} { (DQ ($ VSub_Number '$0') (': extra non-option argument ') (EscapedLiteralPart token: <Lit_EscapedChar '\\`'> ) ($ VSub_Number '$1') ("'.") ) } ] redirects: [ (Redir op_id: Redir_GreatAnd fd: 16777215 arg_word: {(2)} spids: [674] ) ] ) (C {(exit)} {(1)}) ] spids: [661 683] ) ] spids: [621 622 684 16777215] ) ] spids: [407 411 687] ) (C {(shift)}) ] spids: [404 692] ) ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:commonarg) op: Equal rhs: {(DQ (' ') ($ VSub_Name '$dirargs') (' ') ($ VSub_Name '$commonarg'))} spids: [698] ) ] spids: [698] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:base) op: Equal rhs: {($ VSub_Name '$PACKAGE')} spids: [710] ) ] spids: [710] ) (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: [733 739] ) } spids: [732] ) ] spids: [732] ) (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: False ) ] ) left_token: <Left_Backtick '`'> spids: [760 772] ) } spids: [759] ) ] spids: [759] ) ] spids: [749 757 773 16777215] ) ] spids: [742 746 776] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:PACKAGE) op: Equal rhs: {($ VSub_Name '$base')} spids: [779] ) ] spids: [779] ) ] spids: [16777215 725] ) (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: [799] ) ] spids: [799] ) ] spids: [782 796] ) (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: [822] ) ] spids: [822] ) ] spids: [805 819] ) (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: [845] ) ] spids: [845] ) ] spids: [828 842] ) ] 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_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[865])] ) (C {(exit)} {(1)}) ] spids: [851 873] ) (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_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[900])] ) (SimpleCommand words: [ {(echo)} { (DQ ($ VSub_Number '$0') (': it is available from ') ($ VSub_Name '$templateurl') (.)) } ] redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[913])] ) (C {(exit)} {(1)}) ] spids: [16777215 888] ) ] spids: [16777215 921] ) (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: False ) ] ) left_token: <Left_Backtick '`'> spids: [935 949] ) } spids: [934] ) ] spids: [934] ) (C {(echo)} {($ VSub_Name '$size')}) ] spids: [931] ) spids: [927 930] ) (FuncDef name: copy_images body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [(assign_pair lhs:(LhsName name:odir) op:Equal spids:[980])] spids: [978] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:odir) op: Equal rhs: {($ VSub_Number '$1')} spids: [983] ) ] spids: [983] ) (C {(shift)}) (AndOr 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 '$@'))} ) (C {(exit)} {(1)}) ] op_id: Op_DPipe ) ] spids: [975] ) spids: [971 974] ) (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: [1070] ) ] spids: [1070] ) ] spids: [1066 1068 1072 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: [1078] ) ] spids: [1078] ) ] spids: [1075 1076 1082 16777215] ) ] spids: [1059 1063 1084] ) (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: [1098 1100] ) ) } ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name '$outdir') (/))}) (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: [1113] ) ] spids: [1113] ) (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: [1182 1191] ) } spids: [1181] ) ] spids: [1181] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:cmd) op: Equal rhs: { (DQ ($ VSub_Name '$SETLANG') (' ') ($ VSub_Name '$TEXI2DVI') (' ') ($ VSub_Name '$dirargs') (' ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ($ VSub_Name '$srcfile') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ) } spids: [1200] ) ] spids: [1200] ) (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: [1243 1248] ) } spids: [1242] ) ] spids: [1242] ) (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') (' ') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ($ VSub_Name '$srcfile') (EscapedLiteralPart token:<Lit_EscapedChar '\\"'>) ) } spids: [1272] ) ] spids: [1272] ) (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: [1303 1308] ) } spids: [1302] ) ] spids: [1302] ) (C {(mv)} {($ VSub_Name '$PACKAGE') (.pdf)} {(DQ ($ VSub_Name '$outdir') (/))}) (C {(ls)} {(-l)} {(DQ ($ VSub_Name '$outdir') (/) ($ VSub_Name '$PACKAGE') (.pdf))}) (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: [1340] ) ] spids: [1340] ) (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: [1349] ) ] spids: [1349] ) (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: [1383 1388] ) } spids: [1382] ) ] spids: [1382] ) (SimpleCommand words: [{(gzip)} {(-f)} {(-9)} {(-c)} {($ VSub_Name '$PACKAGE') (.txt)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(DQ ($ VSub_Name '$outdir') (/) ($ VSub_Name '$PACKAGE') (.txt.gz))} spids: [1402] ) ] ) (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: [1412 1421] ) } spids: [1411] ) ] spids: [1411] ) (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 1337] ) ] spids: [16777215 1453] ) (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: [1466] ) ] spids: [1466] ) (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: [1477] ) ] spids: [1477] ) (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: [1514] ) ] spids: [1514] ) (Subshell child: (CommandList children: [ (AndOr children: [(C {(cd)} {(${ VSub_Name split_html_dir)}) (C {(exit)} {(1)})] op_id: Op_DPipe ) (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: [1519 1568] ) (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: [1576 1589] ) } ) (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: [1463] ) spids: [1459 1462] ) (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: [1658] ) ] spids: [1658] ) (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: [1669] ) ] spids: [1669] ) (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: [1714 1719] ) } spids: [1713] ) ] spids: [1713] ) (SimpleCommand words: [{(gzip)} {(-f)} {(-9)} {(-c)} {($ VSub_Name '$PACKAGE') (.html)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(DQ ($ VSub_Name '$outdir') (/) ($ VSub_Name '$PACKAGE') (.html.gz))} spids: [1733] ) ] ) (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: [1743 1752] ) } spids: [1742] ) ] spids: [1742] ) (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: {(SQ )} spids: [1826] ) ] spids: [1826] ) ] spids: [16777215 1823] ) ] else_action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:split_arg) op: Equal rhs: {(--split) (Lit_Other '=') ($ VSub_Name '$split')} spids: [1832] ) ] spids: [1832] ) ] spids: [1829 1838] ) (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: [1845] ) ] spids: [1845] ) (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: [1858] ) ] spids: [1858] ) (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: [1893] ) ] spids: [1893] ) (C {(copy_images)} {($ VSub_Name '$split_html_dir') (/)} {($ VSub_Name '$split_html_dir') (/) (Lit_Other '*') (.html)} ) (Subshell child: (CommandList children: [ (AndOr children: [(C {(cd)} {($ VSub_Name '$split_html_dir')}) (C {(exit)} {(1)})] op_id: Op_DPipe ) (C {(tar)} {(-czf)} { (DQ ($ VSub_Name '$abs_outdir') (/) ($ VSub_Name '$PACKAGE') (.html_) ($ VSub_Name '$split') (.tar.gz) ) } {(--)} {(Lit_Other '*')} ) ] ) spids: [1909 1941] ) (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: [1953 1964] ) } ) (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 1655] ) ] 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: [2023] ) ] spids: [2023] ) (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: [2034] ) ] spids: [2034] ) (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: [2079 2084] ) } spids: [2078] ) ] spids: [2078] ) (SimpleCommand words: [{(gzip)} {(-f)} {(-9)} {(-c)} {($ VSub_Name '$PACKAGE') (.html)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(DQ ($ VSub_Name '$outdir') (/) ($ VSub_Name '$PACKAGE') (.html.gz))} spids: [2098] ) ] ) (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: [2108 2117] ) } spids: [2107] ) ] spids: [2107] ) (C {(mv)} {($ VSub_Name '$PACKAGE') (.html)} {(DQ ($ VSub_Name '$outdir') (/))}) (C {(html_split)} {(node)}) (C {(html_split)} {(chapter)}) (C {(html_split)} {(section)}) ] spids: [2017 2146] ) (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: [2159 2163] ) } spids: [2158] ) ] spids: [2158] ) (Subshell child: (CommandList children: [ (C {(cd)} {(DQ ($ VSub_Name '$d'))}) (AndOr 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_id: Redir_Great fd: 2 arg_word: {(/dev/null)} spids: [2195] ) ] ) ] ) left_token: <Left_Backtick '`'> spids: [2176 2197] ) } spids: [2175] ) ] spids: [2175] ) (C {(true)}) ] op_id: Op_DPipe ) (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: [2165 2229] ) (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: [2232 2241] ) } spids: [2231] ) ] spids: [2231] ) (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: [2258] ) ] spids: [2258] ) (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: [2265] ) ] spids: [2265] ) (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: [2306 2311] ) } spids: [2305] ) ] spids: [2305] ) (SimpleCommand words: [{(gzip)} {(-f)} {(-9)} {(-c)} {($ VSub_Name '$PACKAGE') (-db.xml)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(DQ ($ VSub_Name '$outdir') (/) ($ VSub_Name '$PACKAGE') (-db.xml.gz))} spids: [2325] ) ] ) (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: [2335 2344] ) } spids: [2334] ) ] spids: [2334] ) (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: [2359] ) ] spids: [2359] ) (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: [2363] ) ] spids: [2363] ) (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: [2371] ) ] spids: [2371] ) (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 children: [(C {(cd)} {(${ VSub_Name split_html_db_dir)}) (C {(exit)} {(1)})] op_id: Op_DPipe ) (C {(tar)} {(-czf)} { (DQ ($ VSub_Name '$abs_outdir') (/) (${ VSub_Name PACKAGE) (.html_node_db.tar.gz) ) } {(--)} {(Lit_Other '*') (.html)} ) ] ) spids: [2407 2442] ) (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: [2446 2457] ) } spids: [2445] ) ] spids: [2445] ) (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: [2505] ) ] spids: [2505] ) (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: [2540 2545] ) } spids: [2539] ) ] spids: [2539] ) (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: [2560] ) ] spids: [2560] ) (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: [2595 2600] ) } spids: [2594] ) ] spids: [2594] ) (C {(mv)} {($ VSub_Name '$PACKAGE') (-db.pdf)} {(DQ ($ VSub_Name '$outdir') (/))}) ] spids: [16777215 2255] ) ] spids: [16777215 2613] ) (C {(printf)} {(DQ (Lit_Other '\\') ('nMaking index file...') (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: [2639] ) ] spids: [2639] ) ] spids: [16777215 2636] ) ] 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: [2653] ) ] spids: [2653] ) ] spids: [2646 2658] ) (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: [2662 2670] ) } spids: [2661] ) ] spids: [2661] ) (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_id: Redir_Great fd: 16777215 arg_word: {(DQ ($ VSub_Name '$outdir') (/index.html))} spids: [2906] ) ] ) (C {(echo)} {(DQ ('Done, see ') ($ VSub_Name '$outdir') ('/ subdirectory for new files.'))}) ] )