From: Ian Jackson Date: Sun, 18 Apr 2021 21:31:19 +0000 (+0100) Subject: update-versions: Tidy some comments and indents X-Git-Tag: otter-0.5.0~6 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=bcc82c17b240919b65b3c095b160f3c4370da98c;p=otter.git update-versions: Tidy some comments and indents Signed-off-by: Ian Jackson --- diff --git a/update-versions b/update-versions index 63ab765f..e9fd840a 100755 --- a/update-versions +++ b/update-versions @@ -1,6 +1,6 @@ #!/bin/bash # usage: -# ./update-versions [--all-meta] 0.5.0 +# ./update-versions 0.5.0 set -e @@ -30,8 +30,8 @@ for f in $files; do name=$(perl -i~ -pe ' BEGIN { open N, ">&STDOUT" or die $!; } if (m{^\[package\]\s*$}...m{^\[}) { - $y=1 if s{^version=".*}{version="'$version'"}; - print N "$1" if m{^name="(.*)"}; + $y=1 if s{^version=".*}{version="'$version'"}; + print N "$1" if m{^name="(.*)"}; } if (m{^\[dependencies\]\s*$}...m{^\[}) { s{^(otter[-\w]*)\.path=.*}{$&\n$1.version="'$version'"};