42939a
Move help_getEntry to Backends/Texinfo/texinfo_getEntry.sh.
@@ -1,9 +1,9 @@
|
|
1
1
|
|
2
2
|
#
|
3
|
-
#
|
4
|
-
# on a location specified. Location specification can be both
|
5
|
-
# value (ACTIONVAL) variable or a value passed as first
|
6
|
-
# parameter.
|
3
|
+
# texinfo_getEntry.sh -- This function builds a documentation entry
|
4
|
+
# based on a location specified. Location specification can be both
|
5
|
+
# action value (ACTIONVAL) variable or a value passed as first
|
6
|
+
# positional parameter.
|
7
7
|
#
|
8
8
|
# Copyright (C) 2009, 2010, 2011 The CentOS Project
|
9
9
|
#
|
@@ -25,7 +25,7 @@
|
|
25
25
|
# $Id$
|
26
26
|
# ----------------------------------------------------------------------
|
27
27
|
|
28
|
-
function
|
28
|
+
function texinfo_getEntry {
|
29
29
|
|
30
30
|
# Define variables as local to avoid conflicts outside.
|
31
31
|
local ENTRY=''
|
@@ -54,7 +54,7 @@ function help_getEntry {
|
|
54
54
|
# `--read' cannot be applied to paths provided inside
|
55
55
|
# trunk/Manuals/ such actions need to be performed manually.
|
56
56
|
if [[ ${ENTRY} =~ "\.${FLAG_BACKEND}$" ]];then
|
57
|
-
ENTRY=$(echo ${ENTRY} | sed 's!trunk/Manuals/!!')
|
57
|
+
ENTRY=$(echo ${ENTRY} | sed 's!trunk/Manuals/Texinfo/!!')
|
58
58
|
else
|
59
59
|
ENTRY=$(dirname Directories/${ENTRY})/$(basename $LOCATION).${FLAG_BACKEND}
|
60
60
|
fi
|