From 07195984eca3d68682a65e09ba9dacc1e0f09d79 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: May 30 2011 02:04:07 +0000 Subject: Update Backends/Texinfo/texinfo_getEntry.sh. Add MANUAL_ suffix to ENTRY variable names. --- diff --git a/Scripts/Functions/Help/Backends/Texinfo/texinfo_getEntry.sh b/Scripts/Functions/Help/Backends/Texinfo/texinfo_getEntry.sh index e8d889a..565a164 100755 --- a/Scripts/Functions/Help/Backends/Texinfo/texinfo_getEntry.sh +++ b/Scripts/Functions/Help/Backends/Texinfo/texinfo_getEntry.sh @@ -28,7 +28,7 @@ function texinfo_getEntry { # Define variables as local to avoid conflicts outside. - local ENTRY='' + local MANUAL_ENTRY='' local LOCATION='' local LOCATIONS='' @@ -47,7 +47,7 @@ function texinfo_getEntry { cli_checkRepoDirSource $LOCATION # Define relative path of entry, from trunk directory on. - ENTRY=$(echo $LOCATION | sed -r "s!^${HOME}/artwork/!!") + MANUAL_ENTRY=$(echo $LOCATION | sed -r "s!^${HOME}/artwork/!!") # Verify the entry relative path to find out which # documentation manual we are acting on. As convenction, @@ -56,18 +56,18 @@ function texinfo_getEntry { # documenting the repository directory structure. Otherwise, # if an entry inside trunk/Manuals/ is provided, the directory # structure provided is used as default documentation manual. - if [[ ${ENTRY} =~ "\.${FLAG_BACKEND}$" ]];then - ENTRY=$(echo ${ENTRY} | sed "s!trunk/Manuals/$(cli_getRepoName ${FLAG_BACKEND} -d)/!!") + if [[ ${MANUAL_ENTRY} =~ "\.${FLAG_BACKEND}$" ]];then + MANUAL_ENTRY=$(echo ${MANUAL_ENTRY} | sed "s!trunk/Manuals/$(cli_getRepoName ${FLAG_BACKEND} -d)/!!") else - ENTRY=$(dirname Directories/${ENTRY})/$(basename $LOCATION).${FLAG_BACKEND} + MANUAL_ENTRY=$(dirname Directories/${MANUAL_ENTRY})/$(basename $LOCATION).${FLAG_BACKEND} fi # Re-define entry to set absolute path to manuals base # directory structure. - ENTRY=${MANUAL_BASEDIR}/${ENTRY} + MANUAL_ENTRY=${MANUAL_BASEDIR}/${MANUAL_ENTRY} # Output entry's absolute path. - echo ${ENTRY} + echo ${MANUAL_ENTRY} done