Blame Scripts/Functions/Help/help_updateOutputFileInfo.sh

d3e9d7
#!/bin/bash
d3e9d7
#
0211a4
# help_updateOutputFileInfo.sh -- This function exports
5285d6
# documentation manual to info format.
d3e9d7
#
9f5f2e
# Copyright (C) 2009-2011 Alain Reguera Delgado
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
fa95b1
# the Free Software Foundation; either version 2 of the License, or
fa95b1
# (at your option) any later version.
fa95b1
#
d3e9d7
# This program is distributed in the hope that it will be useful, but
d3e9d7
# 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
d3e9d7
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
d3e9d7
# USA.
d3e9d7
# ----------------------------------------------------------------------
d3e9d7
# $Id$
d3e9d7
# ----------------------------------------------------------------------
d3e9d7
0211a4
function help_updateOutputFileInfo {
d3e9d7
d3e9d7
    # Output action message.
5285d6
    cli_printMessage "${MANUAL_BASEFILE}.info.bz2" 'AsUpdatingLine'
d3e9d7
d3e9d7
    # Update info file.
5285d6
    /usr/bin/makeinfo ${MANUAL_BASEFILE}.texi --output=${MANUAL_BASEFILE}.info
d3e9d7
d3e9d7
    # Compress info file.
5285d6
    if [[ $? -eq 0 ]];then
5285d6
        bzip2 -f ${MANUAL_BASEFILE}.info
5285d6
    fi
d3e9d7
d3e9d7
}