From 4da029cf7e14ba23a542bc980f456a904d8ab144 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Mar 01 2011 22:57:12 +0000 Subject: Update manual_updateMenu.sh. --- diff --git a/Scripts/Bash/Cli/Functions/Manual/manual_updateMenu.sh b/Scripts/Bash/Cli/Functions/Manual/manual_updateMenu.sh index d37f0dc..50c423c 100755 --- a/Scripts/Bash/Cli/Functions/Manual/manual_updateMenu.sh +++ b/Scripts/Bash/Cli/Functions/Manual/manual_updateMenu.sh @@ -35,15 +35,13 @@ function manual_updateMenu { # Specify which action to do inside chapter's menu. local ACTION="$1" - # Build the menu line related to the entry being processed + # Build the menu node related to the entry being processed # currently. - local MENULINE=$(echo "$ENTRY" \ - | cut -d / -f8- \ - | tr '/' ' ' \ - | sed -r "s/(chapter-intro\.texi|\.texi)$//") + local MENUNODE=$(echo "$ENTRY" | cut -d / -f8- | tr '/' ' ' \ + | sed 's!\.texi$!!') # Give format to menu line using texinfo style. - MENULINE="* $MENULINE::" + local MENULINE="* ${MANUAL_CHAPTER_NAME} $MENUNODE::" # Define chapter's menu. Remove `@menu', `@end menu', and empty lines # from output.