Introduction to Enscript
Enscript converts ASCII text files
to PostScript, HTML, RTF, ANSI and overstrikes.
This package is known to build and work properly using an LFS-7.6
platform.
Package Information
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/Enscript
Installation of Enscript
Install Enscript by running the
following commands:
./configure --prefix=/usr \
--sysconfdir=/etc/enscript \
--localstatedir=/var \
--with-media=Letter &&
make &&
pushd docs &&
makeinfo --plaintext -o enscript.txt enscript.texi &&
popd
If you have texlive-20140525 installed, you can create
Postscript and PDF documentation by issuing: make -C docs ps pdf.
To test the results, issue: make
check.
Now, as the root
user:
make install &&
install -v -m755 -d /usr/share/doc/enscript-1.6.6 &&
install -v -m644 README* *.txt docs/*.txt \
/usr/share/doc/enscript-1.6.6
If you built Postscript and PDF documentation, install it using the
following command as the root
user:
install -v -m644 docs/*.{dvi,pdf,ps} \
/usr/share/doc/enscript-1.6.6
Command Explanations
--sysconfdir=/etc/enscript
:
This switch puts configuration data in /etc/enscript
instead of /usr/etc
.
--localstatedir=/var
: This
switch sets the directory for runtime data to /var
instead of /usr/var
.
--with-media=Letter
: This
switch sets the medium format to letter size instead of the A4
default.