ac5473 Update tuneup module inside centos-art.sh script.

Authored and Committed by Alain Reguera Delgado 11 years ago
23 files changed. 545 lines added. 353 lines removed.
Automation/Modules/Tuneup/Manuals/render.conf
file added
+15
Automation/Modules/Tuneup/Manuals/tuneup.asciidoc
file added
+55
Automation/Modules/Tuneup/Modules/Sh/Configs/topcomment.sedAutomation/Modules/Tuneup/Sh/Config/topcomment.sed
file renamed
+15 -13
Automation/Modules/Tuneup/Modules/Sh/sh.conf.shAutomation/Modules/Tuneup/Svg/svg_doVacuumDefs.sh
file renamed
+7 -11
Automation/Modules/Tuneup/Modules/Sh/sh.shAutomation/Modules/Tuneup/Sh/sh.sh
file renamed
+8 -8
Automation/Modules/Tuneup/Modules/Sh/sh_setTopComment.sh
file added
+44
Automation/Modules/Tuneup/Modules/Sh/sh_setVariableNames.sh
file added
+37
Automation/Modules/Tuneup/Modules/Svg/Configs/metadata.sedAutomation/Modules/Tuneup/Svg/Config/metadata.sed
file renamed
+0 -0
Automation/Modules/Tuneup/Modules/Svg/svg.conf.sh
file added
+27
Automation/Modules/Tuneup/Modules/Svg/svg.shAutomation/Modules/Tuneup/Svg/svg.sh
file renamed
+7 -6
Automation/Modules/Tuneup/Modules/Svg/svg_setMetadata.shAutomation/Modules/Tuneup/Svg/svg_doMetadata.sh
file renamed
+31 -27
Automation/Modules/Tuneup/Modules/Svg/svg_setVacuumDefs.shAutomation/Modules/Tuneup/Sh/sh_doTopComment.sh
file renamed
+9 -32
Automation/Modules/Tuneup/Modules/Xhtml/Configs/cleanup-after.sed
file added
+37
Automation/Modules/Tuneup/Modules/Xhtml/Configs/cleanup-before.sed
file added
+34
Automation/Modules/Tuneup/Modules/Xhtml/Configs/toc.awkAutomation/Modules/Tuneup/Xhtml/Config/toc.awk
file renamed
+8 -7
Automation/Modules/Tuneup/Modules/Xhtml/xhtml.conf.sh
file added
+27
Automation/Modules/Tuneup/Modules/Xhtml/xhtml.shAutomation/Modules/Tuneup/Xhtml/xhtml.sh
file renamed
+8 -8
Automation/Modules/Tuneup/Modules/Xhtml/xhtml_setCleanUp.sh
file added
+38
Automation/Modules/Tuneup/Modules/Xhtml/xhtml_setToc.shAutomation/Modules/Tuneup/Xhtml/xhtml_doToc.sh
file renamed
+48 -46
Automation/Modules/Tuneup/tuneup.conf.sh
file added
+30
Automation/Modules/Tuneup/tuneup.sh
file modified
+37 -56
Automation/Modules/Tuneup/tuneup_doBaseActions.sh
file removed
-98
Automation/Modules/Tuneup/tuneup_getOptions.sh
file modified
+23 -41
    Update tuneup module inside centos-art.sh script.
    
    - Previously, tuneup module did not work as expected in the current
      modular design because function and variable names inside it had the
      wrong names. This commit uses correct function and variable names
      inside tuneup module.
    
    - Previously, when processing html page,  there was not feature for
      transforming (probably malformed) HTML files to XHTML. This commit
      adds a cleanup feature to transform HTML into a valid XHTML page
      using sed and xmllint.
    
    - Previously, when processing sh files, there was not a feature to
      transform variable names from $varname to ${VARNAME}. The ${VARNAME}
      naming convention is being adopted inside centos-art.sh script as
      default naming convention for variables. This commits adds the
      sh_setVariableNames function to transform variable names from
      $varname form to ${VARNAME} form.
    
    - Previously, tuneup module tried to synchronize changes from local
      working copy to central repository using cli_synchronizeRepoChanges
      functions. This commit removes repository synchronization from
      tuneup module.
    
    - Previously, when reading command-line, tuneup module supported the
      help,quiet,filter:,answer-yes,synchronize as command-line options.
      From these options only help, version and filter were useful. This
      commit removes quiet, answer-yes and synchronize options from tuneup
      module's command-line and adds version to it.
    
    - Previously, when reading the module's help, tuneup module used the
      cli_runFnEnvironment function to read documentation in texinfo
      format. Texinfo format is no longer supported for documentation
      inside centos-art.sh script. It was replaced by asciidoc which is
      used to produce documentation in different formats, including
      manpages. This commit updates the way tuneup module reads its
      documentation by using tcar_printHelp function instead.
    
    - Previously, in tuneup_getOptions function, we were using the
      cli_parseArgumentsReDef function to redefine the ARGUMENTS
      environment variable. This commits renames the ARGUMENTS variable to
      TCAR_ARGUMENTS and performs its value redefinitions by modifying the
      TCAR_ARGUMETS variable directly, just after stripping out the
      options values from it.
    
    - Previously, the topcomment.sed file, used to update the top comment
      section of Bash scripts did not add the "Written by:" line. This
      commit adds the "Written by:" line and my full name along with
      contact information in the next line.
    
    - Previously, when reading tuneup modules' documentation there wasn't
      any to read about. This commit adds the tuneup.asciidoc with an
      initial documentation structure to fill up and the render.conf file,
      both inside tuneup module's Manuals directory. Manpages and
      xhtmlpages will be generated after running the render functionality
      over the tuneup module's Manuals directory.
    
    - Previously, when building the list of files to process, tuneup
      module looked up for svg, xhtml and sh file extensions only. With
      this commit, tuneup module looks for .svgz, .svg, .shtml, .xhtml,
      .html, and .sh file extensions.
    
    - Previously, inside the sh files, the top comment used the minus (-)
      character to draw top comment boundaries. This commit changes sh
      files to use the number sign (#) as top comment boundaries, instead.
    
        
Automation/Modules/Tuneup/Modules/Sh/Configs/topcomment.sed Automation/Modules/Tuneup/Sh/Config/topcomment.sed
file renamed
+15 -13
Automation/Modules/Tuneup/Modules/Sh/sh.conf.sh Automation/Modules/Tuneup/Svg/svg_doVacuumDefs.sh
file renamed
+7 -11
Automation/Modules/Tuneup/Modules/Sh/sh.sh Automation/Modules/Tuneup/Sh/sh.sh
file renamed
+8 -8
Automation/Modules/Tuneup/Modules/Svg/Configs/metadata.sed Automation/Modules/Tuneup/Svg/Config/metadata.sed
file renamed
file was renamed with no change to the file
Automation/Modules/Tuneup/Modules/Svg/svg.sh Automation/Modules/Tuneup/Svg/svg.sh
file renamed
+7 -6
Automation/Modules/Tuneup/Modules/Svg/svg_setMetadata.sh Automation/Modules/Tuneup/Svg/svg_doMetadata.sh
file renamed
+31 -27
Automation/Modules/Tuneup/Modules/Svg/svg_setVacuumDefs.sh Automation/Modules/Tuneup/Sh/sh_doTopComment.sh
file renamed
+9 -32
Automation/Modules/Tuneup/Modules/Xhtml/Configs/toc.awk Automation/Modules/Tuneup/Xhtml/Config/toc.awk
file renamed
+8 -7
Automation/Modules/Tuneup/Modules/Xhtml/xhtml.sh Automation/Modules/Tuneup/Xhtml/xhtml.sh
file renamed
+8 -8
Automation/Modules/Tuneup/Modules/Xhtml/xhtml_setToc.sh Automation/Modules/Tuneup/Xhtml/xhtml_doToc.sh
file renamed
+48 -46