ports/106878: [PATCH] textproc/cdiff: let user can specify color.
Li-Wen Hsu
lwhsu at lwhsu.org
Mon Dec 18 20:10:19 UTC 2006
>Number: 106878
>Category: ports
>Synopsis: [PATCH] textproc/cdiff: let user can specify color.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Dec 18 20:10:17 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Li-Wen Hsu
>Release: FreeBSD 6.2-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD knight.lwhsu.ckefgisc.org 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Wed Dec 6 11:34:36 CST
>Description:
- Update to 1.5
Port maintainer (garga at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
Make cdiff(1) read the environment variable "CDIFFCOLORS" to customize the color codes to add.
--- cdiff-1.5.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/textproc/cdiff/Makefile /home/lwhsu/ports/cdiff/Makefile
--- /usr/ports/textproc/cdiff/Makefile Mon Sep 4 16:17:26 2006
+++ /home/lwhsu/ports/cdiff/Makefile Tue Dec 19 03:23:39 2006
@@ -8,8 +8,7 @@
#
PORTNAME= cdiff
-PORTVERSION= 1.4
-PORTREVISION= 1
+PORTVERSION= 1.5
CATEGORIES= textproc
MASTER_SITES= # none
DISTFILES= # none
diff -ruN --exclude=CVS /usr/ports/textproc/cdiff/src/cdiff.1 /home/lwhsu/ports/cdiff/src/cdiff.1
--- /usr/ports/textproc/cdiff/src/cdiff.1 Tue Apr 12 16:06:16 2005
+++ /home/lwhsu/ports/cdiff/src/cdiff.1 Tue Dec 19 03:23:39 2006
@@ -49,6 +49,10 @@
.It Fl m
Use bold, reverse and underline codes (for monochrome terminals).
.El
+.Bl -tag -width CDIFFCOLORS
+.It Ev CDIFFCOLORS
+The color codes used to add. Default is 1:34:31:35, for lines begin with "@", "-", "+" and "!".
+.El
.Sh AUTHORS
.Nm
was written by
diff -ruN --exclude=CVS /usr/ports/textproc/cdiff/src/cdiff.sh /home/lwhsu/ports/cdiff/src/cdiff.sh
--- /usr/ports/textproc/cdiff/src/cdiff.sh Tue Apr 12 16:06:16 2005
+++ /home/lwhsu/ports/cdiff/src/cdiff.sh Tue Dec 19 03:23:39 2006
@@ -3,7 +3,11 @@
shift;
CODES="4:7:1:1"
else
- CODES="1:34:31:35"
+ if [ "$CDIFFCOLORS" != "" ]; then
+ CODES=$CDIFFCOLORS
+ else
+ CODES="1:34:31:35"
+ fi
fi
(if [ "$1" != "" ]; then
while [ "$1" != "" ]; do
--- cdiff-1.5.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list