Commit graph

45 commits

Author SHA1 Message Date
seb
a47d96ceb9 Update to version 0.118: pkgdiff fix and tuning.
Fix the automagic tuning of the number of unified diff context
lines.  It was broken since previous commit to files/pkgdiff.

Also arguments '-u' and '-U NUM' to GNU diffutils 2.8.1, as seen
in NetBSD 2.0_STABLE and current, are not intended to be used
together. Hence only '-U NUM' is now specified. I did not reverted
to the '-u -NUM' form used before as it seems undesirable.

Please note that if PKGDIFF_FMT is specified in the environment,
for testing or debugging purposes, we skip the automagic tuning of
the number of unified diff context lines.  The user probably wants
to try another diff format, as suggested in the commit log of
revision 1.12 of files/pkgdiff. So there is no point in adding '-U
NUM' to PKGDIFF_FMT: it may just not work. See:

$ diff -c -U 1 /dev/null /dev/null
diff: conflicting output style options
diff: Try `diff --help' for more information.

While here save a few basename(1) runs.
2005-08-02 12:16:19 +00:00
rh
bf8e6722cb Use -U $lines instead of -$lines to avoid conflicts with the threeway diff
option.
2005-05-21 01:24:34 +00:00
hubertf
eb7239b1cb Update to rev. 0.116.
Add feedback-patches, a script to ... feedback patches:

     The feedback-patches script is intended to help sending back patches in
     the NetBSD Packages Collection, pkgsrc, back to the maintainers of the
     original package, for inclusion into future releases.  The given
     category/pkg is either a path relative to the pkgsrc base directory, or
     an absolute patch, which will be stripped the base directory.  A pathname
     of . will be expanded to the current directory, which is useful when the
     current working directory is in a package's directory in pkgsrc.

     If an email address is given, the patches will be sent to that address,
     with some nice words. If no email address is given, the mail will only be
     displayed instead of sent.

See feedback-patches(1) for the full enchilada.
2004-11-23 22:00:48 +00:00
dillo
8785e1e286 Welcome to 0.115
- fix errors in extracting patched file's name from old patch files
- keep header (RCS Id and comment) from old patch files
- silence perl -w
2004-10-10 09:56:37 +00:00
dillo
fc9e44fcdd mkpatches: if a patch for a file exists, give the new patch the same name
bump version to 0.114
okayed by wiz
2004-08-15 16:49:49 +00:00
danw
a004c74eac print "can't strip away rcs ids" message to stderr, not stdout 2004-05-23 21:55:47 +00:00
jschauma
1d366a4215 Add pre-generated .0 manpages; only regen under SunOS or AIX. 2004-04-11 21:35:21 +00:00
jlam
3299e03171 Put the correct path to perl into the scripts. This fixes using this
package with pkgviews.
2004-01-10 05:40:40 +00:00
seb
8f88970627 Update to version 0.113.
Pkgvi fix: deal with pathnames like `dir-with.a-dot/file-without-dot'
for which the temporary file pathname hold in $tmp ended up as
`dir-with.a-dot/file-without-dot.$$.a-dot/file-without-dot'.
2003-08-23 19:40:18 +00:00
grant
7b5455fa33 pkgvi: create temp files with the same extension as the original, so
editors can pick the right syntax.

bump PKGREVISION to 0.112.
2003-07-16 01:38:26 +00:00
seb
20a0f4c061 Use '@SH@' for pkgdiff's interpreter and substitute for it.
SH is /bin/ksh on Solaris, this gives us a working pkgdiff on Solaris.
2003-07-07 12:55:16 +00:00
atatat
af2afefc25 Add support to pkgdiff for the environment variable PKGDIFF_FMT. This
allows you to get context style or plain diffs from mkpatches or
pkgdiff, instead of the default unified format.

Sometimes it's very nice to be able to look at a different diff
format.
2003-06-14 19:12:40 +00:00
wiz
783c331c9e Update to 1.110: make grep only match closed CVS tags (including the
second $).
2003-06-10 12:47:32 +00:00
seb
7a9617aa14 Update to version 0.109.
Belatedly document pkgvi's '+command' option per zuntum@ request.

As textproc/groff now brings in a lot of dependencies
don't make it a build dependency for this package on Solaris.

XXX Hence do not install any man pages on Solaris. This is a temporary
stopgap measure.  Do people really want a somewhat important number of
dependencies installed just to be able to do 'man mkpatches'? I surely
don't... A better solution has to be devised.

But as added bonus this package now handles gracefully MANINSTALL setting.
See you have not lost everything!
2003-05-28 14:53:51 +00:00
seb
fdfeafd02f Update to version 0.108.
Newer diffutils' (>=2.8, as seen in pkgsrc and -current) diff had seen
the regexp syntax of its -I and -F options changed from Emacs syntax
to grep syntax. Hence fix pkgdiff's diff invocation so diffs on configure
scripts are kept to a minimum.
2003-04-09 15:01:18 +00:00
sommerfeld
2b752e6ae6 fix error message: s/one arguments/one argument/ 2002-12-30 18:27:54 +00:00
wiz
d4a9442bd3 Update to 0.107: Do not exit when pkgdiff fails on one file, just report
an error.
2002-11-04 23:07:37 +00:00
seb
d0fa9b21db Make patchdiff following package's PATCHDIR setting: useful when dealing with
packages sharing patch files directory.
Increment the package version.

Approved by wiz.
2002-08-14 16:30:06 +00:00
wiz
f2329debeb Add \n in an error message. Doesn't warrant version bump. 2002-07-21 16:34:10 +00:00
lukem
9e46e9da70 add -p to the diff arguments; it's useful to know which function a
patch applies to when updating a package
2002-06-27 23:09:01 +00:00
seb
60ce5372b0 Use basename in dodiff() so `pkgdiff /path/to/configure' works as expected.
Bump to 0.105
2002-04-02 10:56:47 +00:00
wiz
559b7f0451 Make pkgdiff smarter re: configure patches: avoid most parts that only
change the line number in the configure script.
Mostly by Stoned Elipot, with slight changes by me.
Bump to 0.104.
2002-03-10 22:04:01 +00:00
zuntum
16fefd5f87 Fix the manpage by quoting .Nd because 'mdoc macros with the current groff
only take 9 arguments'

Fix by wiz@netbsd.org (thanks!
Thanks for Thomas Klausner for the idea!
2001-12-04 11:54:44 +00:00
wiz
b4f0a668fa Miscellaneous man page fixes. 2001-12-03 19:03:19 +00:00
seb
0ff798a7c8 Update to 0.103: pkgvi now support +cmd as first argument, it is passed down
as first argument to the editor.
2001-12-03 14:30:16 +00:00
zuntum
31e86f868b Fix NAME in the manpage:
"run editor and make backup if file if necessary"
 -> "run editor and make backup of given file if necessary"
2001-10-31 07:58:20 +00:00
seb
f706acd969 Update to 0.102: Use GNU diff on Solaris for pkgdiff script (close PR pkg/13988). 2001-10-08 15:59:52 +00:00
wiz
f6b217ba97 Update to 0.101: Fixes for Solaris by Stoned Elipot from pkg/13877. 2001-09-14 22:40:57 +00:00
zuntum
756957814d Xref pkgvi(1) 2001-06-13 17:50:31 +00:00
abs
bc0f328ba4 Update pkgdiff to 0.100
if pkgdiff failed due to a problem with RCS ids, mkpatches would save the
failure message as a patch. Change to abort if pkgdiff has a non zero exit
(with the pkgdiff output). Also add a '-v' flag to indicate which .orig
file is being associated with which patchfile as processed.
2001-05-24 17:02:44 +00:00
zuntum
1282c73559 Update my email address 2001-04-04 13:15:11 +00:00
skrll
27e5c6a14b Make output of patchdiff more readable. A bit of tidy up while I'm here.
Bump to 0.99 (what's next 0.100?)
2001-03-31 20:19:03 +00:00
skrll
32d4ca07ea Update mkpatches to pick up changes to files outside ${WRKSRC}.
I now have no excuse for not including RCSids in patches.

Bump version to 0.98.
2001-03-31 17:24:03 +00:00
wiz
96eabdba05 pkgvi: fix cmp output redirection, remove some more backup files created
by emacs. Bump version to 0.97.
2001-03-16 13:11:41 +00:00
hubertf
068d8b4839 Fix usage (duplicate "echo") - patch by Tomasz Luchowski <zuntum@eik.pl> 2001-01-21 15:09:41 +00:00
hubertf
1dfcd0a586 Remove redundant variable assign.
Patch sent by Tomasz Luchowski <zuntum@eik.pl> in private mail.
2001-01-19 13:02:14 +00:00
hubertf
4597d80670 Some bugfixes and improvements from both Tomasz Luchowski <zuntum@eik.pl>
and myself. Patch contributed in private mail.
2001-01-18 17:04:21 +00:00
jlam
2b905afd72 exec with $editor, not $EDITOR. pkgvi now actually works as advertised. 2001-01-18 15:40:23 +00:00
hubertf
9142ed6c05 Update to 0.96: Add pkgvi, a wrapper that cares to backup files before you
modify them (and that also handles unmodified files in a sane way by deleting
backup files that had no changes).

The pkgvi utility was contributed by Tomasz Luchowski <zuntum@eik.pl>
2001-01-17 23:16:44 +00:00
hubertf
34608e612c Update to 0.95. Changes:
Allow only one file as argument, newfile, and assume oldfile as
newfile.orig.
2000-08-26 04:40:28 +00:00
wiz
c4ad715cef Make patchdiff work again after the last changes. Bump to 0.94. 2000-08-17 03:09:24 +00:00
abs
abe53649a8 Sort the list of files for which to generate patches in mkpatches
Update to 0.93
2000-08-15 14:43:41 +00:00
abs
2cbe4710e7 Remove date from +++ lines in patch - removes needless differences when
patches are regenerated. Update to 0.92
2000-08-15 14:35:22 +00:00
wiz
13f99fafda pkgdiff now only generates output at all if the files differ.
mkpatches doesn't generate empty patches, and warns if name and name.orig
don't differ.
Bump version to 0.91.
2000-07-01 02:38:55 +00:00
wiz
464f7a093a Import of pkgdiff & friends, some tools for easier patch creation
and maintenance.
2000-06-28 01:42:42 +00:00