From 3e2ccee33fd311ed8c79e590b87605e89d77d0a9 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jul 23 2011 01:42:27 +0000 Subject: Update `texinfo_makeSeeAlso.sh': - Don't use the MANUAL_CHAPTER_DIR variable here. It could be problematic when no chapter name is provided to `centos-art.sh' script as non-option parameter in the command-line. Start using `$(dirname ${MANUAL_ENTRY})' instead. It is safer. --- diff --git a/Scripts/Functions/Help/Texinfo/texinfo_makeSeeAlso.sh b/Scripts/Functions/Help/Texinfo/texinfo_makeSeeAlso.sh index a13a7de..94eedd6 100755 --- a/Scripts/Functions/Help/Texinfo/texinfo_makeSeeAlso.sh +++ b/Scripts/Functions/Help/Texinfo/texinfo_makeSeeAlso.sh @@ -47,7 +47,7 @@ function texinfo_makeSeeAlso { # Define list of child entries we'll use as reference to build the # menu nodes. Reverse the output here to produce the correct value # based on menu nodes definition set further. - local CHILD_ENTRIES=$(cli_getFilesList ${MANUAL_CHAPTER_DIR} \ + local CHILD_ENTRIES=$(cli_getFilesList $(dirname ${MANUAL_ENTRY}) \ --pattern="${PATTERN}-[[:alnum:]]+\.${MANUAL_EXTENSION}" | sort -r | uniq ) # Define menu nodes using section entries as reference.