Author: schultz
Date: Tue Dec 12 14:14:14 2023
New Revision: 1914580
URL: http://svn.apache.org/viewvc?rev=1914580&view=rev
Log:
Add check for release artifacts being where they are supposed to be prior to
performing site updates.
Modified:
tomcat/site/trunk/tools/update-version.sh
Modified: tomcat/site/trunk/tools/update-version.sh
URL:
http://svn.apache.org/viewvc/tomcat/site/trunk/tools/update-version.sh?rev=1914580&r1=1914579&r2=1914580&view=diff
==============================================================================
--- tomcat/site/trunk/tools/update-version.sh (original)
+++ tomcat/site/trunk/tools/update-version.sh Tue Dec 12 14:14:14 2023
@@ -67,6 +67,20 @@ else
MIGRATION_FILENAME=xdocs/migration-${MINOR_RELEASE}.xml
fi
+# Check to see if the release artifacts are available from the download site...
+found=$( curl -Isi
https://downloads.apache.org/tomcat/tomcat-${MAJOR_RELEASE}/v${NEW_RELEASE}/ |
grep ^HTTP | awk '{print $2}' )
+
+if [ "200" '!=' "$found" ] ; then
+ echo It appears that the release artifacts for release ${NEW_RELEASE} are
not yet
+ echo available from the primary download site:
+ echo
+ echo
https://downloads.apache.org/tomcat/tomcat-${MAJOR_RELEASE}/v${NEW_RELEASE}/
+ echo
+ echo Please wait until those artifacts are available and then re-run this
script.
+
+ exit
+fi
+
# build.properties.default
# Set the current minor release to point to the new release
# e.g. tomcat10.0=10.0.27
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]