From bb317ce141f55e01a27d48d811ea1cadedb25ee3 Mon Sep 17 00:00:00 2001 From: Richard Downing Date: Fri, 4 Apr 2008 19:01:19 +0000 Subject: [PATCH] updated to a2ps-4.14, added 2008 to Copyright git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@7345 af4574ff-66df-0310-9fd7-8a98e5e911e0 --- book/bookinfo.xml | 2 +- general.ent | 6 ++-- introduction/welcome/changelog.xml | 12 +++++++ pst/ps/a2ps.xml | 52 +++++++++++++----------------- 4 files changed, 39 insertions(+), 33 deletions(-) diff --git a/book/bookinfo.xml b/book/bookinfo.xml index 86bda7c3d1..1c027c9f0f 100644 --- a/book/bookinfo.xml +++ b/book/bookinfo.xml @@ -24,7 +24,7 @@ &pubdate; - 2001-2007 + 2001-2008 BLFS Development Team diff --git a/general.ent b/general.ent index 49731e3f32..2c6cb097b4 100644 --- a/general.ent +++ b/general.ent @@ -3,11 +3,11 @@ $LastChangedBy$ $Date$ --> - + - + @@ -704,7 +704,7 @@ $Date$ - + diff --git a/introduction/welcome/changelog.xml b/introduction/welcome/changelog.xml index 66ca8f5450..56097a1b56 100644 --- a/introduction/welcome/changelog.xml +++ b/introduction/welcome/changelog.xml @@ -41,6 +41,18 @@ --> + + April 4th, 2008 + + + [richard] - updated to a2ps-4.14. + + + [richard] - changed copyright to include 2008, in bookinfo. + + + + April 3rd, 2008 diff --git a/pst/ps/a2ps.xml b/pst/ps/a2ps.xml index 63ae31c593..eb9e68354d 100644 --- a/pst/ps/a2ps.xml +++ b/pst/ps/a2ps.xml @@ -6,10 +6,10 @@ - - - - + + + + ]> @@ -79,14 +79,13 @@ a2ps Dependencies Recommended - or + , or (otherwise, a2ps will use the cat >/dev/lp0 command instead of lpr for sending its output to the printer) - + Optional , - , , or , Adobe Reader, and Ghostview + url="http://www.gnu.org/software/ghostview/ghostview.html">Ghostview + User Notes: @@ -107,19 +107,20 @@ Install a2ps by running the following commands: -sed -i "s|emacs||" contrib/Makefile.in && -sed -i 's/+0 -1/-k 1,2/' afm/make_fonts_map.sh && +sed -i 's/+0 -1/-k 1,2/' afm/make_fonts_map.sh && sed -i "s|/usr/local/share|/usr/share|" configure && -sed -i "s|char \*malloc ();|/* & */|" \ - lib/path-concat.c && ./configure --prefix=/usr \ - --sysconfdir=/etc/a2ps --localstatedir=/var \ - --enable-shared --with-medium=letter && + --sysconfdir=/etc/a2ps \ + --enable-shared \ + --with-medium=letter && make To test the results, issue: make check. The printers.tst test will fail, as there is no default - test printer. + test printer. The styles.tst also may fail, and the tests report + some inconsistencies between the generated postscript and the reference sets, at + the moment there is no explanation of this, but the failures do not appear to + affect the operation of the program. Now, as the root user: @@ -140,14 +141,8 @@ mv fonts.map.new fonts.map Command Explanations - sed -i -e "s|emacs||" contrib/Makefile.in: - This command eliminates the compiling and installing of the - Emacs script files. If you have substituted - Emacs for Vi as your - primary editor, skip this step. - sed -i 's/+0 -1/-k 1,2/' afm/make_fonts_map.sh: - The make_fonts_map.sh script to uses an option that is invalid with the + The make_fonts_map.sh script uses an option that is invalid with the version of sort installed as part of Coreutils-&lfs-coreutils-version;. If you are using an older version of Coreutils, @@ -158,10 +153,6 @@ mv fonts.map.new fonts.map Ghostscript fonts at the location where they were installed by the BLFS instructions. - sed -i -e "s|char \*malloc ();|/* & */|" - lib/path-concat.c: This command fixes a build problem with - GCC-3.4.x - --sysconfdir=/etc/a2ps: Configuration data is installed in /etc/a2ps instead of /usr/etc. @@ -169,9 +160,12 @@ mv fonts.map.new fonts.map --enable-shared: This switch enables building the dynamic liba2ps library. - --with-medium=letter: This switch changes - the default paper format of A4 to letter. Installations that utilize A4 - would eliminate this switch. + --with-medium=letter: This switch changes the + default paper format to US letter. It can either be given here or set + in /etc/a2ps/a2ps-site.cfg after installation. The + default is A4, but there are several other options, in particular: A4dj or letterdj are good + settings for HP Deskjet and other printers that need wider paper-handling + margins. See /etc/a2ps/a2ps.cfg after installation.