You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2021/06/10 07:05:15 UTC

[sling-site] branch master updated: improve quick-update to take into account that new releases have additional SHA-512 artifacts

This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 5e000e6  improve quick-update to take into account that new releases have additional SHA-512 artifacts
5e000e6 is described below

commit 5e000e67f6e2c1e9d5f7e45ab2e343e64ba7bc9e
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Thu Jun 10 09:05:05 2021 +0200

    improve quick-update to take into account that new releases have
    additional SHA-512 artifacts
---
 .../jbake/content/documentation/development/release-management.md  | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/main/jbake/content/documentation/development/release-management.md b/src/main/jbake/content/documentation/development/release-management.md
index b7ee2eb..88d57d6 100644
--- a/src/main/jbake/content/documentation/development/release-management.md
+++ b/src/main/jbake/content/documentation/development/release-management.md
@@ -230,14 +230,11 @@ For the last two tasks, it's better to give the mirrors some time to distribute
 
 It is possible to update the artifacts without needing to checkout or update the full dist folder, which can be quite slow, by using `svn import` and `svn delete` on the remote SVN repository.
 
-Assuming that we are releasing `org.apache.sling.engine 2.6.22`, we can run the following commands
-
+Assuming that we are releasing `org.apache.sling.engine 2.6.22` and the old version artifact names start with `org.apache.sling.engine-2.6.20`, we can run the following commands
 
     $ cd <folder where 2.6.22 is found expanded source-release..zip>
     $ svn import -m "Release org.apache.sling.engine-2.6.22" . https://dist.apache.org/repos/dist/release/sling
-
-    $ svn delete -m "Release org.apache.sling.engine-2.6.22" $(ls | sed 's/22/20/' | while read line; do echo "https://dist.apache.org/repos/dist/release/sling/$line"; done)
-
+    $ svn delete -m "Remove old version org.apache.sling.engine-2.6.20" $(svn ls https://dist.apache.org/repos/dist/release/sling/ | grep org.apache.sling.engine-2.6.20 | while read line; do echo "https://dist.apache.org/repos/dist/release/sling/$line"; done)
 
 This makes sure that the new artifacts are imported and the old ones are deleted.