mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04: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
3 changed files with 10 additions and 3 deletions
|
@ -8,8 +8,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
PORTNAME= cdiff
|
PORTNAME= cdiff
|
||||||
PORTVERSION= 1.4
|
PORTVERSION= 1.5
|
||||||
PORTREVISION= 1
|
|
||||||
CATEGORIES= textproc
|
CATEGORIES= textproc
|
||||||
MASTER_SITES= # none
|
MASTER_SITES= # none
|
||||||
DISTFILES= # none
|
DISTFILES= # none
|
||||||
|
|
|
@ -49,6 +49,10 @@ There is also handling of "cvs annotate" in it.
|
||||||
.It Fl m
|
.It Fl m
|
||||||
Use bold, reverse and underline codes (for monochrome terminals).
|
Use bold, reverse and underline codes (for monochrome terminals).
|
||||||
.El
|
.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
|
.Sh AUTHORS
|
||||||
.Nm
|
.Nm
|
||||||
was written by
|
was written by
|
||||||
|
|
|
@ -2,9 +2,13 @@
|
||||||
if [ "$1" = "-m" ]; then
|
if [ "$1" = "-m" ]; then
|
||||||
shift;
|
shift;
|
||||||
CODES="4:7:1:1"
|
CODES="4:7:1:1"
|
||||||
|
else
|
||||||
|
if [ "$CDIFFCOLORS" != "" ]; then
|
||||||
|
CODES=$CDIFFCOLORS
|
||||||
else
|
else
|
||||||
CODES="1:34:31:35"
|
CODES="1:34:31:35"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
(if [ "$1" != "" ]; then
|
(if [ "$1" != "" ]; then
|
||||||
while [ "$1" != "" ]; do
|
while [ "$1" != "" ]; do
|
||||||
case $1 in
|
case $1 in
|
||||||
|
|
Loading…
Add table
Reference in a new issue