make add_release_notes_links.sh smarter
When everything is fine, say so. When the project doesn't publish any release notes at all, don't report that the series page is missing. Change-Id: I122675d63c45a643af74a62ee42de1977ddc9ea6 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
4e040b6774
commit
d1ed742726
@ -42,12 +42,18 @@ function url_exists {
|
|||||||
|
|
||||||
for filename in deliverables/$SERIES/*.yaml; do
|
for filename in deliverables/$SERIES/*.yaml; do
|
||||||
deliverable=$(basename $filename .yaml)
|
deliverable=$(basename $filename .yaml)
|
||||||
echo -n $deliverable
|
echo -n "$deliverable "
|
||||||
url="https://docs.openstack.org/releasenotes/${deliverable}/${SERIES}.html"
|
base="https://docs.openstack.org/releasenotes/${deliverable}"
|
||||||
if ! url_exists $url; then
|
main_url="${base}/index.html"
|
||||||
echo " no release notes page at $url"
|
if ! url_exists $main_url; then
|
||||||
|
echo "no notes at all, skipping"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
series_url="${base}/${SERIES}.html"
|
||||||
|
if ! url_exists $series_url; then
|
||||||
|
echo "no release notes page at $series_url"
|
||||||
else
|
else
|
||||||
echo
|
echo "OK"
|
||||||
edit-deliverable $SERIES $deliverable set-release-notes "$url"
|
edit-deliverable $SERIES $deliverable set-release-notes "$series_url"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user