diff options
-rw-r--r-- | org.eclipse.mylyn-downloads/generate-snapshot-index.sh | 16 | ||||
-rwxr-xr-x | org.eclipse.mylyn-downloads/update-composite.sh | 3 |
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 00000000..507d3b3e --- /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 0eede8db..9ce5992b 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 |