From 4547525d095ac9adb86c47cb1bb963efa614d5c8 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 18 Apr 2021 22:04:25 +0100 Subject: [PATCH] update-versions: Update in dependencies too This should help with publication I think. Signed-off-by: Ian Jackson --- update-versions | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/update-versions b/update-versions index a581bca5..f25c7b56 100755 --- a/update-versions +++ b/update-versions @@ -30,6 +30,10 @@ for f in $files; do if (m{^\[package\]\s*$}...m{^\[}) { $y=1 if s{^version=".*}{version="'$version'"}; } + if (m{^\[dependencies\]\s*$}...m{^\[}) { + s{^(otter[-\w]*)\.path=.*}{$&\n$1.version="'$version'"}; + s{^(otter[-\w]*)\.version.*\n}{}; + } END { $y or die "appropriate line not found in '$f'" } ' "$f" done -- 2.30.2