Fixed a bug in the --dry-run handling of mkrelease.

- Legacy-Id: 9204
This commit is contained in:
Henrik Levkowetz 2015-03-15 17:25:15 +00:00
parent 6f285a12f4
commit 009543c39e

View file

@ -177,7 +177,7 @@ note "$changes"
contributors=$(echo "$changes" | sed 's/\.[ \t\n]/ /'| tr -c "a-z0-9.@-" "\n" | sort | uniq | grep '@' | sed -r -e 's/^\.+//' -e 's/\.+$//' -e 's/^/-c /' || true)
note "Set the current time on the release notes in the changelog file"
sed -r -i -e "1,/^ -- /s/([A-Za-z-]+ <[a-z0-9.-]+@[a-z0-9.-]+> ).*$/\1$(TZ=UTC date +'%d %b %Y %H:%M:%S %z')/" changelog
$do sed -r -i -e "1,/^ -- /s/([A-Za-z-]+ <[a-z0-9.-]+@[a-z0-9.-]+> ).*$/\1$(TZ=UTC date +'%d %b %Y %H:%M:%S %z')/" changelog
note " $(grep -m1 "^ -- " changelog)"
note "Verifying that version $VER doesn't already exist..."