Update to a snapshot as of 2017/04/01.
This commit is contained in:
parent
2a336dca48
commit
3e6d065642
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=437399
@ -1,27 +1,35 @@
|
||||
# Created by: Yoshiro MIHIRA <sanpei@sanpei.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= cdif
|
||||
PORTVERSION= 1.19
|
||||
CATEGORIES= textproc
|
||||
MASTER_SITES= LOCAL/sanpei
|
||||
EXTRACT_SUFX= # empty
|
||||
PORTNAME= cdif
|
||||
PORTVERSION= 2.14.20170401
|
||||
DISTVERSIONPREFIX= v
|
||||
CATEGORIES= textproc
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Word context diff
|
||||
MAINTAINER= hrs@FreeBSD.org
|
||||
COMMENT= Word context visualizer of DIFF output
|
||||
|
||||
LICENSE= GREPLE
|
||||
LICENSE_NAME= GREPLE License
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
||||
|
||||
RUN_DEPENDS= ${SITE_PERL}/Getopt/EX.pm:devel/p5-Getopt-EX
|
||||
|
||||
USES= perl5 shebangfix
|
||||
SHEBANG_FILES= ${DISTNAME}
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
NO_BUILD= yes
|
||||
|
||||
SHEBANG_FILES= ${PORTNAME}
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= kaz-utashiro
|
||||
GH_TAGNAME= 2f4de90
|
||||
NO_BUILD= yes
|
||||
NO_ARCH= yes
|
||||
PLIST_FILES= bin/cdif
|
||||
|
||||
do-extract:
|
||||
${CP} ${DISTDIR}/${DISTNAME} ${WRKSRC}/${DISTNAME}
|
||||
post-extract:
|
||||
cd ${WRKSRC} && \
|
||||
${SED} -n "/^# COPYRIGHT/,//p" README.md > LICENSE
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/${DISTNAME} ${STAGEDIR}${PREFIX}/bin/cdif
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/cdif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,3 @@
|
||||
SHA256 (cdif-1.19) = 1b11fd4fd06680f9563dbd58c9bcecf8317d4f4633028598769d930e3a487b3c
|
||||
SIZE (cdif-1.19) = 19894
|
||||
TIMESTAMP = 1491036190
|
||||
SHA256 (kaz-utashiro-cdif-v2.14.20170401-2f4de90_GH0.tar.gz) = 0396528034f54ddb22ffcdfcf925355c8f2a9426a7de6ca1c149e9e5b4ec8377
|
||||
SIZE (kaz-utashiro-cdif-v2.14.20170401-2f4de90_GH0.tar.gz) = 19118
|
||||
|
@ -1,26 +1,11 @@
|
||||
Usage: cdif [-Bvns] [-A #] [-C #] [-D #] [-I #] [-e #] [-[bwcu]] file1 file2
|
||||
cdif [-rcs] [-q] [-rrev1 [-rrev2]] [$myname options] file
|
||||
cdif [$myname options] [diff-output-file]
|
||||
Options:
|
||||
-B byte compare
|
||||
-v use video standout (default for tty)
|
||||
-n use nroff style overstrike (default for non-tty)
|
||||
-b ignore trailing blank
|
||||
-w ignore whitespace
|
||||
-c[#] context diff
|
||||
-u[#] unified diff (if diff has -u option)
|
||||
-e # expression of `word' (default is '\w+')
|
||||
-s show statistical information at the end
|
||||
-A, -C, -D (Append, Change, Delete) takes one of
|
||||
vso: video standout
|
||||
vul: video underline
|
||||
vbd: video bold
|
||||
bd: nroff style overstrike
|
||||
ul: nroff style underline
|
||||
or any sequence or sequences separated by comma
|
||||
-I specify string to be shown on insertion point
|
||||
Following strings have special meanings.
|
||||
vbar: print vertical bar at the point
|
||||
caret: print caret under the point
|
||||
-diff=command
|
||||
specify any diff command
|
||||
cdif is a post-processor of the Unix diff command. It highlights
|
||||
deleted, changed and added words based on word context. You may want
|
||||
to compare character-by-character rather than word-by-word. Option -B
|
||||
option can be used for that purpose. If only one file is specified,
|
||||
cdif reads that file (stdin if no file) as a output from diff command.
|
||||
Lines those don't look like diff output are simply ignored and
|
||||
printed.
|
||||
|
||||
Note that this requires fdescfs(5) mounted.
|
||||
|
||||
WWW: https://github.com/kaz-utashiro/cdif
|
||||
|
Loading…
Reference in New Issue
Block a user