mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-03 14:47:17 +08:00
5cd0959daa
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2592 af4574ff-66df-0310-9fd7-8a98e5e911e0
149 lines
4.6 KiB
XML
149 lines
4.6 KiB
XML
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY a2ps-download-http "http://ftp.gnu.org/gnu/a2ps/a2ps-&a2ps-version;.tar.gz">
|
|
<!ENTITY a2ps-download-ftp "ftp://ftp.gnu.org/gnu/a2ps/a2ps-&a2ps-version;.tar.gz">
|
|
<!ENTITY a2ps-size "1.9 MB">
|
|
<!ENTITY a2ps-buildsize "19.2 MB">
|
|
<!ENTITY a2ps-time "0.26 SBU">
|
|
]>
|
|
|
|
<sect1 id="a2ps" xreflabel="a2ps-&a2ps-version;">
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
<?dbhtml filename="a2ps.html"?>
|
|
<title>a2ps-&a2ps-version;</title>
|
|
|
|
<sect2>
|
|
<title>Introduction to <application>a2ps</application></title>
|
|
|
|
<para><application>a2ps</application> is a filter utilitized mainly in the
|
|
background and primarily by printing scripts to convert almost
|
|
every input format into PostScript output. The application's name expands
|
|
appropriately to "all to PostScript".</para>
|
|
|
|
<sect3><title>Package information</title>
|
|
<itemizedlist spacing='compact'>
|
|
<listitem><para>Download (HTTP): <ulink
|
|
url="&a2ps-download-http;"/></para></listitem>
|
|
<listitem><para>Download (FTP): <ulink
|
|
url="&a2ps-download-ftp;"/></para></listitem>
|
|
<listitem><para>Download size: &a2ps-size;</para></listitem>
|
|
<listitem><para>Estimated Disk space required:
|
|
&a2ps-buildsize;</para></listitem>
|
|
<listitem><para>Estimated build time:
|
|
&a2ps-time;</para></listitem></itemizedlist>
|
|
</sect3>
|
|
|
|
<sect3><title>Additional downloads</title>
|
|
<itemizedlist spacing='compact'>
|
|
<listitem><para>International fonts: <ulink
|
|
url="ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-0.1.tar.gz"/>
|
|
</para></listitem></itemizedlist>
|
|
</sect3>
|
|
|
|
<sect3><title><application>a2ps</application> dependencies</title>
|
|
<sect4><title>Optional</title>
|
|
<para><xref linkend="psutils"/> and
|
|
<xref linkend="gs"/> or <xref linkend="espgs"/>
|
|
</para></sect4>
|
|
</sect3>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Installation of <application>a2ps</application></title>
|
|
|
|
|
|
<para>Install <application>a2ps</application> by running the following commands:
|
|
</para>
|
|
|
|
<screen><userinput><command>cd contrib &&
|
|
cp Makefile.in Makefile.in.orig &&
|
|
sed -e "s:emacs::" Makefile.in.orig > Makefile.in &&
|
|
cd .. &&
|
|
cp configure{,.orig} &&
|
|
sed -e 's|/usr/local/share/ghostscript|/usr/share/ghostscript|g' \
|
|
configure.orig > configure &&
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc/a2ps --localstatedir=/var \
|
|
--with-medium=letter &&
|
|
make &&
|
|
make install</command></userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Command explanations</title>
|
|
|
|
<para><screen><command>cd contrib &&
|
|
cp Makefile.in Makefile.in.orig &&
|
|
sed -e "s:emacs::" Makefile.in.orig > Makefile.in &&
|
|
cd .. &&</command></screen>
|
|
These commands eliminate the compiling and installing of the
|
|
<application>Emacs</application> script files. If you have substituted
|
|
<application>Emacs</application> for <application>Vi</application> as your
|
|
primary editor, you would want to skip these instructions.</para>
|
|
|
|
<para><screen><command>cp configure{,.orig} &&
|
|
sed -e 's|/usr/local/share/ghostscript|/usr/share/ghostscript|g' \
|
|
configure.orig > configure</command></screen>
|
|
This command modifies the configure script to search for
|
|
<application>Ghostscript</application> fonts
|
|
at the location where they were installed by the <acronym>BLFS</acronym>
|
|
instructions.</para>
|
|
|
|
<para><parameter>--sysconfdir=/etc/a2ps</parameter>: Configuration data
|
|
goes to <filename class="directory">/etc/a2ps</filename> instead of
|
|
<filename class="directory">/usr/etc</filename>.</para>
|
|
|
|
<para><parameter>--with-medium=letter</parameter>: This switch changes
|
|
the default paper format of A4 to letter. Installations that utilize A4
|
|
would eliminate this switch.</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Configuring <application>a2ps</application></title>
|
|
|
|
<sect3><title>Config files</title>
|
|
|
|
<para><filename>/etc/a2ps/a2ps.cfg</filename>, <filename>/etc/a2ps/a2ps-site.cfg</filename></para>
|
|
|
|
</sect3>
|
|
|
|
<sect3><title>Configuration Information</title>
|
|
|
|
<para>Information about configuring <application>a2ps</application> can be
|
|
found in the comments contained in the above files, and also by
|
|
running <command>info a2ps</command>.</para>
|
|
</sect3>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Contents</title>
|
|
|
|
<para>The <application>a2ps</application> package
|
|
contains <command>a2ps</command> and filter data.</para>
|
|
</sect2>
|
|
|
|
|
|
<sect2><title>Description</title>
|
|
|
|
<sect3><title>a2ps</title>
|
|
|
|
<para><command>a2ps</command> is a filter, utilized primarily by
|
|
printing scripts, that converts standard input or supported files
|
|
to PostScript.</para>
|
|
|
|
</sect3>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|