diff options
author | Masayuki Hatta (mhatta) <mhatta@debian.org> | 2008-01-03 09:38:51 -0500 |
---|---|---|
committer | Masayuki Hatta (mhatta) <mhatta@debian.org> | 2008-01-03 09:38:51 -0500 |
commit | 95b1e9489b8bed332041631a1545b43f26a1503b (patch) | |
tree | 48c16557869e78ef16a5d9ed080c53cc14f8059a /etc |
Import a2ps_4.14.orig.tar.gz
[dgit import orig a2ps_4.14.orig.tar.gz]
Diffstat (limited to 'etc')
-rw-r--r-- | etc/Makefile.am | 48 | ||||
-rw-r--r-- | etc/Makefile.in | 493 | ||||
-rw-r--r-- | etc/README.in | 41 | ||||
-rw-r--r-- | etc/a2ps-site.cfg.in | 73 | ||||
-rw-r--r-- | etc/a2ps_cfg.in | 429 |
5 files changed, 1084 insertions, 0 deletions
diff --git a/etc/Makefile.am b/etc/Makefile.am new file mode 100644 index 0000000..b0cdcac --- /dev/null +++ b/etc/Makefile.am @@ -0,0 +1,48 @@ +## -*- Makefile -*- +## Makefile for a2ps' etc library directory. + +ogonkifydir=$(datadir)/ogonkify +libpath = $(pkgdatadir)/sheets:$(pkgdatadir)/ps:$(pkgdatadir)/encoding:$(pkgdatadir)/afm:$(ogonkifydir)/afm:$(pkgdatadir)/ppd:$(pkgdatadir)/fonts:$(ogonkifydir)/fonts:$(pkgdatadir) + +pkgdata_DATA = README + +dsysconf = $(DESTDIR)$(sysconfdir) + +EXTRA_DIST = README.in + +all-local: a2ps.cfg + +install-data-local: a2ps.cfg + $(mkinstalldirs) $(dsysconf) + @if test -r $(dsysconf)/$(PACKAGE).cfg; then \ + if cmp $(dsysconf)/$(PACKAGE).cfg $(top_builddir)/etc/$(PACKAGE).cfg 2> /dev/null ; then \ + echo "$(dsysconf)/$(PACKAGE).cfg has not changed"; \ + else \ + echo; \ + echo "*******************"; \ + echo "* Warning: $(dsysconf)/$(PACKAGE).cfg exist."; \ + echo "* It has been moved as $(dsysconf)/$(PACKAGE).cfg.old"; \ + echo "*******************"; \ + echo; \ + mv $(dsysconf)/$(PACKAGE).cfg $(dsysconf)/$(PACKAGE).cfg.old; \ + $(INSTALL_DATA) $(top_builddir)/etc/$(PACKAGE).cfg $(dsysconf)/$(PACKAGE).cfg ; \ + fi \ + else \ + $(INSTALL_DATA) $(top_builddir)/etc/$(PACKAGE).cfg $(dsysconf)/$(PACKAGE).cfg; \ + fi + @test -r $(dsysconf)/a2ps-site.cfg || \ + $(INSTALL_DATA) $(top_builddir)/etc/a2ps-site.cfg $(dsysconf)/a2ps-site.cfg ; + +uninstall-local: + rm -f $(dsysconf)/$(PACKAGE).cfg $(dsysconf)/$(PACKAGE)-site.cfg + +DISTCLEANFILES = a2ps.cfg README + +# Building the correct a2ps.cfg +a2ps.cfg: a2ps_cfg Makefile + sed "s!@libpath@!$(libpath)!" a2ps_cfg > a2ps.cfg + +# Building a time stamp to know the version. +README: README.in Makefile + sed "s!@date@!`date`!g;s!@version@!$(VERSION)!g" \ + $(srcdir)/README.in > README diff --git a/etc/Makefile.in b/etc/Makefile.in new file mode 100644 index 0000000..0fe7d4c --- /dev/null +++ b/etc/Makefile.in @@ -0,0 +1,493 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = etc +DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ + $(srcdir)/a2ps-site.cfg.in $(srcdir)/a2ps_cfg.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/a2_psutils.m4 \ + $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/file.m4 \ + $(top_srcdir)/m4/fp_echo.m4 $(top_srcdir)/m4/fullpath.m4 \ + $(top_srcdir)/m4/gccwarn.m4 $(top_srcdir)/m4/gettext.m4 \ + $(top_srcdir)/m4/gperf-check.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/isc-posix.m4 \ + $(top_srcdir)/m4/lex.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ + $(top_srcdir)/m4/libpaper.m4 $(top_srcdir)/m4/lpr.m4 \ + $(top_srcdir)/m4/m4.m4 $(top_srcdir)/m4/malloc.m4 \ + $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbstate_t.m4 \ + $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/prereq.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/protos.m4 \ + $(top_srcdir)/m4/realloc.m4 $(top_srcdir)/m4/rename.m4 \ + $(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/strcasecmp.m4 \ + $(top_srcdir)/m4/strftim.m4 $(top_srcdir)/m4/termios.m4 \ + $(top_srcdir)/m4/tterm.m4 $(top_srcdir)/m4/uintmax_t.m4 \ + $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/m4/winsz.m4 \ + $(top_srcdir)/m4/xstrtoumax.m4 $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/auxdir/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = a2ps_cfg a2ps-site.cfg +SOURCES = +DIST_SOURCES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(pkgdatadir)" +pkgdataDATA_INSTALL = $(INSTALL_DATA) +DATA = $(pkgdata_DATA) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALLOCA = @ALLOCA@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +COM_DISPLAY = @COM_DISPLAY@ +COM_LATEX = @COM_LATEX@ +COM_PS2PDF = @COM_PS2PDF@ +COM_PSUTILS = @COM_PSUTILS@ +COM_TEXI = @COM_TEXI@ +COM_acroread = @COM_acroread@ +COM_acroread4 = @COM_acroread4@ +COM_bzip = @COM_bzip@ +COM_bzip2 = @COM_bzip2@ +COM_convert = @COM_convert@ +COM_distill = @COM_distill@ +COM_dvips = @COM_dvips@ +COM_ghostview = @COM_ghostview@ +COM_grog = @COM_grog@ +COM_gv = @COM_gv@ +COM_gzip = @COM_gzip@ +COM_html2ps = @COM_html2ps@ +COM_latex = @COM_latex@ +COM_makeinfo = @COM_makeinfo@ +COM_netscape = @COM_netscape@ +COM_pdf2ps = @COM_pdf2ps@ +COM_ps2pdf = @COM_ps2pdf@ +COM_psnup = @COM_psnup@ +COM_psselect = @COM_psselect@ +COM_tex = @COM_tex@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EMACS = @EMACS@ +EMACSLOADPATH = @EMACSLOADPATH@ +ENCODING = @ENCODING@ +EXEEXT = @EXEEXT@ +EXTENSIONS_FALSE = @EXTENSIONS_FALSE@ +EXTENSIONS_TRUE = @EXTENSIONS_TRUE@ +EXTRA_CFLAGS = @EXTRA_CFLAGS@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +FILE_LINK = @FILE_LINK@ +GMSGFMT = @GMSGFMT@ +GNU_PACKAGE = @GNU_PACKAGE@ +GPERF = @GPERF@ +GREP = @GREP@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLLIBS = @INTLLIBS@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIBVERSION = @LIBVERSION@ +LN_S = @LN_S@ +LPR = @LPR@ +LPR_QUEUE_OPTION = @LPR_QUEUE_OPTION@ +LTALLOCA = @LTALLOCA@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +M4 = @M4@ +MAKEINFO = @MAKEINFO@ +MEDIUM = @MEDIUM@ +MKINSTALLDIRS = @MKINSTALLDIRS@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PERL = @PERL@ +POSUB = @POSUB@ +PSFONT_PATH = @PSFONT_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +U = @U@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +YACC = @YACC@ +YFLAGS = @YFLAGS@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +acroread = @acroread@ +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +bzip = @bzip@ +bzip2 = @bzip2@ +convert = @convert@ +datadir = @datadir@ +datarootdir = @datarootdir@ +distill = @distill@ +docdir = @docdir@ +dvidir = @dvidir@ +dvips = @dvips@ +exec_prefix = @exec_prefix@ +file_prog = @file_prog@ +ghostview = @ghostview@ +grog = @grog@ +gv = @gv@ +gzip = @gzip@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +html2ps = @html2ps@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +latex = @latex@ +libdir = @libdir@ +libexecdir = @libexecdir@ +lispdir = @lispdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +makeinfo = @makeinfo@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +netscape = @netscape@ +oldincludedir = @oldincludedir@ +pdf2ps = @pdf2ps@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +ps2pdf = @ps2pdf@ +psdir = @psdir@ +psnup = @psnup@ +psselect = @psselect@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +subdirs = @subdirs@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +tex = @tex@ +ogonkifydir = $(datadir)/ogonkify +libpath = $(pkgdatadir)/sheets:$(pkgdatadir)/ps:$(pkgdatadir)/encoding:$(pkgdatadir)/afm:$(ogonkifydir)/afm:$(pkgdatadir)/ppd:$(pkgdatadir)/fonts:$(ogonkifydir)/fonts:$(pkgdatadir) +pkgdata_DATA = README +dsysconf = $(DESTDIR)$(sysconfdir) +EXTRA_DIST = README.in +DISTCLEANFILES = a2ps.cfg README +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu etc/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu etc/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +a2ps_cfg: $(top_builddir)/config.status $(srcdir)/a2ps_cfg.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ +a2ps-site.cfg: $(top_builddir)/config.status $(srcdir)/a2ps-site.cfg.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool +uninstall-info-am: +install-pkgdataDATA: $(pkgdata_DATA) + @$(NORMAL_INSTALL) + test -z "$(pkgdatadir)" || $(mkdir_p) "$(DESTDIR)$(pkgdatadir)" + @list='$(pkgdata_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + echo " $(pkgdataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgdatadir)/$$f'"; \ + $(pkgdataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgdatadir)/$$f"; \ + done + +uninstall-pkgdataDATA: + @$(NORMAL_UNINSTALL) + @list='$(pkgdata_DATA)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(pkgdatadir)/$$f'"; \ + rm -f "$(DESTDIR)$(pkgdatadir)/$$f"; \ + done +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(DATA) all-local +installdirs: + for dir in "$(DESTDIR)$(pkgdatadir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-libtool + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-data-local install-pkgdataDATA + +install-exec-am: + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-info-am uninstall-local uninstall-pkgdataDATA + +.PHONY: all all-am all-local check check-am clean clean-generic \ + clean-libtool distclean distclean-generic distclean-libtool \ + distdir dvi dvi-am html html-am info info-am install \ + install-am install-data install-data-am install-data-local \ + install-exec install-exec-am install-info install-info-am \ + install-man install-pkgdataDATA install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ + uninstall-info-am uninstall-local uninstall-pkgdataDATA + + +all-local: a2ps.cfg + +install-data-local: a2ps.cfg + $(mkinstalldirs) $(dsysconf) + @if test -r $(dsysconf)/$(PACKAGE).cfg; then \ + if cmp $(dsysconf)/$(PACKAGE).cfg $(top_builddir)/etc/$(PACKAGE).cfg 2> /dev/null ; then \ + echo "$(dsysconf)/$(PACKAGE).cfg has not changed"; \ + else \ + echo; \ + echo "*******************"; \ + echo "* Warning: $(dsysconf)/$(PACKAGE).cfg exist."; \ + echo "* It has been moved as $(dsysconf)/$(PACKAGE).cfg.old"; \ + echo "*******************"; \ + echo; \ + mv $(dsysconf)/$(PACKAGE).cfg $(dsysconf)/$(PACKAGE).cfg.old; \ + $(INSTALL_DATA) $(top_builddir)/etc/$(PACKAGE).cfg $(dsysconf)/$(PACKAGE).cfg ; \ + fi \ + else \ + $(INSTALL_DATA) $(top_builddir)/etc/$(PACKAGE).cfg $(dsysconf)/$(PACKAGE).cfg; \ + fi + @test -r $(dsysconf)/a2ps-site.cfg || \ + $(INSTALL_DATA) $(top_builddir)/etc/a2ps-site.cfg $(dsysconf)/a2ps-site.cfg ; + +uninstall-local: + rm -f $(dsysconf)/$(PACKAGE).cfg $(dsysconf)/$(PACKAGE)-site.cfg + +# Building the correct a2ps.cfg +a2ps.cfg: a2ps_cfg Makefile + sed "s!@libpath@!$(libpath)!" a2ps_cfg > a2ps.cfg + +# Building a time stamp to know the version. +README: README.in Makefile + sed "s!@date@!`date`!g;s!@version@!$(VERSION)!g" \ + $(srcdir)/README.in > README +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/etc/README.in b/etc/README.in new file mode 100644 index 0000000..d9012db --- /dev/null +++ b/etc/README.in @@ -0,0 +1,41 @@ +The last installation in this directory occurred the + @date@ +for GNU a2ps version @version@. + +The content of this directory (unless reorganized by the local +installer) is: + +afm/ +---- +Adobe Font Metrics files, which give metric information on the +characters of a font. It also contains a shell script, +`makefontmap.sh' which should be run when you install new fonts, or +set the library path so that a2ps sees new fonts. + +encoding/ +--------- +Encoding Description Files, which give mandatory information to +process various charsets. + +fonts/ +------ +Extra fonts. For instance for non Latin charsets, or to replace +fonts that lacks some characters in some charsets. + +ogonkify/ +--------- +Set of files needed by ogonkify. There is actually nothing a2ps +uses itself here. + +ppd/ +--------- +Printer Description Files, which give information on how to ask +your printer special features, the fonts they know etc. + +ps/ +--- +The PostScript routines, headers etc. + +sheets/ +------- +The various style sheets for pretty printing. diff --git a/etc/a2ps-site.cfg.in b/etc/a2ps-site.cfg.in new file mode 100644 index 0000000..9d97b10 --- /dev/null +++ b/etc/a2ps-site.cfg.in @@ -0,0 +1,73 @@ +# a2ps-site.cfg -*- Makefile -*- +# +# This file is included from a2ps.cfg +# + +# In this file should be defined your specific values you want to keep +# for other installation (future) installation of a2ps. + +################################################################# +# 1) System dependent parameters # +################################################################# + +# Default encoding +Options: --encoding=@ENCODING@ + +# Default medium +Options: --medium=@MEDIUM@ + +################################################################# +# 2) Your printers # +################################################################# + +# By default, produce Level 1 PostScript. +# Currently it only means to consider only the 13 level 1 standard +# fonts, and not the 35 standard level 2 fonts. +DefaultPPD: level1 + +# NOTE: +# Because sending a file to a printer is system dependent and because +# this file is meant to be system independent, there are two variables +# defined in a2ps.cfg you should use here. +# - #{lp.default} +# Its value is typically `lp' or `lpr'. +# - #{lp} +# Its value is typically `lp -d' or `lpr -P'. Immediately after +# #{lp} there should be the name of the printer. +# + +### DefaultPrinter +# DefaultPrinter is the printer which is called upon `a2ps -d'. +DefaultPrinter: | #{lp.default} + +### UnknownPrinter +# The `UnknownPrinter' is the command used when the user specified +# 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 + +### 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 +# be used. +#Printer: arlette level2 + +# dominique is a level 2 PostScript _without_ Duplex support. +# Here I *want* a special command, not that of the UnknownPrinter. +# We use the shell script psmandup to simulate Duplex. +#Printer: dominique level2 | #?d#psmandup -n|## #{lp} dominique + +# This is just to show that any command can be used. Instead of +# printing, the output is piped in `wc'. +#Printer: wc | wc -l + +# You can also save in a file if you wish. +#Printer: netscape >netscape.ps + +# 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 diff --git a/etc/a2ps_cfg.in b/etc/a2ps_cfg.in new file mode 100644 index 0000000..8f30643 --- /dev/null +++ b/etc/a2ps_cfg.in @@ -0,0 +1,429 @@ +# a2ps.cfg -*- Makefile -*- +# +# System configuration file for a2ps. +# Copyright (c) 1988-1993 Miguel Santana +# Copyright (c) 1995-2000 Akim Demaille, Miguel Santana +# + +# +# This file is part of a2ps. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; see the file COPYING. If not, write to +# the Free Software Foundation, 59 Temple Place - Suite 330, +# Boston, MA 02111-1307, USA. +# + +# +# This file defines everything a2ps needs to know about +# -- your system (access to the printers) +# It is strongly suggested that you check these parameters +# are adapted to your system. +# -- customizable features +# +# It is related to the whole system, i.e., it is not the file +# the users should modify themselves for their own preferences. +# ~/.a2ps/a2psrc is the user's own configuration file, which +# is read after this file. +# + + +################################################################# +# 1) Definition of some media # +# (Must be defined before --medium) # +################################################################# +# Medium: name, width height [llx lly urx ury] +Medium: A3 842 1190 +Medium: A4 595 842 +Medium: A5 420 595 +Medium: B4 729 1032 +Medium: B5 516 729 +Medium: Letter 612 792 +Medium: Legal 612 1008 +Medium: Tabloid 792 1224 +Medium: Ledger 1224 792 +Medium: Statement 396 612 +Medium: Executive 540 720 +Medium: Folio 612 936 +Medium: Quarto 610 780 +Medium: 10x14 720 1008 + +# Desk Jet users: bigger margins +Medium: A4dj 595 842 24 50 571 792 +Medium: Letterdj 612 792 24 40 588 752 + + + +################################################################# +# 2) Path to the a2ps resource # +################################################################# +# Default path where a2ps dropped its library files. +LibraryPath: @libpath@ + +# It may be useful to extend it so that a2ps can see some +# TeX or X11 resources: it likes AFM files and PF[AB] files. +#AppendLibraryPath: foo + + +################################################################# +# 3) Default settings # +################################################################# +# Two virtual pages per sheet +Options: -2 + +# Set automatic pretty-printing on (set to "plain" for off) +Options: --pretty-print + +# By default, single sided printing. +Options: -s1 + +# Name of the document is the list of files +# (Don't put too many of them: it breaks some PS interpreters) +Options: --title='#10!f|$n|, |' + +# Header is the client of the job +Options: --header=%a + +# Title of the page is the (short) name of the current file +# or the first tagged text if there is +Options: --center-title=#?1|$t1|$n| + +# Left part of the title is the mod. date of the file +# or empty is there is a tag2 +Options: --left-title='#?2||$e $T|' + +# Right part of the title is the page number +# or tag2 if there is +Options: --right-title='#?2|$t2|$Q|' + +# If in landscape, print date on the left hand side +# If portrait, then print date on recto, and sheet # on verso +Options: --left-footer=#?l!%E!#?v|%E|%s./%s#|! + +# Center footer is the list of files on this sheet if landscape +Options: --footer='#?l|#!s-$f-, -||' + +# If in landscape, print date on the right hand side +# If portrait, then print date on verso, and sheet # on recto +Options: --right-footer=#?l!%s./%s#!#?v|%s./%s#|%E|! + +# We want the %%Page comments to be instructive. +# There are two predefined choices: #{pl.short} and #{pl.long} +PageLabelFormat: #{pl.short} + +# Report the number of lines which were wrapped. +Variable: cfg.wrapped 1 + +############################################################### +# 4) Preconfigured Variables # +############################################################### +# +# Some variables for the delegations +# + +# Calling AcrobatReader for PDF to PostScript. +@COM_acroread@Variable: del.acroread \ +@COM_acroread@ @acroread@ -toPostScript + +# Acrobat 4 lets us specify the medium, which is precious sometimes, and +# that we should shrink the document to the size of the medium. +@COM_acroread4@Variable: del.acroread \ +@COM_acroread4@ @acroread@ -toPostScript -size "#wx#h" -shrink + +# Passes the options to psnup. A problem with psnup is that even if +# no service is requested, the PostScript is altered. There are such +# problems with dvips. A symptom is that the figure are spread on +# several pages. To avoid that, with ``-1'', we use cat instead of +# psnup -1. +# The files (in and out) are to be given if not stdin and stdout. +Variable: del.psnup \ + #?o!cat!@psnup@ -#v #?V||-q| #?j|-d|| #?r||-c| -w#w -h#h! + +# Passes to psselect for PS page selection. +Variable: del.psselect \ + #?p!@psselect@ #?V||-q| -p#p!cat! + +# Passes to psselect, and then psnup +Variable: del.psselnup #{del.psselect} | #{del.psnup} + +# Calls to dvips. The sequence waits for the file name, and +# produces on stdout. +Variable: del.dvips @dvips@ #?p|-pp#p|| #?V||-q| -T#wpt,#hpt -f + +# We use a modified texi2dvi which accepts -b (--batch), -c (--clean), +# and -l (--language). +Variable: del.texi2dvi \ + texi2dvi4a2ps -b -c #?V|--verbose|--quiet| 1>&2 + +# a2ps will be called upon decompressed files. +Variable: del.a2ps\ + a2ps #?p|-a#p|| #?V|-v2|-q| -#v -o- --stdin=$N + +# convert, part of ImageMagick, is used for many image formats +# If you want the name of the file to be printed along with the picture, +# add `-label $f' +Variable: del.imagick @convert@ -page #wx#h + + +# +# Variables for special printers. +# + +# Either GV (prefered) or Ghostview will be used as the "display" printer +# We give -dNOPLATFONTS so that real fonts are used +# (Strange results appear with Ogonkify's fonts for instance). +@COM_ghostview@Variable: ghostview @ghostview@ --arguments=-dNOPLATFONTS +@COM_gv@Variable: ghostview @gv@ -antialias --arguments=-dNOPLATFONTS + +# Used for the `pdf' printer. +# Use as `#{ps2pdf} INPUT OUTPUT'. +# @COM_ps2pdf@Variable: ps2pdf gs -g"#wx#h" -r72 -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$N.pdf -c save pop -f #f0 +@COM_ps2pdf@Variable: ps2pdf ps2pdf -g"#wx#h" -r72 +@COM_distill@Variable: ps2pdf distill -pairs -pagesize #w #h pts + +# +# Some macro for ToC or page label +# + +# Useful for the page label format: +# pl.short: just the page intervals +Variable: pl.short #!s|$p-|,| +# pl.long: file name and page intervals +Variable: pl.long #!s|$n $p-|,| + +# The default layout for Table of Contents +Variable: toc \\Keyword{Table of Contents}\n\ +#-1!f\ +|$2# \\keyword{$-.20n} sheets $3s< to $3s> ($2s#) pages \ +$3p<-$3p> $4l# lines\n|| + + + +################################################################# +# 5) Preconfigured delegations # +################################################################# +# +# Delegations are ways to hand off the processing of some +# files to other filters. +# +# When delegating, interesting meta sequences are +# $f -- current filename, i.e. the one to delegate. +# Note that $f expands exactly to the file, which means +# that in most cases you need '$f' (with the two quotes) +# to avoid both (i) problems with space in names, and +# (ii) other shell active characters, such as $. +# Yeah, I know, we need something more elaborated in case +# the file has quotes ' in it :-( +# #f0 to #f9 -- temporary filename you can use. +# rm is done by a2ps itself. No need to quote. +# + +########## Compressed files +# A compressed file should be decompressed and processed by a2ps +# A consequence is that the decompressed file may be delegated. +@COM_gzip@Delegation: gzip-a2ps gzip:ps @gzip@ -cd '$f' | #{del.a2ps} + +@COM_gzip@Delegation: gzip-a2ps compress:ps @gzip@ -cd '$f' | #{del.a2ps} + +@COM_bzip@Delegation: bzip-a2ps bzip:ps @bzip@ -cd '$f' | #{del.a2ps} + +@COM_bzip2@Delegation: bzip2-a2ps bzip2:ps @bzip2@ -cd '$f' | #{del.a2ps} + +########## DVI files +# Pass DVI files to dvips. +# * A problem with dvips is that even on failure it dumps its +# prologue, hence it looks like a success (output is produced). To +# avoid that, we use an auxiliary files and conditional call to psnup +# instead of piping. +# * It tries to figure if the doc is landscape (use of seminar for +# instance) by looking for `landscape' in the first strings of +# the DVI file. +@COM_PSUTILS@@COM_dvips@Delegation: dvips dvi:ps\ +@COM_PSUTILS@@COM_dvips@ if strings '$f' | sed 10q | fgrep landscape > /dev/null 2>&1; then \ +@COM_PSUTILS@@COM_dvips@ #{del.dvips} -T#hpt,#wpt '$f' -o #f0 && #?o|cat|#{del.psnup} -r| #f0; \ +@COM_PSUTILS@@COM_dvips@ else \ +@COM_PSUTILS@@COM_dvips@ #{del.dvips} '$f' -o #f0 && #{del.psnup} #f0; \ +@COM_PSUTILS@@COM_dvips@ fi + +########## HTML files +# Delegated to html2ps +@COM_PSUTILS@@COM_html2ps@Delegation: html2ps html:ps \ +@COM_PSUTILS@@COM_html2ps@ html2ps -D -o #f0 '$f' && #{del.psselect} #f0 | #{del.psnup} +# Delegated to Netscape +# Pass HTML to Netscape, hoping that there is an Netscape running... +# Tricks: +# 1. Netscape can't output on stdout, hence use a tmp file (#f0) +# 2. openfile refuses relative paths, so prepend cwd (%d) when relative +# 3. remote 'openfile' -remote 'saveas' is bad, because it is handled +# asynchronously, and the output can correspond to a previously +# loaded page (not that of openfile). So run Netscape twice. +# 4. It asks the user if s/he wants to replace an existing output file, +# so rm before. +@COM_PSUTILS@@COM_netscape@Delegation: Netscape html:ps \ +@COM_PSUTILS@@COM_netscape@ if test -L /home/kcnarf/.netscape/lock; then \ +@COM_PSUTILS@@COM_netscape@ rm -f #f0; \ +@COM_PSUTILS@@COM_netscape@ if echo '$f' | grep '^/' >/dev/null 2>&1; then \ +@COM_PSUTILS@@COM_netscape@ ${NETSCAPE:-netscape} -noraise -remote 'openfile($f)'; \ +@COM_PSUTILS@@COM_netscape@ else \ +@COM_PSUTILS@@COM_netscape@ ${NETSCAPE:-netscape} -noraise -remote 'openfile(%d/$f)'; \ +@COM_PSUTILS@@COM_netscape@ fi && \ +@COM_PSUTILS@@COM_netscape@ ${NETSCAPE:-netscape} -noraise -remote 'saveas(#f0,postscript)' && \ +@COM_PSUTILS@@COM_netscape@ #{del.psselect} #f0 | #{del.psnup}; \ +@COM_PSUTILS@@COM_netscape@ elif (which html2ps) >/dev/null 2>&1; then \ +@COM_PSUTILS@@COM_netscape@ html2ps -D -o #f0 '$f' && #{del.psselect} #f0 | #{del.psnup}; \ +@COM_PSUTILS@@COM_netscape@ else \ +@COM_PSUTILS@@COM_netscape@ echo "cannot delegate html: Netscape and html2ps are not available" >&2; \ +@COM_PSUTILS@@COM_netscape@ exit 1; \ +@COM_PSUTILS@@COM_netscape@ fi + +########## PDF files +# Delegated to pdf2ps, GS 5.10 +@COM_PSUTILS@@COM_pdf2ps@Delegation: pdf2ps pdf:ps \ +@COM_PSUTILS@@COM_pdf2ps@ @pdf2ps@ '$f' #f0 && #{del.psselect} #f0 | #{del.psnup} +# Delegated to AcrobatReader +@COM_PSUTILS@@COM_acroread@Delegation: Acrobat pdf:ps \ +@COM_PSUTILS@@COM_acroread@ #{del.acroread} < '$f' | #{del.psselnup} + +########## PostScript files +# Pass the PostScript files to psnup and psselect +@COM_PSUTILS@Delegation: PsNup ps:ps fixps #?V||-q| '$f' | #{del.psselnup} + +########## ROFF files +# Pass the roff files to groff. Ask grog how groff should be called. +# Use fixps to ensure there is a %%BeginSetup/%%EndSetup section. +@COM_PSUTILS@@COM_grog@Delegation: Groff roff:ps \ +@COM_PSUTILS@@COM_grog@ eval `grog -Tps '$f'` | fixps #?V!!-q! | #{del.psselnup} + +########## TeX files, supposed to be LaTeX files in fact +# Use texi2dvi for TeX file +@COM_PSUTILS@@COM_LATEX@Delegation: texi2dvi tex:ps \ +@COM_PSUTILS@@COM_LATEX@ #{del.texi2dvi} -l latex -o #f0 '$f' && #{del.dvips} -f #f0 | #{del.psnup} + +########## Texinfo files +# Use texi2dvi for Texinfo file +# In a near future, we might no longer have to specify --expand, but +# currently, it is safer. +@COM_PSUTILS@@COM_TEXI@Delegation: texi2dvi texinfo:ps \ +@COM_PSUTILS@@COM_TEXI@ #{del.texi2dvi} -e -o #f0 -l texinfo '$f' && #{del.dvips} -f #f0 | #{del.psnup} + +######################## Using ImageMagick for images +########## GIF files +@COM_PSUTILS@@COM_convert@Delegation: ImageMagick gif:ps\ +@COM_PSUTILS@@COM_convert@ #{del.imagick} 'gif:$f' ps:- | #{del.psselnup} + +########## JPEG files +@COM_PSUTILS@@COM_convert@Delegation: ImageMagick jpeg:ps\ +@COM_PSUTILS@@COM_convert@ #{del.imagick} 'jpeg:$f' ps:- | #{del.psselnup} + +########## PNG files +@COM_PSUTILS@@COM_convert@Delegation: ImageMagick png:ps\ +@COM_PSUTILS@@COM_convert@ #{del.imagick} 'png:$f' ps:- | #{del.psselnup} + +########## TIFF files +@COM_PSUTILS@@COM_convert@Delegation: ImageMagick tiff:ps\ +@COM_PSUTILS@@COM_convert@ #{del.imagick} 'tiff:$f' ps:- | #{del.psselnup} + +########## XBM files +@COM_PSUTILS@@COM_convert@Delegation: ImageMagick xbm:ps\ +@COM_PSUTILS@@COM_convert@ #{del.imagick} 'xbm:$f' ps:- | #{del.psselnup} + +########## XPM files +@COM_PSUTILS@@COM_convert@Delegation: ImageMagick xpm:ps\ +@COM_PSUTILS@@COM_convert@ #{del.imagick} 'xpm:$f' ps:- | #{del.psselnup} + + +################################################################# +# 6) Some interesting UserOptions/Printers # +################################################################# +# Print like an old fashioned ASCII printer +UserOption: lp -1m -Eplain -B --borders=no + +# Print mails. Strip some headers. +UserOption: mail -gEmail --strip=1 +UserOption: longmail -gEmail --strip=1 -2R + +# Printing a booklet + +# To print a booklet, we must be sure to output Simplex, and 1 up. +# Install the lp hook for booklets. +UserOption: book -1Dlp.hook=#{lp.hook.book} -s1 + +# This variable defines a hook for `lp'. The output is piped into +# psbook in order to print a booklet. +Variable: lp.hook.book \ +#?o! psbook #?V,,-q, | psnup -2 #?V,,-q, | psset -nt | \ +! echo "Cannot be used with more than two pages per sheet." >&2 ; exit 1! + + + +# Some special setpagedevice requests +UserOption: manual -SManualFeed:true +# Force a2ps to issue a Simplex request. +UserOption: s1 -SDuplex:false +UserOption: simplex -SDuplex:false + +# Nice display, i.e., use colors, and one virtual per page. +UserOption: display -1 --prolog=color -Pdisplay + +# It is better not to pipe in ghostview +@COM_DISPLAY@Printer: display | cat > #f0 && #{ghostview} #f0 + +# Save into a file named after the input files. +# E.g. a2ps src/foo.c => foo.ps +Printer: file > $N.#. + +# Dry run. Helpful to know the page usage etc. +Printer: void > /dev/null + +# Produce PDF. +# It is better not to output in two up, or even worse: in landscape. +@COM_PS2PDF@Printer: pdf | cat >#f0 && #{ps2pdf} #f0 $N.pdf +UserOption: pdf -1 -P pdf --prologue=color + +# We define the DefaultPrinter and the Unknown Printer just in case +# a2ps-site.cfg fails to define them. Under normal circumstances +# these entries *will* be overridden. + +# First, the default printer (option -d, no argument) +DefaultPrinter: | #{lp.default} + +# Second, a printer unknown to a2ps (option -P, argument is #o) +UnknownPrinter: | #{lp} #o + + + +################################################################# +# 7) Your local settings # +################################################################# +# How to call file(1), and if possible, follow the links +FileCommand: @FILE_LINK@ + + +# Define a variable to call lp/lpr on the default printer, preceded +# with a hook to post-process PostScript (to call psbook for instance). +# Something like `#{lp.hook} lp #{lp.options}' +# or `#{lp.hook} lpr #{lp.options}'. +Variable: lp.default #{lp.hook} @LPR@ #{lp.options} + + +# The same, but when a printer is specified. +# Something like `#{lp.hook} lp #{lp.options} -d' +# or `#{lp.hook} lpr #{lp.options} -P'. +Variable: lp #{lp.hook} @LPR@ #{lp.options} @LPR_QUEUE_OPTION@ + + +# To avoid that the next installation of a2ps destroys your +# definitions, local customization would be better done in +# a2ps-site.cfg. + +Include: a2ps-site.cfg |