22 Commits

Author SHA1 Message Date
espie
fff2181b00 zap $OpenBSD$ from generated patches
okay sthen@
2022-03-01 11:15:31 +00:00
espie
c77c37126d readlink might give you a relative link, which you then have to finish
resolving yourself (fixes update-patches in japanese/onew)
2021-02-09 17:34:40 +00:00
sthen
72c8828acb warn if patches contain ${WRKOBJDIR}, includes fixes from espie@ 2019-11-10 15:28:19 +00:00
espie
93d690cffa prevent update-patches from mangling files in case of permission errors 2019-05-13 20:39:07 +00:00
espie
40cd6f544e die is a bit terse. Explain why, helps debugging user issues. 2018-10-08 15:20:28 +00:00
espie
2f0d61edb9 if wrkdist is a symlink, resolve it manually, and do not ask File::Find
to resolve symlinks.

unconfuses ports with lots of symlinks (and duplicate patches) as reported
by jsg@
2018-07-31 07:13:37 +00:00
espie
b72ae97508 remove most of the useless stuff that update-patches shows by default.
add a few useful messages instead.
2017-05-25 23:15:41 +00:00
espie
326a5d2c88 do the check upfront, this one works 2017-05-24 09:22:48 +00:00
espie
e5b53aad1e if the WRKDIST doesn't exist, don't even try 2017-05-24 09:16:57 +00:00
espie
889087e46a if PATCHORIG!=.orig, say it. avoids head-scratching when fixing a port you
don't know too well...
2017-05-23 17:52:34 +00:00
espie
97c599aae8 add a FORCE_REGEN env option 2017-05-17 11:31:17 +00:00
espie
b312a313ed bogus fuzz for two lines cases 2017-05-13 19:40:22 +00:00
espie
5429e33e9e lost one line I didn't intend to lose 2017-05-06 12:43:55 +00:00
espie
8a9b58fc6c do things correctly in case wrkdist is a symlink. 2017-05-06 12:42:01 +00:00
espie
580352b684 WRKDIST shouldn't end in /, but just in case...
noticed by jca@
2017-05-05 13:38:13 +00:00
espie
43545a0546 need two separate matches if PATCHORIG finishes with .orig! 2017-05-03 09:11:26 +00:00
espie
fbecc64e44 warn just once per file 2017-05-02 22:32:29 +00:00
espie
bab6db12b8 parse and fuzz patches to remove CVS keywords. Yep, we lose lines of context
but patch can cope.
okay sthen@
2017-05-02 21:06:41 +00:00
espie
c47da7ab68 tweak things so that changes of PATCHORIG won't matter.
-> always emit
--- stem.orig
+++ stem
lines regardless of PATCHORIG
-> prepend an Index: line like cvs does
-> add a blank line for comments.

okay aja@
2017-05-02 09:26:30 +00:00
espie
d24f1b6fd6 new update-patches.
that one deals with .beforesubst files, so it should be nicer with
SUBST_CMD handling. It also doesn't care nor emits timestamps markers
in diff, so less garbage to think about.

Please report any issue, things work better so far, but it's a work
in progress and change to make it better.

'let's finish this in tree' okay aja@
2017-04-29 14:49:38 +00:00
jca
2b6787982d Use cmp -s and grep -q, instead of redirecting to /dev/null
ok espie@
2016-05-15 22:43:18 +00:00
espie
22a16e663e add shell scripts too 2010-08-20 14:50:36 +00:00