Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2017-03-14 10:36:50 -0400
committerSteffen Pingel2017-03-14 10:36:50 -0400
commitfcffa0a16fc8aac9267092420eab6567394f1658 (patch)
treed0b45b1b97e77663cb266a7f5124b8010921125e
parent877fe11a2fc2740db09581798a72792f620e30cf (diff)
downloadorg.eclipse.mylyn-fcffa0a16fc8aac9267092420eab6567394f1658.tar.gz
org.eclipse.mylyn-fcffa0a16fc8aac9267092420eab6567394f1658.tar.xz
org.eclipse.mylyn-fcffa0a16fc8aac9267092420eab6567394f1658.zip
make script for updating composite sites more robust
-rwxr-xr-xorg.eclipse.mylyn-downloads/update-repositories.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/org.eclipse.mylyn-downloads/update-repositories.sh b/org.eclipse.mylyn-downloads/update-repositories.sh
index 9eed532..5286d3c 100755
--- a/org.eclipse.mylyn-downloads/update-repositories.sh
+++ b/org.eclipse.mylyn-downloads/update-repositories.sh
@@ -5,7 +5,15 @@ set -e
BASEDIR=$(cd $(dirname $0) && pwd)
TARGET=/home/data/httpd/download.eclipse.org/mylyn
-cp -r snapshots releases $TARGET
+cp -R $BASEDIR/snapshots $BASEDIR/releases $TARGET
cd $TARGET
$BASEDIR/update-composite.sh -r
+
+cd $TARGET
+for i in $(find -name composite.index); do
+ for j in $(dirname $i)/*.xml $(dirname $i)/*.index; do
+ [ -O $j ] && chgrp mylyn $j || true
+ [ -O $j ] && chmod g+rw $j || true
+ done
+done

Back to the top