Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Davis2017-06-29 14:19:49 -0400
committerSam Davis2017-06-29 14:19:49 -0400
commitcf6d4ad2100f61a75ab5468e8bed45309c2df8a6 (patch)
tree5c3f315375a5a9e802ccc94855366704460522bf
parent7ac8a9cbf79b111e52f9f6f00df9e369c81959c5 (diff)
downloadorg.eclipse.mylyn-cf6d4ad2100f61a75ab5468e8bed45309c2df8a6.tar.gz
org.eclipse.mylyn-cf6d4ad2100f61a75ab5468e8bed45309c2df8a6.tar.xz
org.eclipse.mylyn-cf6d4ad2100f61a75ab5468e8bed45309c2df8a6.zip
515140: update snapshot index when updating composites
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=515140
-rw-r--r--org.eclipse.mylyn-downloads/generate-snapshot-index.sh16
-rwxr-xr-xorg.eclipse.mylyn-downloads/update-composite.sh3
2 files changed, 18 insertions, 1 deletions
diff --git a/org.eclipse.mylyn-downloads/generate-snapshot-index.sh b/org.eclipse.mylyn-downloads/generate-snapshot-index.sh
new file mode 100644
index 0000000..507d3b3
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/generate-snapshot-index.sh
@@ -0,0 +1,16 @@
+#!/bin/bash -e
+
+pushd /home/data/httpd/download.eclipse.org/mylyn/drops > /dev/null
+
+echo "<html><head><meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />" > index.html
+echo "<meta http-equiv="Pragma" content="no-cache" />" >> index.html
+echo "<meta http-equiv="Expires" content="0" /></head>" >> index.html
+
+echo "<body><h1>Mylyn Snapshot Builds</h1>" >> index.html
+echo "<p>Weekly builds are production quality, but subject to UI changes.</p><p>" >> index.html
+for f in `find -name *3.[1-4]*.zip -not -name *-api.zip | sort`; do
+ echo "<a href=\"https://www.eclipse.org/downloads/download.php?file=/mylyn/drops${f#\.}\">${f##.*/}</a><br/>" >> index.html
+done
+echo "</p></body><html>" >> index.html
+
+popd > /dev/null
diff --git a/org.eclipse.mylyn-downloads/update-composite.sh b/org.eclipse.mylyn-downloads/update-composite.sh
index 0eede8d..9ce5992 100755
--- a/org.eclipse.mylyn-downloads/update-composite.sh
+++ b/org.eclipse.mylyn-downloads/update-composite.sh
@@ -52,7 +52,7 @@ COUNT=0
for i in $DIRS; do
echo " <child location='$i'/>" >> $FILE
COUNT=$((COUNT+1))
-
+
echo " added $i"
done
sed -i -e "s/CHILD_COUNT/$COUNT/" $FILE
@@ -78,3 +78,4 @@ else
exit 1
fi
+$(dirname $0)/generate-snapshot-index.sh \ No newline at end of file

Back to the top