|
|
4c79b5 |
#!/bin/bash
|
|
|
4c79b5 |
#
|
|
|
993f6a |
# texinfo_getEntry.sh -- This function builds a documentation entry
|
|
|
edaa9d |
# based on location specified as first positional parameter.
|
|
|
4c79b5 |
#
|
|
|
3b0984 |
# Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG
|
|
|
fa95b1 |
#
|
|
|
fa95b1 |
# This program is free software; you can redistribute it and/or modify
|
|
|
fa95b1 |
# it under the terms of the GNU General Public License as published by
|
|
|
dcd347 |
# the Free Software Foundation; either version 2 of the License, or (at
|
|
|
dcd347 |
# your option) any later version.
|
|
|
fa95b1 |
#
|
|
|
74a058 |
# This program is distributed in the hope that it will be useful, but
|
|
|
74a058 |
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
4c79b5 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
4c79b5 |
# General Public License for more details.
|
|
|
4c79b5 |
#
|
|
|
4c79b5 |
# You should have received a copy of the GNU General Public License
|
|
|
4c79b5 |
# along with this program; if not, write to the Free Software
|
|
|
dcd347 |
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
7ac5a5 |
#
|
|
|
4c79b5 |
# ----------------------------------------------------------------------
|
|
|
418249 |
# $Id$
|
|
|
4c79b5 |
# ----------------------------------------------------------------------
|
|
|
4c79b5 |
|
|
|
993f6a |
function texinfo_getEntry {
|
|
|
4c79b5 |
|
|
|
071959 |
local MANUAL_ENTRY=''
|
|
|
edaa9d |
local MANUAL_SECTION_NAME=''
|
|
|
edaa9d |
local MANUAL_SECTION_NAMES="$@"
|
|
|
638bf8 |
|
|
|
edaa9d |
# Loop through list of section names.
|
|
|
edaa9d |
for MANUAL_SECTION_NAME in $MANUAL_SECTION_NAMES;do
|
|
|
4c79b5 |
|
|
|
edaa9d |
# Define absolute path to documentation entry.
|
|
|
edaa9d |
MANUAL_ENTRY=${MANUAL_BASEDIR}/${MANUAL_CHAPTER_NAME}/${MANUAL_SECTION_NAME}.${MANUAL_EXTENSION}
|
|
|
4c79b5 |
|
|
|
1f4dd5 |
# Output entry's absolute path.
|
|
|
071959 |
echo ${MANUAL_ENTRY}
|
|
|
4c79b5 |
|
|
|
1f4dd5 |
done
|
|
|
edaa9d |
|
|
|
4c79b5 |
}
|