Meta/Announce: adjust to possible change to the top-level RelNotes

This commit is contained in:
Junio C Hamano
2015-02-11 15:27:48 -08:00
parent 1c97d7a9c8
commit ff7d5e2f29

View File

@@ -70,10 +70,17 @@ tag and the '$branch' branch that the tag points at:
EOF
RelNotes=$(git cat-file blob "${branch}:RelNotes") &&
case "$(git ls-tree ${branch} RelNotes)" in
120000' '*)
RelNotes=$(git cat-file blob "${branch}:RelNotes")
;;
*)
RelNotes=RelNotes
;;
esac &&
git cat-file blob "${branch}:$RelNotes" |
case "$relname" in
*-rc[0-9]*)
*-*)
sed -e 's/^Git .* Release Notes$/& (draft)/' \
-e 's/^=============/&========/'
;;