4da029
Update manual_updateMenu.sh.
@@ -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
|
38
|
+
# Build the menu node related to the entry being processed
|
39
39
|
# currently.
|
40
|
-
local
|
41
|
-
|
|
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="* $
|
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.
|