Update `help' functionality:
help.sh:
- Separate execution of backend-related action names in three
parts. One for actions that use all action values, other for
actions that use just one action value and another for
actions that don't use any action value at all.
Backends/Docbook/docbook_getEntry.sh:
- Start using FLAG_BACKEND in place of writing file extensions
literllay.
Backends/Texinfo/texinfo.sh:
- Remove texinfo.sh file. Deam! This was what I initially
intended to do, but forgot to specify the file location and
all modified files were commited with the wrong comment.
Backends/Texinfo/texinfo_updateNodes.sh:
- Remove MANUAL_CHAPTER_DIR and MANUAL_CHAPTER_NAME variables.
They are already defined in the help.sh file.
Backends/Texinfo/texinfo_renameCrossReferences.sh:
- Start using first and second positional parameters passed to
this function as references to build the source (ENTRY_SRC)
and target (ENTRY_DST) documentation entries.
- Remove unused variables (e.g., NODE, COUNT).
- Start using FALG_BACKEND variable as function suffix.
Backends/Texinfo/texinfo_deleteEntry.sh:
- Start using $@ instead of ${ACTIONVALS[*]}.
- Remove MANUAL_CHAPTER_DIR variable definition. It has been
already defined in help.sh.
- Remove cli_syncroRepoChanges function invocation from here.
It is has been already invocated in help.sh.
- Don't perform pramble for deletion actions here
(cli_printActionPreamble). This make the whole deletion
process slower and interferes with file renaming actions.
- Add file verification for ENTRIES, before deleting them.
- Don't update output files here. They are already updated on
help.sh.
Backends/Texinfo/texinfo_getChapterDir.sh:
- Support a list of entries here. Assuming more than one
documentation entry be provided, a list of chapter directory
is returned as output.
Backends/Texinfo/texinfo_updateOutputFiles.sh:
- Start using FLAG_BACKEND variable as suffix for invoking
functions.
Backends/Texinfo/texinfo_renameEntry.sh:
- Start using FLAG_BACKEND variable as suffix for invoking
functions.
- Use function positional parameters as reference to perform
the renaming action.
Backends/Texinfo/texinfo_copyEntry.sh:
- Use function positional parameters to restrict the amount of
non-option arguments passed to centos-art.sh script.
- Start using FLAG_BACKEND variable as suffix for invoking
functions.
- Use function positional parameters as reference to define
the source (ENTRY_SRC) and target (ENTRY_DST) documentation
entries.
- Don't use version control verifications (e.g.,
cli_syncroRepoChanges and cli_commitRepoChanges) here. These
actions are performed in help.sh already.
- Don't force the existence of dependent directories for
docuentation entries. Dependent directories are optional.
Backends/Texinfo/texinfo_searchIndex.sh:
- Rebuild output files to propagate recent changes. This is
required because each time an index search is perform
(through the `--search' option) all changes are braught from
the repository to the working copy. So, in order to perform
the index search in up to date files, we rebuilt the output
files here.
At this time, only texinfo backend, specifically its info
output, seems to get benefit from this.
Backends/Texinfo/texinfo_getEntry.sh:
- Sanitate action value to use absolute paths. This let us
create documentation entries from action values directly.
There is no need to perform the sanitation elsewhere, the
last purpose of the sanitation is build the documentation
entry correctly. So, doing it here feels ok.
Backends/Texinfo/texinfo_editEntry.sh:
- Start using FLAG_BACKEND variable as suffix for invoking
functions.
- Don't update output files here. They are already updated on
help.sh.
Backends/Texinfo/texinfo_updateMenu.sh:
- Remove MANUAL_CHAPTER_DIR and MANUAL_CHAPTER_NAME variables.
They are already defined in the help.sh file.
help_getOptions.sh:
- Build the function definition file related to action name
and verify its existence before initialize it.