summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-01-30 08:56:36 +0100
committerThomas Haller <thaller@redhat.com>2023-02-10 09:48:33 +0100
commite57b64c882dbe54d9c05ff5b45aa185372acd250 (patch)
treeb63c68d18650fbc67d70b4c39e861207c0c3cc4b
parentb7bdd08af6221b789044d4733115eb66dfdddfbd (diff)
downloadNetworkManager-e57b64c882dbe54d9c05ff5b45aa185372acd250.tar.gz
contrib/release.sh: add hint about publishing documentation on website
(cherry picked from commit 00affc7b6f268d54f0205e325806ba9ab7e3da22)
-rwxr-xr-xcontrib/fedora/rpm/release.sh31
1 files changed, 30 insertions, 1 deletions
diff --git a/contrib/fedora/rpm/release.sh b/contrib/fedora/rpm/release.sh
index e653509869..c896a8ed0f 100755
--- a/contrib/fedora/rpm/release.sh
+++ b/contrib/fedora/rpm/release.sh
@@ -55,7 +55,14 @@ echo_color() {
print_usage() {
echo "Usage:"
- echo " $BASH_SOURCE [devel|rc1|rc|major|major-post|minor] [--no-test] [--no-find-backports] [--no-cleanup] [--allow-local-branches] [--no-check-gitlab] [--no-check-news]"
+ echo " $BASH_SOURCE [devel|rc1|rc|major|major-post|minor]"
+ echo " [--no-test] \\"
+ echo " [--no-find-backports] \\"
+ echo " [--no-cleanup] \\"
+ echo " [--allow-local-branches] \\"
+ echo " [--no-check-gitlab] \\"
+ echo " [--no-check-news] \\"
+ echo " [--no-warn-publish-docs] \\"
}
die_help() {
@@ -204,6 +211,7 @@ FIND_BACKPORTS=1
ALLOW_LOCAL_BRANCHES=0
HELP_AND_EXIT=1
CHECK_GITLAB=1
+WARN_PUBLISH_DOCS=1
CHECK_NEWS=1
while [ "$#" -ge 1 ]; do
A="$1"
@@ -228,6 +236,9 @@ while [ "$#" -ge 1 ]; do
--no-check-gitlab)
CHECK_GITLAB=0
;;
+ --no-warn-publish-docs)
+ WARN_PUBLISH_DOCS=0
+ ;;
--no-check-news)
CHECK_NEWS=0
;;
@@ -366,6 +377,24 @@ if ! check_news "$RELEASE_MODE" "@{VERSION_ARR[@]}" ; then
echo "WARNING: NEWS file needs update to mention stable release (test skipped with --no-check-news)"
fi
+if [ "$RELEASE_MODE" = major -o "$RELEASE_MODE" = minor ]; then
+ echo
+ latest=
+ if [ "$RELEASE_MODE" = major ]; then
+ echo "Note that after the new major you have to publish the new documentation on"
+ latest=" -l"
+ else
+ echo "Note that after the stable release you maybe should publish the new documentation on"
+ fi
+ echo "$(echo_color 36 -n "https://gitlab.freedesktop.org/NetworkManager/networkmanager.pages.freedesktop.org.git") by running"
+ echo " \`$(echo_color 36 -n "./scripts/import-docs.sh ${VERSION_ARR[0]}.$((${VERSION_ARR[1]} + 1)).0$latest")\`"
+ echo
+ if [ $WARN_PUBLISH_DOCS = 1 ]; then
+ echo "Avoid this prompt via \"--no-warn-publish-docs\""
+ read -p "Please confirm that you know [ENTER] "
+ fi
+fi
+
if [ $FIND_BACKPORTS = 1 ]; then
git show "$ORIGIN/main:contrib/scripts/find-backports" > ./.git/nm-find-backports \
&& chmod +x ./.git/nm-find-backports \