Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/gzip s/compress/gzip/, our compress is not the backe...



details:   https://anonhg.NetBSD.org/src/rev/90629c5cb80d
branches:  trunk
changeset: 565100:90629c5cb80d
user:      wiz <wiz%NetBSD.org@localhost>
date:      Mon Mar 29 09:59:42 2004 +0000

description:
s/compress/gzip/, our compress is not the backend for gzip.
Noted by hubertf.

diffstat:

 usr.bin/gzip/zdiff |  10 +++++-----
 usr.bin/gzip/zmore |   6 +++---
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (69 lines):

diff -r a7bdce8bddc0 -r 90629c5cb80d usr.bin/gzip/zdiff
--- a/usr.bin/gzip/zdiff        Mon Mar 29 09:32:49 2004 +0000
+++ b/usr.bin/gzip/zdiff        Mon Mar 29 09:59:42 2004 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-# $NetBSD: zdiff,v 1.2 2003/12/28 12:43:43 wiz Exp $
+# $NetBSD: zdiff,v 1.3 2004/03/29 10:01:00 wiz Exp $
 #
 # $OpenBSD: zdiff,v 1.2 2003/07/29 07:42:44 otto Exp $
 #
@@ -67,14 +67,14 @@
                *)      echo "z$prog: unknown suffix" 1>&2
                        exit 1
        esac
-       compress -cdfq "$1" | $prog $flags - "$files"
+       gzip -cdfq "$1" | $prog $flags - "$files"
        status=$?
 elif [ $# -eq 2 ]; then
        # Two files given, compare the two uncompressing as needed
        case "$1" in
                *[._-][Zz]|*[._-]gz|*.t[ag]z)
                        files=-
-                       filt="compress -cdfq $1"
+                       filt="gzip -cdfq $1"
                        ;;
                *)
                        files="$1"
@@ -85,11 +85,11 @@
                        if [ "$files" = "-" ]; then
                                tmp=`mktemp -t z$prog.XXXXXXXXXX` || exit 1
                                trap "rm -f $tmp" 0 1 2 3 13 15
-                               compress -cdfq "$2" > $tmp
+                               gzip -cdfq "$2" > $tmp
                                files="$files $tmp"
                        else
                                files="$files -"
-                               filt="compress -cdfq $2"
+                               filt="gzip -cdfq $2"
                        fi
                        ;;
                *)
diff -r a7bdce8bddc0 -r 90629c5cb80d usr.bin/gzip/zmore
--- a/usr.bin/gzip/zmore        Mon Mar 29 09:32:49 2004 +0000
+++ b/usr.bin/gzip/zmore        Mon Mar 29 09:59:42 2004 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-# $NetBSD: zmore,v 1.2 2003/12/28 12:43:43 wiz Exp $
+# $NetBSD: zmore,v 1.3 2004/03/29 09:59:42 wiz Exp $
 #
 # $OpenBSD: zmore,v 1.4 2003/07/29 07:42:45 otto Exp $
 #
@@ -43,13 +43,13 @@
 
 # No files means read from stdin
 if [ $# -eq 0 ]; then
-       compress -cdfq 2>&1 | ${PAGER-more} $flags
+       gzip -cdfq 2>&1 | ${PAGER-more} $flags
        exit 0
 fi
 
 oterm=`stty -g 2>/dev/null`
 while test $# -ne 0; do
-       compress -cdfq "$1" 2>&1 | ${PAGER-more} $flags
+       gzip -cdfq "$1" 2>&1 | ${PAGER-more} $flags
        prev="$1"
        shift
        if tty -s && test -n "$oterm" -a $# -gt 0; then



Home | Main Index | Thread Index | Old Index