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 2021/04/20 14:35:23 UTC
svn commit: r1889020 - in /commons/cms-site/trunk/content/resources:
README.txt fix.sh
Author: sebb
Date: Tue Apr 20 14:35:22 2021
New Revision: 1889020
URL: http://svn.apache.org/viewvc?rev=1889020&view=rev
Log:
Documentation
Modified:
commons/cms-site/trunk/content/resources/README.txt
commons/cms-site/trunk/content/resources/fix.sh
Modified: commons/cms-site/trunk/content/resources/README.txt
URL: http://svn.apache.org/viewvc/commons/cms-site/trunk/content/resources/README.txt?rev=1889020&r1=1889019&r2=1889020&view=diff
==============================================================================
--- commons/cms-site/trunk/content/resources/README.txt (original)
+++ commons/cms-site/trunk/content/resources/README.txt Tue Apr 20 14:35:22 2021
@@ -16,6 +16,12 @@ and the following file:
xyz/download_xyz.html
+The following command can be used to create such files:
+
+sh fix.sh xyz ...
+
+
For sandbox components (which don't have releases), there should only be an entry in .htaccess:
Redirect /sandbox/zyx /sandbox/commons-zyx
+
Modified: commons/cms-site/trunk/content/resources/fix.sh
URL: http://svn.apache.org/viewvc/commons/cms-site/trunk/content/resources/fix.sh?rev=1889020&r1=1889019&r2=1889020&view=diff
==============================================================================
--- commons/cms-site/trunk/content/resources/fix.sh (original)
+++ commons/cms-site/trunk/content/resources/fix.sh Tue Apr 20 14:35:22 2021
@@ -1,7 +1,8 @@
+# Create download URL redirects (see READEME.txt)
+
for comp in $*
do
-echo Checking $comp
-test -d $comp && continue
+test -f $comp/download_$comp.html && { echo Redirect for $comp already exists; continue; }
echo Creating $comp
@@ -15,5 +16,7 @@ cat <<EOD >$comp/download_$comp.html
</html>
EOD
+svn add $comp
+
echo Done $comp
-done
\ No newline at end of file
+done