Blame Scripts/Bash/Functions/Manual/manual_updateOutputFilePdf.sh

83dbb6
#!/bin/bash
83dbb6
#
83dbb6
# manual_updateOutputFilePdf.sh -- This function updates manuals' pdf
83dbb6
# related output file.
83dbb6
#
72c8a5
# Copyright (C) 2009-2011  Alain Reguera Delgado
83dbb6
# 
83dbb6
# This program is free software; you can redistribute it and/or
83dbb6
# modify it under the terms of the GNU General Public License as
83dbb6
# published by the Free Software Foundation; either version 2 of the
83dbb6
# License, or (at your option) any later version.
83dbb6
# 
83dbb6
# This program is distributed in the hope that it will be useful, but
83dbb6
# WITHOUT ANY WARRANTY; without even the implied warranty of
83dbb6
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
83dbb6
# General Public License for more details.
83dbb6
#
83dbb6
# You should have received a copy of the GNU General Public License
83dbb6
# along with this program; if not, write to the Free Software
83dbb6
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
83dbb6
# USA.
83dbb6
# 
83dbb6
# ----------------------------------------------------------------------
83dbb6
# $Id$
83dbb6
# ----------------------------------------------------------------------
83dbb6
83dbb6
function manual_updateOutputFilePdf {
83dbb6
83dbb6
    # Output action message.
83dbb6
    cli_printMessage "`gettext "Updating manual's pdf output"`" 'AsResponseLine'
83dbb6
83dbb6
    # Check plaintext output directory.
83dbb6
    [[ ! -d ${MANUALS_DIR[7]} ]] &&  mkdir -p ${MANUALS_DIR[7]}
83dbb6
83dbb6
    # Update plaintext output directory.
83dbb6
    /usr/bin/texi2pdf ${MANUALS_FILE[1]} --output=${MANUALS_DIR[7]} --quiet
83dbb6
}