9b3e93
Update help_updateChaptersMenu.sh.
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
#
|
3
|
-
# help_updateChaptersMenu.sh
|
3
|
+
# help_updateChaptersMenu.sh -- This function updates chapter menu.
|
4
4
|
#
|
5
5
|
# Copyright (C) 2009-2011 Alain Reguera Delgado
|
6
6
|
#
|
@@ -28,10 +28,10 @@ function help_updateChaptersMenu {
|
|
28
28
|
local MENUCHAPTERS=''
|
29
29
|
|
30
30
|
# Build menu of chapters. The Index node is not included as other
|
31
|
-
# nodes are. The Index node is defined
|
32
|
-
# file (repository.texi
|
33
|
-
# correctly, the Index line in the menu should remain,
|
34
|
-
# other node exist.
|
31
|
+
# nodes are. The Index node is defined inside the master texinfo
|
32
|
+
# file (repository.texi) as an included file. To create the final
|
33
|
+
# .info file correctly, the Index line in the menu should remain,
|
34
|
+
# even no other node exist.
|
35
35
|
if [[ -f ${MANUAL_BASEFILE}-menu.texi ]];then
|
36
36
|
MENUCHAPTERS=$(cat ${MANUAL_BASEFILE}-menu.texi \
|
37
37
|
| egrep -v "^(@(end )?menu$|\* Index::.*)$")
|
@@ -59,7 +59,7 @@ function help_updateChaptersMenu {
|
|
59
59
|
|
60
60
|
# Organize menu of chapters alphabetically and verify that no
|
61
61
|
# duplicated line be included on the list.
|
62
|
-
MENUCHAPTERS=$(echo "${MENUCHAPTERS}" | sort | uniq
|
62
|
+
MENUCHAPTERS=$(echo "${MENUCHAPTERS}" | sort | uniq)
|
63
63
|
|
64
64
|
# Give format to final menu output.
|
65
65
|
MENUCHAPTERS="@menu
|