Hi,

On Tue, Jan 14, 2020 at 12:51 PM Konrad Windszus <[email protected]> wrote:
> ...does someone have a (bash) script handy for cleaning up old artifacts from 
> dist
> (and maybe also for importing the new artifacts)?..

I don't have a script but usually do things like this, example
releasing V2.6.22 and removing V2.6.20:

  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)

With this you don't have to checkout the large dist folder, and you
get just one svn transaction for the import and one for the delete.

And for dry runs just add echo in the right places before actually
running the commands.

-Bertrand

Reply via email to