Blame Scripts/Functions/Help/Backends/Texinfo/texinfo_updateOutputFileInfo.sh

d3e9d7
#!/bin/bash
d3e9d7
#
1afa3c
# texinfo_updateOutputFileInfo.sh -- This function exports
5285d6
# documentation manual to info format.
d3e9d7
#
2d3646
# Copyright (C) 2009, 2010, 2011 The CentOS Project
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
d3e9d7
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
d3e9d7
# General Public License for more details.
d3e9d7
#
d3e9d7
# You should have received a copy of the GNU General Public License
d3e9d7
# along with this program; if not, write to the Free Software
dcd347
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
7ac5a5
#
d3e9d7
# ----------------------------------------------------------------------
d3e9d7
# $Id$
d3e9d7
# ----------------------------------------------------------------------
d3e9d7
1afa3c
function texinfo_updateOutputFileInfo {
d3e9d7
d3e9d7
    # Output action message.
18be6e
    cli_printMessage "${MANUAL_BASEFILE}.info.bz2" --as-updating-line
d3e9d7
d3e9d7
    # Update info file.
420e77
    /usr/bin/makeinfo --output=${MANUAL_BASEFILE}.info \
420e77
        --enable-encoding \
420e77
        ${MANUAL_BASEFILE}.${FLAG_BACKEND} 
d3e9d7
d3e9d7
    # Compress info file.
5285d6
    if [[ $? -eq 0 ]];then
5285d6
        bzip2 -f ${MANUAL_BASEFILE}.info
5285d6
    fi
d3e9d7
d3e9d7
}