mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
- Update to 1.5
Changelog: - Add an option to change de colors using an environment var called CDIFFCOLORS PR: ports/106878 Submitted by: Li-Wen Hsu <lwhsu@lwhsu.org>
This commit is contained in:
parent
b2683a0816
commit
756f89463d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=180347
@ -8,8 +8,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= cdiff
|
||||
PORTVERSION= 1.4
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 1.5
|
||||
CATEGORIES= textproc
|
||||
MASTER_SITES= # none
|
||||
DISTFILES= # none
|
||||
|
@ -49,6 +49,10 @@ There is also handling of "cvs annotate" in it.
|
||||
.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
|
||||
|
@ -3,7 +3,11 @@ if [ "$1" = "-m" ]; then
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user