01ae87 Update manual_getActions.sh.

Authored and Committed by areguera 13 years ago
Scripts/Bash/centos-art/Functions/Manual/manual_getActions.sh CHANGED
@@ -80,7 +80,7 @@ function manual_getActions {
80
80
;;
81
81
82
82
--to )
83
- FLAG_TO="$2"
83
+ FLAG_TO="$(manual_getEntry "$2")"
84
84
shift 2
85
85
;;
86
86
@@ -97,6 +97,13 @@ function manual_getActions {
97
97
# Define documentation entry.
98
98
ENTRY=$(manual_getEntry)
99
99
100
+ # Define documentation entry directory. This is the directory
101
+ # where the entry file is stored.
102
+ ENTRY_DIR=$(dirname ${ENTRY} | sed -r 's!\.texi$!!')
103
+
104
+ # Define documentation entry file (without extension).
105
+ ENTRY_FILE=$(basename ${ENTRY} | sed -r 's!\.texi$!!')
106
+
100
107
# Define directory for documentation manual. This is the place the
101
108
# specific documentation manual we are working with is stored in.
102
109
MANUAL_DIR=$(echo $ENTRY | cut -d / -f-7)
@@ -123,13 +130,13 @@ function manual_getActions {
123
130
# with.
124
131
MANUAL_CHA_NAME=$(basename "$MANUAL_DIR_CHAPTER")
125
132
126
- # Define base name for documentation manual files. This is the
127
- # main file name used to build texinfo related files (.info, .pdf,
128
- # .xml, etc.).
129
- MANUAL_BASEFILE=$(cli_getFilesList "${MANUAL_DIR}" ".*${MANUAL_NAME}\.texi")
133
+ # Define base name for documentation manual files (without
134
+ # extension). This is the main file name used to build texinfo
135
+ # related files (.info, .pdf, .xml, etc.).
136
+ MANUAL_BASEFILE=$(cli_getFilesList "${MANUAL_DIR}" ".*${MANUAL_NAME}\.texi" | sed 's!\.texi$!!' )
130
137
131
138
# Set action preable.
132
- cli_printActionPreamble "$MANUAL_BASEFILE"
139
+ cli_printActionPreamble "${MANUAL_BASEFILE}.texi"
133
140
134
141
# Syncronize changes between the working copy and the central
135
142
# repository to bring down changes.