Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-2-0]: src/usr.bin/gzip Pull up revision 1.3 (requested by wiz in ...
details: https://anonhg.NetBSD.org/src/rev/6092d61d3bcc
branches: netbsd-2-0
changeset: 560140:6092d61d3bcc
user: tron <tron%NetBSD.org@localhost>
date: Mon Mar 29 10:51:46 2004 +0000
description:
Pull up revision 1.3 (requested by wiz in ticket #9):
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 d157c417617d -r 6092d61d3bcc usr.bin/gzip/zdiff
--- a/usr.bin/gzip/zdiff Mon Mar 29 10:48:39 2004 +0000
+++ b/usr.bin/gzip/zdiff Mon Mar 29 10:51:46 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.2.2.1 2004/03/29 10:52:50 tron 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 d157c417617d -r 6092d61d3bcc usr.bin/gzip/zmore
--- a/usr.bin/gzip/zmore Mon Mar 29 10:48:39 2004 +0000
+++ b/usr.bin/gzip/zmore Mon Mar 29 10:51:46 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.2.2.1 2004/03/29 10:51:46 tron 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