diff --git a/Scripts/Functions/Help/Texinfo/texinfo.sh b/Scripts/Functions/Help/Texinfo/texinfo.sh index d5726ca..104dd80 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo.sh @@ -39,7 +39,7 @@ function texinfo { MANUAL_EXTENSION="${MANUAL_BACKEND}" # Initialize document structure for new manuals. - ${MANUAL_BACKEND}_createStructure + texinfo_createStructure # Define documentation entry default values. To build the # documentation entry, we combine the manual's name, the chapter's @@ -55,7 +55,7 @@ function texinfo { # When chapter option is provided whith out a section name, # verify chapter's directory inside the manual, - ${MANUAL_BACKEND}_createChapter + texinfo_createChapter # and define documentation entry based on chapter's main # definition file. @@ -66,7 +66,7 @@ function texinfo { # When both the chapter option and non-option arguments are # provided, define documentation entries based on manual, # chapter and non-option arguments. - MANUAL_ENTRY="$(${MANUAL_BACKEND}_getEntry "$MANUAL_SECTION_NAME")" + MANUAL_ENTRY="$(texinfo_getEntry "$MANUAL_SECTION_NAME")" else cli_printMessage "`gettext "The parameters you provided are not supported."`" --as-error-line @@ -85,7 +85,7 @@ function texinfo { # terminate the script execution once the reading is done. # Update manual's output files. - ${MANUAL_BACKEND}_updateOutputFiles + texinfo_updateOutputFiles # Read manual's Top node from its info output file. info --node="Top" --file="${MANUAL_BASEFILE}.info.bz2" @@ -96,10 +96,10 @@ function texinfo { # arguments passed to `centos-art.sh' script in a special way. # In this configuration, only two non-option arguments are # processed in the first loop of their interpretation. - ${MANUAL_BACKEND}_${ACTIONNAM} + texinfo_${ACTIONNAM} # Rebuild output files to propagate recent changes, if any. - ${MANUAL_BACKEND}_updateOutputFiles + texinfo_updateOutputFiles # Break interpretation of non-option arguments to prevent the # second and further non-option arguments from being @@ -117,16 +117,16 @@ function texinfo { # flow) nor commit any change form working copy to central # repository (e.g., output files are not under version # control). - ${MANUAL_BACKEND}_${ACTIONNAM} + texinfo_${ACTIONNAM} else # Execute action names that follow help's execution flow as it # is, without any modification. - ${MANUAL_BACKEND}_${ACTIONNAM} + texinfo_${ACTIONNAM} # Rebuild output files to propagate recent changes, if any. - ${MANUAL_BACKEND}_updateOutputFiles + texinfo_updateOutputFiles fi diff --git a/Scripts/Functions/Help/Texinfo/texinfo_copyEntry.sh b/Scripts/Functions/Help/Texinfo/texinfo_copyEntry.sh index 2f00d18..eeafbcc 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_copyEntry.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_copyEntry.sh @@ -39,7 +39,7 @@ function texinfo_copyEntry { # In this configuration, the section name is specified in # first non-option argument and optionally in the second # non-option arugment. - ${MANUAL_BACKEND}_copyEntrySection + texinfo_copyEntrySection elif [[ ${MANUAL_CHAP[${MANUAL_DOCENTRY_ID}]} != '' ]] \ && [[ ${MANUAL_CHAP[((${MANUAL_DOCENTRY_ID} + 1))]} != '' ]];then @@ -49,7 +49,7 @@ function texinfo_copyEntry { # perform a copying action for the chapter directory itself. # In this configuration, the whole chapter directory and all # the content inside are duplicated from source to target. - ${MANUAL_BACKEND}_copyEntryChapter + texinfo_copyEntryChapter elif [[ ${MANUAL_DIRN[${MANUAL_DOCENTRY_ID}]} != '' ]] \ && [[ ${MANUAL_DIRN[((${MANUAL_DOCENTRY_ID} + 1))]} != '' ]];then @@ -58,7 +58,7 @@ function texinfo_copyEntry { # neither in first or second non-option argument. So, we # perform copying actions on manual directory itself. Notice # that, in this configuration, the whole manual is duplicated. - ${MANUAL_BACKEND}_copyEntryManual + texinfo_copyEntryManual # In this configuration, there is no need to update section # menus, nodes and cross refereces. The section definition diff --git a/Scripts/Functions/Help/Texinfo/texinfo_copyEntryChapter.sh b/Scripts/Functions/Help/Texinfo/texinfo_copyEntryChapter.sh index 31b2f0d..4ea9549 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_copyEntryChapter.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_copyEntryChapter.sh @@ -32,7 +32,7 @@ function texinfo_copyEntryChapter { MANUAL_ENTRY_DST=${MANUAL_BASEDIR_L10N}/${MANUAL_CHAP[((${MANUAL_DOCENTRY_ID} + 1))]} # Verify entry source and target locations. - ${MANUAL_BACKEND}_checkEntrySrcDst "${MANUAL_ENTRY_SRC}" "${MANUAL_ENTRY_DST}" + texinfo_checkEntrySrcDst "${MANUAL_ENTRY_SRC}" "${MANUAL_ENTRY_DST}" # When we are copying chapters, document structure actualization # needs to be performed against the target chapter not the source @@ -48,7 +48,7 @@ function texinfo_copyEntryChapter { # source chapter must be copied one by one to the recently created # chapter. At this point then, is when menu, nodes and cross # references for the new chapter are updated. - ${MANUAL_BACKEND}_createChapter + texinfo_createChapter # Create list of sections from source chapter that need to be # copied to target chapter. Don't include chapter's main @@ -64,11 +64,11 @@ function texinfo_copyEntryChapter { # Update section menu, nodes and cross reference definitions # inside target chapter where all section entries were copied to. - ${MANUAL_BACKEND}_updateStructureSection "${MANUAL_ENTRY_DST}/.+\.${MANUAL_EXTENSION}" + texinfo_updateStructureSection "${MANUAL_ENTRY_DST}/.+\.${MANUAL_EXTENSION}" # Update chapter menu and node definitions inside the manual # structure. - ${MANUAL_BACKEND}_updateChapterMenu - ${MANUAL_BACKEND}_updateChapterNodes + texinfo_updateChapterMenu + texinfo_updateChapterNodes } diff --git a/Scripts/Functions/Help/Texinfo/texinfo_copyEntryManual.sh b/Scripts/Functions/Help/Texinfo/texinfo_copyEntryManual.sh index 1f799e6..bb8e534 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_copyEntryManual.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_copyEntryManual.sh @@ -50,7 +50,7 @@ function texinfo_copyEntryManual { local MANUAL_BASEFILE="${MANUAL_BASEDIR_L10N}/${MANUAL_NAME}" # Create manual structure - ${MANUAL_BACKEND}_createStructure + texinfo_createStructure # Print action maessage. cli_printMessage "`gettext "Updating chapter menus and nodes inside manual structure."`" --as-response-line @@ -67,8 +67,8 @@ function texinfo_copyEntryManual { # Update chapter information inside the manual's texinfo # structure. - ${MANUAL_BACKEND}_updateChapterMenu - ${MANUAL_BACKEND}_updateChapterNodes + texinfo_updateChapterMenu + texinfo_updateChapterNodes done diff --git a/Scripts/Functions/Help/Texinfo/texinfo_copyEntrySection.sh b/Scripts/Functions/Help/Texinfo/texinfo_copyEntrySection.sh index 2256f4f..9c5363a 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_copyEntrySection.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_copyEntrySection.sh @@ -32,8 +32,8 @@ function texinfo_copyEntrySection { # When the section name is specified in first and second # non-option arguments, source and target are set as specified # in first and second non-option arguments respectively. - MANUAL_ENTRY_SRC=$(${MANUAL_BACKEND}_getEntry ${MANUAL_SECT[${MANUAL_DOCENTRY_ID}]}) - MANUAL_ENTRY_DST=$(${MANUAL_BACKEND}_getEntry ${MANUAL_SECT[((${MANUAL_DOCENTRY_ID} + 1))]}) + MANUAL_ENTRY_SRC=$(texinfo_getEntry ${MANUAL_SECT[${MANUAL_DOCENTRY_ID}]}) + MANUAL_ENTRY_DST=$(texinfo_getEntry ${MANUAL_SECT[((${MANUAL_DOCENTRY_ID} + 1))]}) elif [[ ${MANUAL_SECT[((${MANUAL_DOCENTRY_ID} + 1))]} == '' ]] \ && [[ ${MANUAL_CHAP[((${MANUAL_DOCENTRY_ID} + 1))]} != '' ]];then @@ -43,7 +43,7 @@ function texinfo_copyEntrySection { # in the second non-option argument, use the section name # passed in first argument to build the section name that will # be used as target. - MANUAL_ENTRY_SRC=$(${MANUAL_BACKEND}_getEntry ${MANUAL_SECT[${MANUAL_DOCENTRY_ID}]}) + MANUAL_ENTRY_SRC=$(texinfo_getEntry ${MANUAL_SECT[${MANUAL_DOCENTRY_ID}]}) MANUAL_ENTRY_DST=$(echo $MANUAL_ENTRY_SRC \ | sed -r "s!${MANUAL_CHAP[${MANUAL_DOCENTRY_ID}]}!${MANUAL_CHAP[((${MANUAL_DOCENTRY_ID} + 1))]}!") @@ -56,7 +56,7 @@ function texinfo_copyEntrySection { cli_printMessage "${MANUAL_ENTRY_DST}" --as-creating-line # Verify entry source and target locations. - ${MANUAL_BACKEND}_checkEntrySrcDst "${MANUAL_ENTRY_SRC}" "${MANUAL_ENTRY_DST}" + texinfo_checkEntrySrcDst "${MANUAL_ENTRY_SRC}" "${MANUAL_ENTRY_DST}" # Copy section entry from source to target using subversion. svn cp "${MANUAL_ENTRY_SRC}" "${MANUAL_ENTRY_DST}" --quiet @@ -77,6 +77,6 @@ function texinfo_copyEntrySection { # At this point, all copying actions and chapter related # redefinitions have took place. It is time, then, to update the # document structure using the information collected so far. - ${MANUAL_BACKEND}_updateStructureSection "${MANUAL_ENTRY_DST}" + texinfo_updateStructureSection "${MANUAL_ENTRY_DST}" } diff --git a/Scripts/Functions/Help/Texinfo/texinfo_createChapter.sh b/Scripts/Functions/Help/Texinfo/texinfo_createChapter.sh index 46b0225..08487dd 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_createChapter.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_createChapter.sh @@ -48,9 +48,9 @@ function texinfo_createChapter { read MANUAL_CHAPTER_TITLE # Sanitate chapter node, chapter index and chapter title. - MANUAL_CHAPTER_NODE=$(${MANUAL_BACKEND}_getEntryNode "$MANUAL_CHAPTER_NAME") - MANUAL_CHAPTER_CIND=$(${MANUAL_BACKEND}_getEntryIndex "$MANUAL_CHAPTER_TITLE") - MANUAL_CHAPTER_TITLE=$(${MANUAL_BACKEND}_getEntryTitle "$MANUAL_CHAPTER_TITLE") + MANUAL_CHAPTER_NODE=$(texinfo_getEntryNode "$MANUAL_CHAPTER_NAME") + MANUAL_CHAPTER_CIND=$(texinfo_getEntryIndex "$MANUAL_CHAPTER_TITLE") + MANUAL_CHAPTER_TITLE=$(texinfo_getEntryTitle "$MANUAL_CHAPTER_TITLE") # Print action message. cli_printMessage "-" --as-separator-line @@ -113,7 +113,7 @@ function texinfo_createChapter { # Update chapter information inside the manual's texinfo # structure. - ${MANUAL_BACKEND}_updateChapterMenu - ${MANUAL_BACKEND}_updateChapterNodes + texinfo_updateChapterMenu + texinfo_updateChapterNodes } diff --git a/Scripts/Functions/Help/Texinfo/texinfo_createStructure.sh b/Scripts/Functions/Help/Texinfo/texinfo_createStructure.sh index 44ac963..a267e28 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_createStructure.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_createStructure.sh @@ -108,7 +108,7 @@ function texinfo_createStructure { done # Initialize chapter structure inside the manual. - ${MANUAL_BACKEND}_createStructureChapters + texinfo_createStructureChapters # Redefine absolute path to changed directory. MANUAL_CHANGED_DIRS=${MANUAL_BASEDIR} diff --git a/Scripts/Functions/Help/Texinfo/texinfo_deleteCrossReferences.sh b/Scripts/Functions/Help/Texinfo/texinfo_deleteCrossReferences.sh index f5a3d16..dbbd981 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_deleteCrossReferences.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_deleteCrossReferences.sh @@ -42,7 +42,7 @@ function texinfo_deleteCrossReferences { fi # Build the node string using entry location. - local NODE="$(${MANUAL_BACKEND}_getEntryNode "$MANUAL_ENTRY")" + local NODE="$(texinfo_getEntryNode "$MANUAL_ENTRY")" # Define regular expression patterns for texinfo cross reference # commands. diff --git a/Scripts/Functions/Help/Texinfo/texinfo_deleteEntry.sh b/Scripts/Functions/Help/Texinfo/texinfo_deleteEntry.sh index 61fe3ff..897722e 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_deleteEntry.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_deleteEntry.sh @@ -38,7 +38,7 @@ function texinfo_deleteEntry { # Once the documentation entry is deleted, the section menu # and nodes definition files are updated to keep manual in a # consistent state. - ${MANUAL_BACKEND}_deleteEntrySection + texinfo_deleteEntrySection elif [[ ${MANUAL_CHAP[$MANUAL_DOCENTRY_ID]} != '' ]];then @@ -52,7 +52,7 @@ function texinfo_deleteEntry { # Actualization of section definition files must be done one # at a time because menu entries related to section # definitions are updated one at a time. - ${MANUAL_BACKEND}_deleteEntryChapter + texinfo_deleteEntryChapter elif [[ ${MANUAL_DIRN[$MANUAL_DOCENTRY_ID]} != '' ]];then @@ -60,7 +60,7 @@ function texinfo_deleteEntry { # to either a section or chapter but a manual name only. In # this configuration the entire manual directory is marked for # deletion, and that way processed. - ${MANUAL_BACKEND}_deleteEntryManual + texinfo_deleteEntryManual else cli_printMessage "`gettext "The parameters you provided are not supported."`" --as-error-line diff --git a/Scripts/Functions/Help/Texinfo/texinfo_deleteEntryChapter.sh b/Scripts/Functions/Help/Texinfo/texinfo_deleteEntryChapter.sh index 8fc4b90..64983c8 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_deleteEntryChapter.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_deleteEntryChapter.sh @@ -48,8 +48,8 @@ function texinfo_deleteEntryChapter { svn del ${MANUAL_CHAPTER_DIR} --quiet # Update chapter menu and nodes inside manual structure. - ${MANUAL_BACKEND}_updateChapterMenu --delete-entry - ${MANUAL_BACKEND}_updateChapterNodes + texinfo_updateChapterMenu --delete-entry + texinfo_updateChapterNodes # Loop through section entries retrived from chapter, before # deleting it, in order to remove cross references pointing to @@ -59,7 +59,7 @@ function texinfo_deleteEntryChapter { # pointing to non-existent section entries will be transformed in # order for documentors to advertise the section entry state. for MANUAL_ENTRY in $MANUAL_ENTRIES;do - ${MANUAL_BACKEND}_deleteCrossReferences ${MANUAL_ENTRY} + texinfo_deleteCrossReferences ${MANUAL_ENTRY} done } diff --git a/Scripts/Functions/Help/Texinfo/texinfo_deleteEntrySection.sh b/Scripts/Functions/Help/Texinfo/texinfo_deleteEntrySection.sh index c162287..f681282 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_deleteEntrySection.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_deleteEntrySection.sh @@ -41,6 +41,6 @@ function texinfo_deleteEntrySection { svn del $MANUAL_ENTRY --quiet # Update section menu, nodes and cross references. - ${MANUAL_BACKEND}_updateStructureSection "${MANUAL_ENTRY}" --delete + texinfo_updateStructureSection "${MANUAL_ENTRY}" --delete } diff --git a/Scripts/Functions/Help/Texinfo/texinfo_editEntry.sh b/Scripts/Functions/Help/Texinfo/texinfo_editEntry.sh index e9f4d8d..0a85fae 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_editEntry.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_editEntry.sh @@ -36,7 +36,7 @@ function texinfo_editEntry { # its chapter directory. There is no more levels deep so it is # possible to perform a direct chapter verification here. if [[ ! -a $(dirname $MANUAL_ENTRY)/chapter.${MANUAL_EXTENSION} ]];then - ${MANUAL_BACKEND}_createChapter + texinfo_createChapter fi # Print confirmation question. @@ -46,7 +46,7 @@ function texinfo_editEntry { # Update section menu, nodes and cross references based on # changes in order for manual structure to remain cosistent. - ${MANUAL_BACKEND}_updateStructureSection "$MANUAL_ENTRY" + texinfo_updateStructureSection "$MANUAL_ENTRY" # Use default text editor to write changes on documentation entry. $EDITOR $MANUAL_ENTRY @@ -60,7 +60,7 @@ function texinfo_editEntry { # documentation entry. This way, if there is any change in the # section menu definition, it will be visible to you on # edition. - ${MANUAL_BACKEND}_makeSeeAlso "$MANUAL_ENTRY" + texinfo_makeSeeAlso "$MANUAL_ENTRY" # Use default text editor to write changes on documentation entry. $EDITOR $MANUAL_ENTRY @@ -70,7 +70,7 @@ function texinfo_editEntry { # expansion to realize in the section menu definition, it be # applied right now. Don't see a reason for waiting until the # next edition for expansions to happen. - ${MANUAL_BACKEND}_makeSeeAlso "$MANUAL_ENTRY" + texinfo_makeSeeAlso "$MANUAL_ENTRY" fi diff --git a/Scripts/Functions/Help/Texinfo/texinfo_makeSeeAlso.sh b/Scripts/Functions/Help/Texinfo/texinfo_makeSeeAlso.sh index d159a87..310d95d 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_makeSeeAlso.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_makeSeeAlso.sh @@ -117,11 +117,11 @@ function texinfo_makeSeeAlso { # Redefine list's entry based on translation marker definition. if [[ $LIST_TYPE =~ '^menu$' ]];then for CHILD_ENTRY in $CHILD_ENTRIES;do - LIST_ENTRIES="* $(${MANUAL_BACKEND}_getEntryNode "$CHILD_ENTRY")::\n${LIST_ENTRIES}" + LIST_ENTRIES="* $(texinfo_getEntryNode "$CHILD_ENTRY")::\n${LIST_ENTRIES}" done elif [[ $LIST_TYPE =~ '^(itemize|enumerate)$' ]];then for CHILD_ENTRY in $CHILD_ENTRIES;do - LIST_ENTRIES="@item @ref{$(${MANUAL_BACKEND}_getEntryNode "$CHILD_ENTRY")}\n${LIST_ENTRIES}" + LIST_ENTRIES="@item @ref{$(texinfo_getEntryNode "$CHILD_ENTRY")}\n${LIST_ENTRIES}" done else # When an translation marker isn't recognize, go on with diff --git a/Scripts/Functions/Help/Texinfo/texinfo_renameCrossReferences.sh b/Scripts/Functions/Help/Texinfo/texinfo_renameCrossReferences.sh index 87ed739..0ffc543 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_renameCrossReferences.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_renameCrossReferences.sh @@ -30,8 +30,8 @@ function texinfo_renameCrossReferences { local -a REPLACE # Build source and target node definitions. - local NODE_SRC="$(${MANUAL_BACKEND}_getEntryNode "$MANUAL_ENTRY_SRC")" - local NODE_DST="$(${MANUAL_BACKEND}_getEntryNode "$MANUAL_ENTRY_DST")" + local NODE_SRC="$(texinfo_getEntryNode "$MANUAL_ENTRY_SRC")" + local NODE_DST="$(texinfo_getEntryNode "$MANUAL_ENTRY_DST")" # Define regular expression pattern and its replacement for node # definitions that have been previously removed. diff --git a/Scripts/Functions/Help/Texinfo/texinfo_renameEntry.sh b/Scripts/Functions/Help/Texinfo/texinfo_renameEntry.sh index 958c780..8497a31 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_renameEntry.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_renameEntry.sh @@ -42,7 +42,7 @@ function texinfo_renameEntry { # location has been renamed, the section menu, nodes and cross # references are updated to keep consistency inside the # manual. - ${MANUAL_BACKEND}_renameEntrySection + texinfo_renameEntrySection elif [[ ${MANUAL_CHAP[$MANUAL_DOCENTRY_ID]} != '' ]] \ && [[ ${MANUAL_CHAP[(($MANUAL_DOCENTRY_ID + 1))]} != '' ]];then @@ -53,7 +53,7 @@ function texinfo_renameEntry { # location has been renamed, the chapter and section menu, # nodes and cross references are updated to keep consistency # inside the manual. - ${MANUAL_BACKEND}_renameEntryChapter + texinfo_renameEntryChapter elif [[ ${MANUAL_DIRN[$MANUAL_DOCENTRY_ID]} != '' ]] \ && [[ ${MANUAL_DIRN[(($MANUAL_DOCENTRY_ID + 1))]} != '' ]] ;then @@ -64,7 +64,7 @@ function texinfo_renameEntry { # location. Once the source manual has been renamed, chapter # and section menu, nodes and cross references are updated to # keep consistency inside the manual. - ${MANUAL_BACKEND}_renameEntryManual + texinfo_renameEntryManual else cli_printMessage "`gettext "The parameters you provided are not supported."`" --as-error-line diff --git a/Scripts/Functions/Help/Texinfo/texinfo_renameEntryChapter.sh b/Scripts/Functions/Help/Texinfo/texinfo_renameEntryChapter.sh index 9820e07..f0ab38c 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_renameEntryChapter.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_renameEntryChapter.sh @@ -27,12 +27,12 @@ function texinfo_renameEntryChapter { # Copy section source entry to target location. - ${MANUAL_BACKEND}_copyEntryChapter + texinfo_copyEntryChapter # Delete section source entry. - ${MANUAL_BACKEND}_deleteEntryChapter + texinfo_deleteEntryChapter # Rename menu, nodes and cross references related entries. - ${MANUAL_BACKEND}_renameCrossReferences + texinfo_renameCrossReferences } diff --git a/Scripts/Functions/Help/Texinfo/texinfo_renameEntryManual.sh b/Scripts/Functions/Help/Texinfo/texinfo_renameEntryManual.sh index e1015d8..4a4f7f9 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_renameEntryManual.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_renameEntryManual.sh @@ -27,10 +27,10 @@ function texinfo_renameEntryManual { # Copy section source entry to target location. - ${MANUAL_BACKEND}_copyEntryManual + texinfo_copyEntryManual # Delete section source entry. - ${MANUAL_BACKEND}_deleteEntryManual + texinfo_deleteEntryManual # Redefine absolute paths to changed directories. This is # required in order for `cli_commitRepoChanges' to be aware of diff --git a/Scripts/Functions/Help/Texinfo/texinfo_renameEntrySection.sh b/Scripts/Functions/Help/Texinfo/texinfo_renameEntrySection.sh index ca6b2e7..a0694cb 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_renameEntrySection.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_renameEntrySection.sh @@ -27,12 +27,12 @@ function texinfo_renameEntrySection { # Copy section source entry to target location. - ${MANUAL_BACKEND}_copyEntrySection + texinfo_copyEntrySection # Delete section source entry. - ${MANUAL_BACKEND}_deleteEntrySection + texinfo_deleteEntrySection # Rename menu, nodes and cross references related entries. - ${MANUAL_BACKEND}_renameCrossReferences + texinfo_renameCrossReferences } diff --git a/Scripts/Functions/Help/Texinfo/texinfo_restoreCrossReferences.sh b/Scripts/Functions/Help/Texinfo/texinfo_restoreCrossReferences.sh index d6a9055..cc7713d 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_restoreCrossReferences.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_restoreCrossReferences.sh @@ -46,7 +46,7 @@ function texinfo_restoreCrossReferences { fi # Build the node string using entry location. - local NODE="$(${MANUAL_BACKEND}_getEntryNode "$MANUAL_ENTRY")" + local NODE="$(texinfo_getEntryNode "$MANUAL_ENTRY")" # Define regular expression patterns to match removed message # format produced by message_removeCrossReferences function. diff --git a/Scripts/Functions/Help/Texinfo/texinfo_searchIndex.sh b/Scripts/Functions/Help/Texinfo/texinfo_searchIndex.sh index d02cd36..5b1b145 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_searchIndex.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_searchIndex.sh @@ -28,7 +28,7 @@ function texinfo_searchIndex { # Verify manual output files and, if they don't exist, create # them. if [[ ! -f ${MANUAL_BASEFILE}.info.bz2 ]];then - ${MANUAL_BACKEND}_updateOutputFiles + texinfo_updateOutputFiles fi # Print separator line. diff --git a/Scripts/Functions/Help/Texinfo/texinfo_searchNode.sh b/Scripts/Functions/Help/Texinfo/texinfo_searchNode.sh index 23f58c4..1004858 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_searchNode.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_searchNode.sh @@ -29,13 +29,13 @@ function texinfo_searchNode { # Verify documentation entry and, if it doesn't exist, prompt out # its creation. if [[ ! -f "$MANUAL_ENTRY" ]];then - ${MANUAL_BACKEND}_editEntry + texinfo_editEntry fi # Verify manual output files and, if they don't exist, create # them. if [[ ! -f ${MANUAL_BASEFILE}.info.bz2 ]];then - ${MANUAL_BACKEND}_updateOutputFiles + texinfo_updateOutputFiles fi # Print separator line. @@ -45,12 +45,12 @@ function texinfo_searchNode { cli_printMessage "${MANUAL_BASEFILE}.info.bz2" --as-reading-line # Define manual node that will be read. - local MANUAL_NODE="$(${MANUAL_BACKEND}_getEntryNode "$MANUAL_ENTRY")" + local MANUAL_NODE="$(texinfo_getEntryNode "$MANUAL_ENTRY")" # Verify manual node that will be read. When the manual name is # the only value passed as documentation entry, then use the `Top' # node as manual node to be read. - if [[ $MANUAL_NODE =~ $(${MANUAL_BACKEND}_getEntryNode "$MANUAL_NAME") ]];then + if [[ $MANUAL_NODE =~ $(texinfo_getEntryNode "$MANUAL_NAME") ]];then MANUAL_NODE='Top' fi diff --git a/Scripts/Functions/Help/Texinfo/texinfo_updateOutputFiles.sh b/Scripts/Functions/Help/Texinfo/texinfo_updateOutputFiles.sh index cf329f2..97f4472 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_updateOutputFiles.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_updateOutputFiles.sh @@ -40,12 +40,12 @@ function texinfo_updateOutputFiles { # paths incorrectly. pushd ${CLI_WRKCOPY} > /dev/null - ${MANUAL_BACKEND}_updateOutputFileInfo - ${MANUAL_BACKEND}_updateOutputFileXhtml - ${MANUAL_BACKEND}_updateOutputFileXml - ${MANUAL_BACKEND}_updateOutputFileDocbook - ${MANUAL_BACKEND}_updateOutputFilePdf - ${MANUAL_BACKEND}_updateOutputFilePlaintext + texinfo_updateOutputFileInfo + texinfo_updateOutputFileXhtml + texinfo_updateOutputFileXml + texinfo_updateOutputFileDocbook + texinfo_updateOutputFilePdf + texinfo_updateOutputFilePlaintext # Remove the working copy root directory from directory stack. popd > /dev/null diff --git a/Scripts/Functions/Help/Texinfo/texinfo_updateSectionMenu.sh b/Scripts/Functions/Help/Texinfo/texinfo_updateSectionMenu.sh index 54c1c34..2e71a5c 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_updateSectionMenu.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_updateSectionMenu.sh @@ -49,7 +49,7 @@ function texinfo_updateSectionMenu { fi # Build node information used inside chapter menu. - local MENUNODE=$(${MANUAL_BACKEND}_getEntryNode "$MANUAL_ENTRY") + local MENUNODE=$(texinfo_getEntryNode "$MANUAL_ENTRY") # Define menu entry using texinfo style and node information as # reference. diff --git a/Scripts/Functions/Help/Texinfo/texinfo_updateSectionNodes.sh b/Scripts/Functions/Help/Texinfo/texinfo_updateSectionNodes.sh index ec136d7..0914c93 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_updateSectionNodes.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_updateSectionNodes.sh @@ -37,8 +37,8 @@ function texinfo_updateSectionNodes { local NODE=$(echo "${NODE}" | sed -r 's!:! !g') local INCL=$(echo "${NODE}" | sed -r 's! !/!' | sed -r 's! !-!g' | sed -r 's!/(.+)!/\L\1!').${MANUAL_EXTENSION} - local SECT=$(${MANUAL_BACKEND}_getEntryTitle "$NODE") - local CIND=$(${MANUAL_BACKEND}_getEntryIndex "$NODE") + local SECT=$(texinfo_getEntryTitle "$NODE") + local CIND=$(texinfo_getEntryIndex "$NODE") # Create texinfo section file using templates, only if the # section file doesn't exist and hasn't been marked for diff --git a/Scripts/Functions/Help/Texinfo/texinfo_updateStructureSection.sh b/Scripts/Functions/Help/Texinfo/texinfo_updateStructureSection.sh index f12d059..6545524 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_updateStructureSection.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_updateStructureSection.sh @@ -131,10 +131,10 @@ function texinfo_updateStructureSection { # nodes and related cross-references). for MANUAL_ENTRY in ${MANUAL_ENTRIES};do cli_printMessage "${MANUAL_ENTRY}" --as-response-line - ${MANUAL_BACKEND}_${ACTIONNAM_SECMENU} - ${MANUAL_BACKEND}_updateSectionNodes - ${MANUAL_BACKEND}_makeSeeAlso "${MANUAL_ENTRY}" - ${MANUAL_BACKEND}_${ACTIONNAM_CROSREF} "${MANUAL_ENTRY}" + texinfo_${ACTIONNAM_SECMENU} + texinfo_updateSectionNodes + texinfo_makeSeeAlso "${MANUAL_ENTRY}" + texinfo_${ACTIONNAM_CROSREF} "${MANUAL_ENTRY}" done } diff --git a/Scripts/Functions/Help/help.sh b/Scripts/Functions/Help/help.sh index 06a0061..ea84efd 100755 --- a/Scripts/Functions/Help/help.sh +++ b/Scripts/Functions/Help/help.sh @@ -69,14 +69,14 @@ function help { local MANUAL_DOCENTRY_ID=0 # Interpret option arguments passed through the command-line. - ${CLI_FUNCNAME}_getOptions + help_getOptions # Redefine arrays related to documentation entries using # non-option arguments passed through the command-line. At this # point all options have been removed from ARGUMENTS and # non-option arguments remain. Evaluate ARGUMENTS to retrive the # information related documentation entries from there. - ${CLI_FUNCNAME}_getEntries + help_getEntries # Execute backend-specific documentation tasks for each # documentation entry specified in the command-line, individually.