|
|
d3e9d7 |
#!/bin/bash
|
|
|
d3e9d7 |
#
|
|
|
0211a4 |
# help_updateOutputFilePlaintext.sh -- This function exports
|
|
|
5285d6 |
# documentation manual to plain-text 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
|
|
|
dcd347 |
# the Free Software Foundation; either version 2 of the License, or (at
|
|
|
dcd347 |
# your option) any later version.
|
|
|
fa95b1 |
#
|
|
|
dcd347 |
# This program is distributed in the hope that it will be useful,
|
|
|
dcd347 |
# but 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.
|
|
|
d3e9d7 |
# ----------------------------------------------------------------------
|
|
|
d3e9d7 |
# $Id$
|
|
|
d3e9d7 |
# ----------------------------------------------------------------------
|
|
|
d3e9d7 |
|
|
|
0211a4 |
function help_updateOutputFilePlaintext {
|
|
|
d3e9d7 |
|
|
|
d3e9d7 |
# Output action message.
|
|
|
f8a83e |
cli_printMessage "${MANUAL_BASEFILE}.txt.bz2" 'AsUpdatingLine'
|
|
|
d3e9d7 |
|
|
|
d3e9d7 |
# Update plaintext output directory.
|
|
|
5285d6 |
/usr/bin/makeinfo --plaintext \
|
|
|
5285d6 |
${MANUAL_BASEFILE}.texi --output=${MANUAL_BASEFILE}.txt
|
|
|
d3e9d7 |
|
|
|
f8a83e |
# Compress plaintext output file.
|
|
|
f8a83e |
if [[ -f ${MANUAL_BASEFILE}.txt ]];then
|
|
|
f8a83e |
bzip2 ${MANUAL_BASEFILE}.txt --force
|
|
|
f8a83e |
fi
|
|
|
f8a83e |
|
|
|
d3e9d7 |
}
|