Author: sebb
Date: Sun Aug 20 11:07:46 2023
New Revision: 1911802
URL: http://svn.apache.org/viewvc?rev=1911802&view=rev
Log:
Rework; show last changed rev in message
Modified:
commons/cms-site/trunk/commons-site-publish.sh
commons/cms-site/trunk/commons-site-publish.svnmucc
Modified: commons/cms-site/trunk/commons-site-publish.sh
URL:
http://svn.apache.org/viewvc/commons/cms-site/trunk/commons-site-publish.sh?rev=1911802&r1=1911801&r2=1911802&view=diff
==============================================================================
--- commons/cms-site/trunk/commons-site-publish.sh (original)
+++ commons/cms-site/trunk/commons-site-publish.sh Sun Aug 20 11:07:46 2023
@@ -2,15 +2,15 @@
# Merge parent site from staging build into production site
-TARGET=https://svn.apache.org/repos/infra/websites/production/commons/content/
+BASE=https://svn.apache.org/repos/infra/websites
+SOURCE=${BASE}/staging/commons/trunk/content
+TARGET=${BASE}/production/commons/content/
-SVNVER=$(svn info ${TARGET} --show-item revision)
+SOURCEVER=$(svn info ${SOURCE} --show-item last-changed-revision)
+TARGETVER=$(svn info ${TARGET} --show-item revision)
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" \
---extra-args ${SCRIPT} --revision $SVNVER
-EOD
+svnmucc --no-auth-cache --message "Publish commons site from $SOURCEVER" \
+ --root-url ${BASE} \
+ --extra-args ${SCRIPT} --revision $TARGETVER
Modified: commons/cms-site/trunk/commons-site-publish.svnmucc
URL:
http://svn.apache.org/viewvc/commons/cms-site/trunk/commons-site-publish.svnmucc?rev=1911802&r1=1911801&r2=1911802&view=diff
==============================================================================
--- commons/cms-site/trunk/commons-site-publish.svnmucc (original)
+++ commons/cms-site/trunk/commons-site-publish.svnmucc Sun Aug 20 11:07:46 2023
@@ -1,22 +1,22 @@
rm
-https://svn.apache.org/repos/infra/websites/production/commons/content
+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
+staging/commons/trunk/content
+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
+production/commons/content/proper
+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
+production/commons/content/sandbox
+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
+production/commons/content/dormant
+production/commons/content/dormant