diff -Naur html2ps-1.0b7/html2ps html2ps-1.0b7.oden/html2ps --- html2ps-1.0b7/html2ps 2010-05-07 13:22:12.000000000 +0200 +++ html2ps-1.0b7.oden/html2ps 2012-10-05 15:21:08.160360245 +0200 @@ -26,8 +26,9 @@ # Set the name of the global configuration file. See the installation notes # and manual page for more details on configuration files. -$globrc='/it/sw/share/www/lib/html2ps/html2psrc'; -$ug='/it/sw/share/www/lib/html2ps/html2ps.html'; +$globrc='@CONFDIR@/html2psrc'; +$ug='@DOCDIR@/html2ps.html'; + $conf=<<'EOR'; @html2ps { @@ -480,6 +481,17 @@ &pagedef; ($pagew,$pageh)=split /\s+/, $AT_page{'size'} if(defined $AT_page{'size'}); +# try autoconfiguration (basing on paths known from PLD packages) +eval "require Image::Magick"; $package{'PerlMagick'}=!$@; +$package{'ImageMagick'} = ( -x "/usr/X11R6/bin/mogrify" ); +$package{'pbmplus'} = ( -x "/usr/bin/giftoppm" ); +$package{'netpbm'} = ( -x "/usr/bin/giftopnm" ); +$package{'djpeg'} = ( -x "/usr/bin/djpeg" ); +$package{'Ghostscript'} = ( -x "/usr/bin/gs" ); +$package{'TeX'} = ( -x "/usr/bin/tex" ); +$package{'dvips'} = ( -x "/usr/bin/dvips" ); +eval "require LWP::UserAgent"; $package{'libwww-perl'}=!$@; + require Image::Magick if($package{'PerlMagick'}); $geturl=$package{'geturl'}; $ulanch="f"; diff -Naur html2ps-1.0b7/html2ps.1 html2ps-1.0b7.oden/html2ps.1 --- html2ps-1.0b7/html2ps.1 2010-05-07 13:22:12.000000000 +0200 +++ html2ps-1.0b7.oden/html2ps.1 2012-10-05 15:20:33.983358793 +0200 @@ -354,6 +354,9 @@ .SH FILES .TP +@CONFDIR@/html2psrc +Global configuration file, see html2psrc(5). +.TP $HOME/.html2psrc User configuration file, see html2psrc(5). .SH SEE ALSO diff -Naur html2ps-1.0b7/html2psrc html2ps-1.0b7.oden/html2psrc --- html2ps-1.0b7/html2psrc 1970-01-01 01:00:00.000000000 +0100 +++ html2ps-1.0b7.oden/html2psrc 2012-10-05 15:20:33.983358793 +0200 @@ -0,0 +1,18 @@ +/* Global configuration file for html2ps */ + +@html2ps { + package { + path: "/usr/bin"; + } + paper { + type: A4; + } + hyphenation { + en { + file: "/usr/share/texmf/tex/generic/hyphen/hyphen.tex"; + } + pl { + file: "/usr/share/texmf/tex/generic/hyphen/plhyph.tex"; + } + } +}