[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS: a2ps/etc a2ps_cfg.in,1.2,1.3
From: |
Franck Lombardi <address@hidden> |
Subject: |
CVS: a2ps/etc a2ps_cfg.in,1.2,1.3 |
Date: |
Wed, 18 Sep 2002 06:04:41 -0400 |
Update of /cvsroot/a2ps/a2ps/etc
In directory subversions:/tmp/cvs-serv23834/etc
Modified Files:
a2ps_cfg.in
Log Message:
Add html2ps delegation if netscape don't run.
Check if netscape and html2ps is installed and check if netscape support
remote-command.
Index: a2ps_cfg.in
===================================================================
RCS file: /cvsroot/a2ps/a2ps/etc/a2ps_cfg.in,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** a2ps_cfg.in 22 Mar 2002 14:53:13 -0000 1.2
--- a2ps_cfg.in 18 Sep 2002 10:04:39 -0000 1.3
***************
*** 255,258 ****
--- 255,262 ----
########## HTML files
+ # Delegated to html2ps
+ @COM_PSUTILS@@address@hidden: 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:
***************
*** 264,276 ****
# 4. It asks the user if s/he wants to replace an existing output file,
# so rm before.
! @address@hidden: Netscape html:ps \
! @COM_PSUTILS@ rm -f #f0; \
! @COM_PSUTILS@ if echo '$f' | grep '^/' >/dev/null 2>&1; then \
! @COM_PSUTILS@ ${NETSCAPE:-netscape} -noraise -remote 'openfile($f)'; \
! @COM_PSUTILS@ else \
! @COM_PSUTILS@ ${NETSCAPE:-netscape} -noraise -remote 'openfile(%d/$f)'; \
! @COM_PSUTILS@ fi && \
! @COM_PSUTILS@ ${NETSCAPE:-netscape} -noraise -remote
'saveas(#f0,postscript)' && \
! @COM_PSUTILS@ #{del.psselect} #f0 | #{del.psnup}
########## PDF files
--- 268,287 ----
# 4. It asks the user if s/he wants to replace an existing output file,
# so rm before.
! @COM_PSUTILS@@address@hidden: 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- CVS: a2ps/etc a2ps_cfg.in,1.2,1.3,
Franck Lombardi <address@hidden> <=
- Prev by Date:
CVS: a2ps ChangeLog,1.25,1.26 NEWS,1.3,1.4 configure.in,1.7,1.8
- Next by Date:
CVS: a2ps/sheets specc.ssh,NONE,1.1.2.1 Makefile.am,1.1.1.1,1.1.1.1.2.1 sheets.map,1.1.1.1,1.1.1.1.2.1
- Previous by thread:
CVS: a2ps ChangeLog,1.25,1.26 NEWS,1.3,1.4 configure.in,1.7,1.8
- Next by thread:
CVS: a2ps/sheets specc.ssh,NONE,1.1.2.1 Makefile.am,1.1.1.1,1.1.1.1.2.1 sheets.map,1.1.1.1,1.1.1.1.2.1
- Index(es):