Author: sebb Date: Mon Apr 26 16:40:15 2021 New Revision: 1889211 URL: http://svn.apache.org/viewvc?rev=1889211&view=rev Log: Replacement for CMS publish
Added: commons/cms-site/trunk/commons-site-publish.sh (with props) Added: commons/cms-site/trunk/commons-site-publish.sh URL: http://svn.apache.org/viewvc/commons/cms-site/trunk/commons-site-publish.sh?rev=1889211&view=auto ============================================================================== --- commons/cms-site/trunk/commons-site-publish.sh (added) +++ commons/cms-site/trunk/commons-site-publish.sh Mon Apr 26 16:40:15 2021 @@ -0,0 +1,43 @@ +#!/usr/bin/env bash + +# Code to emulate CMS publish + +BASE=https://svn.apache.org/repos/infra/websites + +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} + +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 Propchange: commons/cms-site/trunk/commons-site-publish.sh ------------------------------------------------------------------------------ svn:eol-style = native Propchange: commons/cms-site/trunk/commons-site-publish.sh ------------------------------------------------------------------------------ svn:executable = *