9b3e93 Update help_updateChaptersMenu.sh.

Authored and Committed by areguera 13 years ago
Scripts/Functions/Help/help_updateChaptersMenu.sh CHANGED
@@ -1,6 +1,6 @@
1
1
#!/bin/bash
2
2
#
3
- # help_updateChaptersMenu.sh - This function updates chapter menu.
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 insde the master texinfo
32
- # file (repository.texi). To create the final .info file
33
- # correctly, the Index line in the menu should remain, even no
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