From: Ian Jackson Date: Sun, 18 Apr 2021 21:04:25 +0000 (+0100) Subject: update-versions: Update in dependencies too X-Git-Tag: otter-0.5.0~8 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=4547525d095ac9adb86c47cb1bb963efa614d5c8;p=otter.git update-versions: Update in dependencies too This should help with publication I think. Signed-off-by: Ian Jackson --- 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