Introduction to Enscript
Enscript converts ASCII text files
to PostScript, HTML, RTF, ANSI and overstrikes.
Note
Development versions of BLFS may not build or run
some packages properly if LFS or dependencies have been updated
since the most recent stable versions of the books.
Package Information
Enscript Dependencies
Optional
texlive-20230313 (or install-tl-unx)
Editor Notes:
https://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-20230313 installed, you can create
Postscript and PDF documentation by issuing (does not support parallel
make):
make -j1 -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.