Package: advi
Version: 1.6.0-3
Severity: wishlist
Tags: patch

The first comment line in zadvi states:
# Launcher script for advi with support for .gz and .bz2 files

This is not true. The attached patch fixes this.


--- zadvi.orig  2004-11-22 14:25:51.000000000 +0100
+++ zadvi       2004-12-19 21:51:33.742943680 +0100
@@ -14,6 +14,7 @@
 
 ADVI="/usr/bin/advi"
 UNZIP="/bin/gunzip"
+BUNZIP="/usr/bin/bunzip2"
 RM="/bin/rm"
 UNGZFILE=""
 DVIFILE=""
@@ -30,6 +31,16 @@
 
 for i in $*; do 
        case $i in
+       *.bz2)
+               TMPFILE=`tempfile -p advi_ -s .dvi`
+               if [ -x $BUNZIP ]; then
+                       $BUNZIP -c $i > $TMPFILE
+                       UNGZFILE="$UNGZFILE $TMPFILE"
+                       DVIFILE="$DVIFILE $TMPFILE"
+               else
+                       echo "Cannot find bunzip2"
+               fi
+               ;;
        *.gz)
                TMPFILE=`tempfile -p advi_ -s .dvi`
                if [ -x $UNZIP ]; then


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.8
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages advi depends on:
ii  gs                        8.01-5         Transitional package
ii  gs-gpl [gs]               8.01-5         The GPL Ghostscript PostScript int
ii  libc6                     2.3.2.ds1-18   GNU C Library: Shared libraries an
ii  libfreetype6              2.1.7-2.3      FreeType 2 font engine, shared lib
ii  libice6                   4.3.0.dfsg.1-8 Inter-Client Exchange library
ii  libjpeg62                 6b-9           The Independent JPEG Group's JPEG 
ii  libpng12-0                1.2.8rel-1     PNG library - runtime
ii  libsm6                    4.3.0.dfsg.1-8 X Window System Session Management
ii  libtiff4                  3.6.1-3        Tag Image File Format library
ii  libungif4g                4.1.3-1        shared library for GIF images (run
ii  libx11-6                  4.3.0.dfsg.1-8 X Window System protocol client li
ii  libxext6                  4.3.0.dfsg.1-8 X Window System miscellaneous exte
ii  libxpm4                   4.3.0.dfsg.1-8 X pixmap library
ii  tetex-bin                 2.0.2-23       The teTeX binary files
ii  xlibs                     4.3.0.dfsg.1-8 X Window System client libraries m
ii  zlib1g                    1:1.2.2-3      compression library - runtime

-- no debconf information
-- 
Helge Kreutzmann, Dipl.-Phys.               [EMAIL PROTECTED]
                       gpg signed mail preferred 
    64bit GNU powered                  http://www.itp.uni-hannover.de/~kreutzm
       Help keep free software "libre": http://www.freepatents.org/

Attachment: pgpn7F5mITe9j.pgp
Description: PGP signature

Reply via email to