4da029 Update manual_updateMenu.sh.

Authored and Committed by areguera 13 years ago
Scripts/Bash/Cli/Functions/Manual/manual_updateMenu.sh CHANGED
@@ -35,15 +35,13 @@ function manual_updateMenu {
35
35
# Specify which action to do inside chapter's menu.
36
36
local ACTION="$1"
37
37
38
- # Build the menu line related to the entry being processed
38
+ # Build the menu node related to the entry being processed
39
39
# currently.
40
- local MENULINE=$(echo "$ENTRY" \
41
- | cut -d / -f8- \
40
+ local MENUNODE=$(echo "$ENTRY" | cut -d / -f8- | tr '/' ' ' \
41
+ | sed 's!\.texi$!!')
42
- | tr '/' ' ' \
43
- | sed -r "s/(chapter-intro\.texi|\.texi)$//")
44
42
45
43
# Give format to menu line using texinfo style.
46
- MENULINE="* $MENULINE::"
44
+ local MENULINE="* ${MANUAL_CHAPTER_NAME} $MENUNODE::"
47
45
48
46
# Define chapter's menu. Remove `@menu', `@end menu', and empty lines
49
47
# from output.