a2ps-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS: a2ps/etc a2ps_cfg.in,1.1.1.1,1.1.1.1.2.1


From: Franck Lombardi <address@hidden>
Subject: CVS: a2ps/etc a2ps_cfg.in,1.1.1.1,1.1.1.1.2.1
Date: Wed, 18 Sep 2002 06:04:23 -0400

Update of /cvsroot/a2ps/a2ps/etc
In directory subversions:/tmp/cvs-serv23786/etc

Modified Files:
      Tag: a2ps-4-1x
        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.1.1.1
retrieving revision 1.1.1.1.2.1
diff -C2 -r1.1.1.1 -r1.1.1.1.2.1
*** a2ps_cfg.in 4 Mar 2002 18:46:24 -0000       1.1.1.1
--- a2ps_cfg.in 18 Sep 2002 10:04:21 -0000      1.1.1.1.2.1
***************
*** 257,260 ****
--- 257,264 ----
  
  ########## 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:
***************
*** 266,278 ****
  # 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
--- 270,289 ----
  # 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]