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

hboutemy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/attic.git


The following commit(s) were added to refs/heads/main by this push:
     new f2103d7  ATTIC-240 focus svn on cwiki_retired, eventually rm old 
content
f2103d7 is described below

commit f2103d78130be2e291d5fc3c009a77af7ba2a4cf
Author: Hervé Boutemy <hbout...@apache.org>
AuthorDate: Tue Apr 15 08:00:17 2025 +0200

    ATTIC-240 focus svn on cwiki_retired, eventually rm old content
---
 sync-to-legacy-svn.sh | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/sync-to-legacy-svn.sh b/sync-to-legacy-svn.sh
index 9409ffa..e86c85c 100755
--- a/sync-to-legacy-svn.sh
+++ b/sync-to-legacy-svn.sh
@@ -1,14 +1,21 @@
 #!/usr/bin/env bash
 
-# Script to sync Git content to legacy svn 
https://svn.apache.org/repos/asf/attic/site/
+# Script to sync Git content to legacy svn 
https://svn.apache.org/repos/asf/attic/site/cwiki_retired
 
-[ -d .svn ] || svn co https://svn.apache.org/repos/asf/attic/site/ .svn-legacy
+[ -d .svn ] || svn co 
https://svn.apache.org/repos/asf/attic/site/cwiki_retired .svn-legacy
 
 svn up .svn-legacy
 
-cp -r cwiki_retired xdocs .svn-legacy
-cp -r xdocs/flagged .svn-legacy/docs
-
 cd .svn-legacy
+
+# add new content
+cp ../cwiki_retired/* .
 svn add *
+
+# eventually remove old content
+for f in *
+do
+  [ -f ../cwiki_retired/$f ] || svn rm $f
+done
+
 svn ci -m "sync from Git commit $(git log -1 --pretty="%H")" .svn-legacy

Reply via email to