This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

a2ps-4.13-1 packaging problem


David,

The a2ps-4.13-1 package has a slight problem.  First off, the
/etc/a2ps-site.cfg should be installed by a post-install script, otherwise
it'll be overwritten on every reinstall (and you don't want that, that
file is intended for site-specific configuration).

Another couple of problems with the default a2ps-site.cfg (one reported in
<http://cygwin.com/ml/cygwin/2003-11/msg00573.html>) can be fixed by the
patch below.  HTH,
	Igor

--- /etc/a2ps-site.cfg-orig	2003-08-22 12:12:19.000000000 -0400
+++ /etc/a2ps-site.cfg	2003-11-14 10:48:20.085779200 -0500
@@ -14,7 +14,7 @@
 Options: --encoding=latin1

 # Default medium
-Options: --medium=A4
+Options: --medium=Letter

 #################################################################
 # 2)   Your printers                                           #
@@ -45,14 +45,14 @@ DefaultPrinter: | #{lp.default}
 # the name of the printer (a2ps -P <printer-name>), but <printer-name>
 # is not specified below as a special case.
 # <printer-name> is available here as `#o'.
-UnknownPrinter: | #{lp} #o
+UnknownPrinter: | #{lp} "#o"

 ### Some special printers.
 # This section is to fill only if you want to tune your system.
 # The entry `UnknownPrinter' is enough to handle any case.

 # For instance, I want to specify that arlette is a Level 2 PostScript
-# printer.  I specif no command, so the `UnknownPrinter' command will
+# printer.  I specify no command, so the `UnknownPrinter' command will
 # be used.
 #Printer: arlette level2

@@ -71,3 +71,8 @@ UnknownPrinter: | #{lp} #o
 # This example uses the fact that `$N' expands in the input file name,
 # so a2ps foo -P gzip will save the output in foo.ps.gz.
 #Printer: gzip | gzip -c > $N.#..gz
+
+# You could even show the resulting postscript on-screen
+# It is better not to pipe into ghostview
+#Variable: ghostview ghostview -dNOPLATFONTS
+#Printer: display | cat > #f0 && #{ghostview} `cygpath -w #f0`

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]