summaryrefslogtreecommitdiff
path: root/textproc/cdiff
diff options
context:
space:
mode:
authorEivind Eklund <eivind@FreeBSD.org>2000-11-20 13:16:07 +0000
committerEivind Eklund <eivind@FreeBSD.org>2000-11-20 13:16:07 +0000
commit2bce74b1788703a270f6bdfcf5b361125bbeaca5 (patch)
treee1da3f846c74cc920d9a5a6d54968a14a0e346d4 /textproc/cdiff
parentFix stupid typo (wrong path in py-xml dependency). <:-( (diff)
Handle compressed files
Notes
Notes: svn path=/head/; revision=35284
Diffstat (limited to 'textproc/cdiff')
-rw-r--r--textproc/cdiff/Makefile2
-rw-r--r--textproc/cdiff/src/cdiff.15
-rw-r--r--textproc/cdiff/src/cdiff.sh2
3 files changed, 5 insertions, 4 deletions
diff --git a/textproc/cdiff/Makefile b/textproc/cdiff/Makefile
index 9be85310cd39..48c96b990290 100644
--- a/textproc/cdiff/Makefile
+++ b/textproc/cdiff/Makefile
@@ -8,7 +8,7 @@
#
PORTNAME= cdiff
-PORTVERSION= 1.1
+PORTVERSION= 1.2
CATEGORIES= textproc
MASTER_SITES= # none
DISTFILES= # none
diff --git a/textproc/cdiff/src/cdiff.1 b/textproc/cdiff/src/cdiff.1
index a399b04bf6c3..eaa617a574af 100644
--- a/textproc/cdiff/src/cdiff.1
+++ b/textproc/cdiff/src/cdiff.1
@@ -37,8 +37,9 @@
.Op Ar diff ...
.Sh DESCRIPTION
.Nm
-reads a unidiff or context diff from stdin or a set of files and URLs, adds color
-codes, expands tabs to 8 spaces, and passes the results to
+reads a unidiff or context diff from stdin or a set of (optionally compressed)
+files and URLs, adds color codes, expands tabs to 8 spaces, and passes the
+results to
.Xr less 1 .
If used on a color terminal, it makes diffs much easier to read.
.Sh AUTHORS
diff --git a/textproc/cdiff/src/cdiff.sh b/textproc/cdiff/src/cdiff.sh
index 6824cb89811c..73827e4587ef 100644
--- a/textproc/cdiff/src/cdiff.sh
+++ b/textproc/cdiff/src/cdiff.sh
@@ -6,7 +6,7 @@
fetch -q -o - $1
;;
*)
- cat $1
+ zcat -f $1
;;
esac
shift;