summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorWayne Davison <wayne@opencoder.net>2022-08-01 18:43:11 -0700
committerWayne Davison <wayne@opencoder.net>2022-08-01 18:50:28 -0700
commit8e33586359a1e1cce943651e9c60adfe9e65ba54 (patch)
treefbff35bc9a6f92e706008733fd99a5688e58e321 /packaging
parentda5c72da4b604dbf2a9fdbfccb7b0ac787cf04e7 (diff)
downloadrsync-8e33586359a1e1cce943651e9c60adfe9e65ba54.tar.gz
Tweaks to allow for a release.
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/release-rsync4
1 files changed, 3 insertions, 1 deletions
diff --git a/packaging/release-rsync b/packaging/release-rsync
index d484628c..5e54d06e 100755
--- a/packaging/release-rsync
+++ b/packaging/release-rsync
@@ -193,7 +193,9 @@ About to:
with open(fn, 'r', encoding='utf-8') as fh:
old_txt = txt = fh.read()
if fn == 'version.h':
- txt = f'#define RSYNC_VERSION "{version}"\n'
+ x_re = re.compile(r'^(#define RSYNC_VERSION).*', re.M)
+ msg = f"Unable to update RSYNC_VERSION in {fn}"
+ txt = replace_or_die(x_re, r'\1 "%s"' % version, txt, msg)
elif '.spec' in fn:
for var, val in specvars.items():
x_re = re.compile(r'^%s .*' % re.escape(var), re.M)