You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2023/08/19 23:54:36 UTC

svn commit: r1911787 - in /commons/cms-site/trunk: commons-site-publish.sh commons-site-publish.svnmucc

Author: sebb
Date: Sat Aug 19 23:54:36 2023
New Revision: 1911787

URL: http://svn.apache.org/viewvc?rev=1911787&view=rev
Log:
Simplify publish script

Added:
    commons/cms-site/trunk/commons-site-publish.svnmucc
Modified:
    commons/cms-site/trunk/commons-site-publish.sh

Modified: commons/cms-site/trunk/commons-site-publish.sh
URL: http://svn.apache.org/viewvc/commons/cms-site/trunk/commons-site-publish.sh?rev=1911787&r1=1911786&r2=1911787&view=diff
==============================================================================
--- commons/cms-site/trunk/commons-site-publish.sh (original)
+++ commons/cms-site/trunk/commons-site-publish.sh Sat Aug 19 23:54:36 2023
@@ -1,43 +1,14 @@
 #!/usr/bin/env bash
 
-# Code to emulate CMS publish
-
-BASE=https://svn.apache.org/repos/infra/websites
+# Merge parent site from staging build into production site
 
 SVNVER=$(svn info ${BASE}/staging/commons/trunk/content/ --show-item revision)
 
-SCRIPT=target/commons-site-publish.svnmucc
-
-test -d target || mkdir target
-
-{
-cat <<EOD
-rm
-production/commons/content
-
-cp
-HEAD
-staging/commons/trunk/content
-production/commons/content
-EOD
-
-for n in $(grep -v '^#' content/resources/extpaths.txt)
-do
-cat <<EOD
-
-cp
-HEAD
-production/commons/content/$n
-production/commons/content/$n
-EOD
-done
-
-} > ${SCRIPT}
+SCRIPT=commons-site-publish.svnmucc
 
 cat<<EOD
 # review the content of ${SCRIPT} then run the following command:
 
 svnmucc --no-auth-cache --message "Publish commons site from $SVNVER" \
---root-url ${BASE} \
 --extra-args ${SCRIPT}
 EOD

Added: commons/cms-site/trunk/commons-site-publish.svnmucc
URL: http://svn.apache.org/viewvc/commons/cms-site/trunk/commons-site-publish.svnmucc?rev=1911787&view=auto
==============================================================================
--- commons/cms-site/trunk/commons-site-publish.svnmucc (added)
+++ commons/cms-site/trunk/commons-site-publish.svnmucc Sat Aug 19 23:54:36 2023
@@ -0,0 +1,22 @@
+rm
+https://svn.apache.org/repos/infra/websites/production/commons/content
+
+cp
+HEAD
+https://svn.apache.org/repos/infra/websites/staging/commons/trunk/content
+https://svn.apache.org/repos/infra/websites/production/commons/content
+
+cp
+HEAD
+https://svn.apache.org/repos/infra/websites/production/commons/content/proper
+https://svn.apache.org/repos/infra/websites/production/commons/content/proper
+
+cp
+HEAD
+https://svn.apache.org/repos/infra/websites/production/commons/content/sandbox
+https://svn.apache.org/repos/infra/websites/production/commons/content/sandbox
+
+cp
+HEAD
+https://svn.apache.org/repos/infra/websites/production/commons/content/dormant
+https://svn.apache.org/repos/infra/websites/production/commons/content/dormant