Commit graph

63 commits

Author SHA1 Message Date
abs
fd6d2db14b Updated pkgtools/pkgdiff to 1.3
1.3: Handle whitespace in filenames a little better in pkgvi

plus: a light sprinkle of pkglint
2011-08-23 21:47:18 +00:00
wiz
1c258e12ad Add -w flag to mkpatches(1), which makes it look in WRKDIR instead of
WRKSRC. Needed for some ruby packages, requested by taca@

Bump version to 1.2.
2011-06-26 12:11:39 +00:00
wiz
c66e654868 Add "-D"/"-d dir" options to mkpatches and patchdiff.
-D provides the previous behaviour of creating patches in $WRKDIR/.newpatches
-d dir specifies the directory where the patches will be created.

Requested by Aleksey Cheusov for read-only pkgsrc checkouts.

Fix minor bugs while here.

Bump version.
2011-03-04 15:57:07 +00:00
wiz
066eeb4bd6 mdoclint cleanup. 2011-02-16 11:58:30 +00:00
wiz
f35cc979f1 Add proper license for files by dillo and myself.
Ok dillo.
2011-02-02 23:35:11 +00:00
wiz
ed6f90d35d Fix wording in my licencse. 2011-02-02 23:34:48 +00:00
hubertf
46c270d2c7 Sign over copyright to TNF 2011-02-02 21:44:13 +00:00
wiz
189227b144 Clarify my license. 2011-02-02 10:36:20 +00:00
wiz
b4b2aed009 Update to 1.0.
Smarter pkgdiff, doesn't create chunks that are added automatically
by the pkgsrc infrastructure (configure:exit instead of regenerate,
Makefile: localedir).

mkpatches: patch file names now contain the path to the file and its name
per discussion on tech-pkg June 2010.
Also, the files are created directly in the patches/ directory; backups
are saved as patches/patch-foo.orig.

patchdiff: now compares patches/patch-foo with patches/patch-foo.orig;
if they only differ in non-essential parts, patchdiff reinstates the
original patch to keep commits less noisy.
2011-02-02 10:23:02 +00:00
sbd
68a57a8482 Use a single pattern to match changes in the diff header so that a change to
the input timestamp/name _and_/or output timestamp _and_/or line numbers
changes handled.

update version number to 0.123
2010-07-04 22:20:04 +00:00
sbd
cf095389bc 1) Add a space to the second white-space block, when matching filenames as some
diff version must uses spaces to separate the filename and timestamp (that
or somepeople do cut-n-pasting of patches).

2) add the comma "," to the pattern used to match line numbers, to match POSIX.
2010-07-04 22:18:28 +00:00
abs
66d7a18018 Updated pkgtools/pkgdiff to 0.122
Set TZ=UTC before calling diff to ensure everyone uses the same timezone
to avoid spurious diffs in metadata, such as:

< clock/clock.c.orig        1993-06-29 01:11:39.000000000 -0400
---
> clock/clock.c.orig        1993-06-29 03:11:39.000000000 -0200
2009-12-10 20:26:33 +00:00
wiz
208ed5a45e Ignore more uninteresting output.
Tries to address PR 39291.

Welcome to 0.121.
2008-11-05 23:18:18 +00:00
apb
40ef1e450f In both mkpatches.pl and patchdiff.pl, ignore a leading "./" when
parsing a file name from the "+++" line in an old patch file.  (New
patch files created by mkpatches do not have "./" in the file name in
the "+++" line, but some old patches currently in pkgsrc do have "./"
there.)

Bump version to 0.120.
2008-02-16 22:21:35 +00:00
kano
abdb54b351 fix obsolete URLs for www.NetBSD.org
close PR pkg/37071
reviewd by xtraeme@
2007-10-07 12:59:11 +00:00
joerg
18bfea6740 Workaround too aggressive RCS ID find, so that +BUILD_VERSION and
ident agree.
2007-07-12 15:35:43 +00:00
bad
a7b4b60ca1 Ensure that the file that is opened in the editor is writable by the user.
Approved by wiz@.
2006-08-01 17:59:17 +00:00
wiz
525916457d NetBSD capitalization police. 2005-12-13 12:03:47 +00:00
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