513498: manage release and snapshot repositories in git

* This enables updating of composites independently of Mylyn builds,
e.g. to pick up Docs releases.
* Generate p2.index files.

Change-Id: I883d818e623053ae41cdf3721479f4f522b91e24
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=513498
diff --git a/org.eclipse.mylyn-downloads/.project b/org.eclipse.mylyn-downloads/.project
new file mode 100644
index 0000000..bd261ba
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/.project
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>org.eclipse.mylyn-downloads</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+	</buildSpec>
+	<natures>
+	</natures>
+	<filteredResources>
+		<filter>
+			<id>1367109048408</id>
+			<name></name>
+			<type>10</type>
+			<matcher>
+				<id>org.eclipse.ui.ide.multiFilter</id>
+				<arguments>1.0-projectRelativePath-matches-false-false-target</arguments>
+			</matcher>
+		</filter>
+	</filteredResources>
+</projectDescription>
diff --git a/org.eclipse.mylyn-downloads/releases/3.10/composite.index b/org.eclipse.mylyn-downloads/releases/3.10/composite.index
new file mode 100644
index 0000000..a6f576b
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/3.10/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.10.*/v*/ -maxdepth 0 | sort -r)
+NAME="Mylyn 3.10 for Eclipse 3.8, 4.2 and 4.3"
diff --git a/org.eclipse.mylyn-downloads/releases/3.11/composite.index b/org.eclipse.mylyn-downloads/releases/3.11/composite.index
new file mode 100644
index 0000000..fa6a404
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/3.11/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.11.*/v*/ -maxdepth 0 | sort -r)
+NAME="Mylyn 3.11 for Eclipse 3.8, 4.3 and 4.4"
diff --git a/org.eclipse.mylyn-downloads/releases/3.12/composite.index b/org.eclipse.mylyn-downloads/releases/3.12/composite.index
new file mode 100644
index 0000000..b705fc4
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/3.12/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.12.*/v*/ -maxdepth 0 | sort -r)
+NAME="Mylyn 3.12 for Eclipse 3.8, 4.3 and 4.4"
diff --git a/org.eclipse.mylyn-downloads/releases/3.13/composite.index b/org.eclipse.mylyn-downloads/releases/3.13/composite.index
new file mode 100644
index 0000000..2e5d6ab
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/3.13/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.13.*/v*/ -maxdepth 0 | sort -r)
+NAME="Mylyn 3.13 for Eclipse 3.8, 4.3 and 4.4"
diff --git a/org.eclipse.mylyn-downloads/releases/3.14/composite.index b/org.eclipse.mylyn-downloads/releases/3.14/composite.index
new file mode 100644
index 0000000..7476d8c
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/3.14/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.14.*/v*/ -maxdepth 0 | sort -r)
+NAME="Mylyn 3.14 for Eclipse 3.8, 4.3 and 4.4"
diff --git a/org.eclipse.mylyn-downloads/releases/3.15/composite.index b/org.eclipse.mylyn-downloads/releases/3.15/composite.index
new file mode 100644
index 0000000..9f70142
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/3.15/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.15.*/v*/ -maxdepth 0 | sort -r)
+NAME="Mylyn 3.15 for Eclipse 3.8, 4.3 and 4.4"
diff --git a/org.eclipse.mylyn-downloads/releases/3.16/composite.index b/org.eclipse.mylyn-downloads/releases/3.16/composite.index
new file mode 100644
index 0000000..dd03842
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/3.16/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.16.*/v*/ -maxdepth 0 | sort -r)
+NAME="Mylyn 3.16 for Eclipse 3.8, 4.4 and 4.5"
diff --git a/org.eclipse.mylyn-downloads/releases/3.17/composite.index b/org.eclipse.mylyn-downloads/releases/3.17/composite.index
new file mode 100644
index 0000000..c85d290
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/3.17/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.17.*/v*/ -maxdepth 0 | sort -r)
+NAME="Mylyn 3.17 for Eclipse 3.8, 4.4 and 4.5"
diff --git a/org.eclipse.mylyn-downloads/releases/3.18/composite.index b/org.eclipse.mylyn-downloads/releases/3.18/composite.index
new file mode 100644
index 0000000..b5737f7
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/3.18/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.18.*/v*/ -maxdepth 0 | sort -r)
+NAME="Mylyn 3.18 for Eclipse 3.8, 4.4 and 4.5"
diff --git a/org.eclipse.mylyn-downloads/releases/3.19/composite.index b/org.eclipse.mylyn-downloads/releases/3.19/composite.index
new file mode 100644
index 0000000..427ed6a
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/3.19/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.19.*/v*/ -maxdepth 0 | sort -r)
+NAME="Mylyn 3.19 for Eclipse 3.8, 4.4 and 4.5"
diff --git a/org.eclipse.mylyn-downloads/releases/3.20/composite.index b/org.eclipse.mylyn-downloads/releases/3.20/composite.index
new file mode 100644
index 0000000..d5b913c
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/3.20/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.20.*/v*/ -maxdepth 0 | sort -r)
+NAME="Mylyn 3.20 for Eclipse 4.5 and 4.6"
diff --git a/org.eclipse.mylyn-downloads/releases/3.21/composite.index b/org.eclipse.mylyn-downloads/releases/3.21/composite.index
new file mode 100644
index 0000000..450c5af
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/3.21/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.21.*/v*/ -maxdepth 0 | sort -r)
+NAME="Mylyn 3.21 for Eclipse 4.5 and 4.6"
diff --git a/org.eclipse.mylyn-downloads/releases/3.5/composite.index b/org.eclipse.mylyn-downloads/releases/3.5/composite.index
new file mode 100644
index 0000000..4fe68ac
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/3.5/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.5.*/v*/ -maxdepth 0 | sort -r)
+NAME="Mylyn 3.5 for Eclipse 3.5, 3.6 and 3.7"
diff --git a/org.eclipse.mylyn-downloads/releases/3.6/composite.index b/org.eclipse.mylyn-downloads/releases/3.6/composite.index
new file mode 100644
index 0000000..80cc80e
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/3.6/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.6.*/v*/ -maxdepth 0 | sort -r)
+NAME="Mylyn 3.6 for Eclipse 3.5, 3.6 and 3.7"
diff --git a/org.eclipse.mylyn-downloads/releases/3.7/composite.index b/org.eclipse.mylyn-downloads/releases/3.7/composite.index
new file mode 100644
index 0000000..46c8013
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/3.7/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.7.*/v*/ -maxdepth 0 | sort -r)
+NAME="Mylyn 3.7 for Eclipse 3.6 and 3.7"
diff --git a/org.eclipse.mylyn-downloads/releases/3.8/composite.index b/org.eclipse.mylyn-downloads/releases/3.8/composite.index
new file mode 100644
index 0000000..2723e6e
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/3.8/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.8.*/v*/ -maxdepth 0 | sort -r)
+NAME="Mylyn 3.8 for Eclipse 3.7, 3.8 and 4.2"
diff --git a/org.eclipse.mylyn-downloads/releases/3.9/composite.index b/org.eclipse.mylyn-downloads/releases/3.9/composite.index
new file mode 100644
index 0000000..8de2023
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/3.9/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.9.*/v*/ -maxdepth 0 | sort -r)
+NAME="Mylyn 3.9 for Eclipse 3.8, 4.2 and 4.3"
diff --git a/org.eclipse.mylyn-downloads/releases/galileo/composite.index b/org.eclipse.mylyn-downloads/releases/galileo/composite.index
new file mode 100644
index 0000000..1e7f34d
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/galileo/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.[56].*/v*/ -maxdepth 0 | sort -r | head -n 1)
+NAME="Mylyn for Eclipse Galileo"
diff --git a/org.eclipse.mylyn-downloads/releases/helios/composite.index b/org.eclipse.mylyn-downloads/releases/helios/composite.index
new file mode 100644
index 0000000..6b6aef4
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/helios/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.[567].*/v*/ -maxdepth 0 | sort -r | head -n 1)
+NAME="Mylyn for Eclipse Helios"
diff --git a/org.eclipse.mylyn-downloads/releases/indigo/composite.index b/org.eclipse.mylyn-downloads/releases/indigo/composite.index
new file mode 100644
index 0000000..e7525d9
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/indigo/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.[5678].*/v*/ -maxdepth 0 | sort -r | head -n 1)
+NAME="Mylyn for Eclipse Indigo"
diff --git a/org.eclipse.mylyn-downloads/releases/juno/composite.index b/org.eclipse.mylyn-downloads/releases/juno/composite.index
new file mode 100644
index 0000000..2fd10bf
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/juno/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.10.*/v*/ -maxdepth 0 | sort -r | head -n 1)
+NAME="Mylyn for Eclipse Juno"
diff --git a/org.eclipse.mylyn-downloads/releases/kepler/composite.index b/org.eclipse.mylyn-downloads/releases/kepler/composite.index
new file mode 100644
index 0000000..102826f
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/kepler/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.10.*/v*/ -maxdepth 0 | sort -r | head -n 1)
+NAME="Mylyn for Eclipse Kepler"
diff --git a/org.eclipse.mylyn-downloads/releases/latest/composite.index b/org.eclipse.mylyn-downloads/releases/latest/composite.index
new file mode 100644
index 0000000..450c5af
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/latest/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.21.*/v*/ -maxdepth 0 | sort -r)
+NAME="Mylyn 3.21 for Eclipse 4.5 and 4.6"
diff --git a/org.eclipse.mylyn-downloads/releases/luna/composite.index b/org.eclipse.mylyn-downloads/releases/luna/composite.index
new file mode 100644
index 0000000..cb44b54
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/luna/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.12.*/v*/ -maxdepth 0 | sort -r | head -n 1)
+NAME="Mylyn for Eclipse Luna"
diff --git a/org.eclipse.mylyn-downloads/releases/mars/composite.index b/org.eclipse.mylyn-downloads/releases/mars/composite.index
new file mode 100644
index 0000000..c5e1c6e
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/mars/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.1[78].*/v*/ -maxdepth 0 | sort -r)
+NAME="Mylyn for Eclipse Mars"
diff --git a/org.eclipse.mylyn-downloads/releases/neon/composite.index b/org.eclipse.mylyn-downloads/releases/neon/composite.index
new file mode 100644
index 0000000..fffe67c
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/neon/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.2[01].*/v*/ -maxdepth 0 | sort -r)
+NAME="Mylyn for Eclipse Neon"
diff --git a/org.eclipse.mylyn-downloads/releases/oxygen/composite.index b/org.eclipse.mylyn-downloads/releases/oxygen/composite.index
new file mode 100644
index 0000000..ea0e297
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/releases/oxygen/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.21.*/v*/ -maxdepth 0 | sort -r)
+NAME="Mylyn for Eclipse Oxygen"
diff --git a/org.eclipse.mylyn-downloads/snapshots/3.10/composite.index b/org.eclipse.mylyn-downloads/snapshots/3.10/composite.index
new file mode 100644
index 0000000..fb8b1f2
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/3.10/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.10.*/ -mindepth 1 -maxdepth 1 -type d | sort -r | head -n 10)
+NAME="Mylyn 3.10 Snapshots for Eclipse 4.2, 4.3 and 4.4"
diff --git a/org.eclipse.mylyn-downloads/snapshots/3.11/composite.index b/org.eclipse.mylyn-downloads/snapshots/3.11/composite.index
new file mode 100644
index 0000000..bbfb6fd
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/3.11/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.11.*/ -mindepth 1 -maxdepth 1 -type d | sort -r | head -n 10)
+NAME="Mylyn 3.11 Snapshots for Eclipse 3.8, 4.3 and 4.4"
diff --git a/org.eclipse.mylyn-downloads/snapshots/3.12/composite.index b/org.eclipse.mylyn-downloads/snapshots/3.12/composite.index
new file mode 100644
index 0000000..30020cc
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/3.12/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.12.*/ -mindepth 1 -maxdepth 1 -type d | sort -r | head -n 10)
+NAME="Mylyn 3.12 Snapshots for Eclipse 3.8, 4.3 and 4.4"
diff --git a/org.eclipse.mylyn-downloads/snapshots/3.13/composite.index b/org.eclipse.mylyn-downloads/snapshots/3.13/composite.index
new file mode 100644
index 0000000..e642d42
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/3.13/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.13.*/ -mindepth 1 -maxdepth 1 -type d | sort -r | head -n 10)
+NAME="Mylyn 3.13 Snapshots for Eclipse 3.8, 4.3 and 4.4"
diff --git a/org.eclipse.mylyn-downloads/snapshots/3.14/composite.index b/org.eclipse.mylyn-downloads/snapshots/3.14/composite.index
new file mode 100644
index 0000000..33f0a8a
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/3.14/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.14.*/ -mindepth 1 -maxdepth 1 -type d | sort -r | head -n 10)
+NAME="Mylyn 3.14 Snapshots for Eclipse 3.8, 4.3 and 4.4"
diff --git a/org.eclipse.mylyn-downloads/snapshots/3.15/composite.index b/org.eclipse.mylyn-downloads/snapshots/3.15/composite.index
new file mode 100644
index 0000000..7705ac3
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/3.15/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.15.*/ -mindepth 1 -maxdepth 1 -type d | sort -r | head -n 10)
+NAME="Mylyn 3.15 Snapshots for Eclipse 3.8, 4.3 and 4.4"
diff --git a/org.eclipse.mylyn-downloads/snapshots/3.16/composite.index b/org.eclipse.mylyn-downloads/snapshots/3.16/composite.index
new file mode 100644
index 0000000..e67881d
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/3.16/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.16.*/ -mindepth 1 -maxdepth 1 -type d | sort -r | head -n 10)
+NAME="Mylyn 3.16 Snapshots for Eclipse 3.8, 4.4 and 4.5"
diff --git a/org.eclipse.mylyn-downloads/snapshots/3.17/composite.index b/org.eclipse.mylyn-downloads/snapshots/3.17/composite.index
new file mode 100644
index 0000000..21d856b
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/3.17/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.17.*/ -mindepth 1 -maxdepth 1 -type d | sort -r | head -n 10)
+NAME="Mylyn 3.17 Snapshots for Eclipse 3.8, 4.4 and 4.5"
diff --git a/org.eclipse.mylyn-downloads/snapshots/3.18/composite.index b/org.eclipse.mylyn-downloads/snapshots/3.18/composite.index
new file mode 100644
index 0000000..850a796
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/3.18/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.18.*/ -mindepth 1 -maxdepth 1 -type d | sort -r | head -n 10)
+NAME="Mylyn 3.18 Snapshots for Eclipse 3.8, 4.4 and 4.5"
diff --git a/org.eclipse.mylyn-downloads/snapshots/3.19/composite.index b/org.eclipse.mylyn-downloads/snapshots/3.19/composite.index
new file mode 100644
index 0000000..f8e0757
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/3.19/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.19.*/ -mindepth 1 -maxdepth 1 -type d | sort -r | head -n 10)
+NAME="Mylyn 3.19 Snapshots for Eclipse 3.8, 4.4 and 4.5"
diff --git a/org.eclipse.mylyn-downloads/snapshots/3.20/composite.index b/org.eclipse.mylyn-downloads/snapshots/3.20/composite.index
new file mode 100644
index 0000000..2afc6ed
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/3.20/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.20.*/ -mindepth 1 -maxdepth 1 -type d | sort -r | head -n 10)
+NAME="Mylyn 3.20 Snapshots for Eclipse 4.5 and 4.6"
diff --git a/org.eclipse.mylyn-downloads/snapshots/3.21/composite.index b/org.eclipse.mylyn-downloads/snapshots/3.21/composite.index
new file mode 100644
index 0000000..4bfbf41
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/3.21/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.21.*/ -mindepth 1 -maxdepth 1 -type d | sort -r | head -n 10)
+NAME="Mylyn 3.21 Snapshots for Eclipse 4.5 and 4.6"
diff --git a/org.eclipse.mylyn-downloads/snapshots/3.22/composite.index b/org.eclipse.mylyn-downloads/snapshots/3.22/composite.index
new file mode 100644
index 0000000..0bc4e70
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/3.22/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.22.*/ -mindepth 1 -maxdepth 1 -type d | sort -r | head -n 10)
+NAME="Mylyn 3.22 Snapshots for Eclipse 4.5 and 4.6"
diff --git a/org.eclipse.mylyn-downloads/snapshots/3.5/composite.index b/org.eclipse.mylyn-downloads/snapshots/3.5/composite.index
new file mode 100644
index 0000000..6a66212
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/3.5/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.5.*/*/ -maxdepth 0 | sort -r | head -n 10)
+NAME="Mylyn 3.5 Snapshots for Eclipse 3.5, 3.6 and 3.7"
diff --git a/org.eclipse.mylyn-downloads/snapshots/3.6/composite.index b/org.eclipse.mylyn-downloads/snapshots/3.6/composite.index
new file mode 100644
index 0000000..299da69
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/3.6/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.6.*/*/ -maxdepth 0 | sort -r | head -n 10)
+NAME="Mylyn 3.6 Snapshots for Eclipse 3.5, 3.6 and 3.7"
diff --git a/org.eclipse.mylyn-downloads/snapshots/3.7/composite.index b/org.eclipse.mylyn-downloads/snapshots/3.7/composite.index
new file mode 100644
index 0000000..a1ff35f
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/3.7/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.7.*/*/ -maxdepth 0 | sort -r | head -n 10)
+NAME="Mylyn 3.7 Snapshots for Eclipse 3.6 and 3.7"
diff --git a/org.eclipse.mylyn-downloads/snapshots/3.8/composite.index b/org.eclipse.mylyn-downloads/snapshots/3.8/composite.index
new file mode 100644
index 0000000..457291d
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/3.8/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.8.*/*/ -maxdepth 0 | sort -r | head -n 10)
+NAME="Mylyn 3.8 Snapshots for Eclipse 3.7, 3.8 and 4.2"
diff --git a/org.eclipse.mylyn-downloads/snapshots/3.9/composite.index b/org.eclipse.mylyn-downloads/snapshots/3.9/composite.index
new file mode 100644
index 0000000..3533276
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/3.9/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.9.*/ -mindepth 1 -maxdepth 1 -type d | sort -r | head -n 10)
+NAME="Mylyn 3.9 Snapshots for Eclipse 3.8, 4.2 and 4.3"
diff --git a/org.eclipse.mylyn-downloads/snapshots/galileo/composite.index b/org.eclipse.mylyn-downloads/snapshots/galileo/composite.index
new file mode 100644
index 0000000..10e900c
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/galileo/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.[56].*/*/ -maxdepth 0 | sort -r | head -n 3)
+NAME="Mylyn Snapshots for Eclipse Galileo"
diff --git a/org.eclipse.mylyn-downloads/snapshots/helios/composite.index b/org.eclipse.mylyn-downloads/snapshots/helios/composite.index
new file mode 100644
index 0000000..0f764d7
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/helios/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.[5678].*/*/ -maxdepth 0 | sort -r | head -n 3)
+NAME="Mylyn Snapshots for Eclipse Helios"
diff --git a/org.eclipse.mylyn-downloads/snapshots/indigo/composite.index b/org.eclipse.mylyn-downloads/snapshots/indigo/composite.index
new file mode 100644
index 0000000..ef3e5f6
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/indigo/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.[5678].*/*/ -maxdepth 0 | sort -r | head -n 3)
+NAME="Mylyn Snapshots for Eclipse Indigo"
diff --git a/org.eclipse.mylyn-downloads/snapshots/juno/composite.index b/org.eclipse.mylyn-downloads/snapshots/juno/composite.index
new file mode 100644
index 0000000..571e1b4
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/juno/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.[89].*/*/ -maxdepth 0 | sort -r | head -n 3)
+NAME="Mylyn Snapshots for Eclipse Juno"
diff --git a/org.eclipse.mylyn-downloads/snapshots/kepler/composite.index b/org.eclipse.mylyn-downloads/snapshots/kepler/composite.index
new file mode 100644
index 0000000..32b97a4
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/kepler/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.[9].*/*/ -maxdepth 0 | sort -r | head -n 3)
+NAME="Mylyn Snapshots for Eclipse Kepler"
diff --git a/org.eclipse.mylyn-downloads/snapshots/luna/composite.index b/org.eclipse.mylyn-downloads/snapshots/luna/composite.index
new file mode 100644
index 0000000..a6d4ef8
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/luna/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.14.*/*/ -maxdepth 0 | sort -r | head -n 3)
+NAME="Mylyn Snapshots for Eclipse Luna"
diff --git a/org.eclipse.mylyn-downloads/snapshots/mars/composite.index b/org.eclipse.mylyn-downloads/snapshots/mars/composite.index
new file mode 100644
index 0000000..9a5ee6d
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/mars/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.19.*/ -mindepth 1 -maxdepth 1 -type d | sort -r | head -n 10)
+NAME="Mylyn Snapshots for Eclipse Mars"
diff --git a/org.eclipse.mylyn-downloads/snapshots/neon/composite.index b/org.eclipse.mylyn-downloads/snapshots/neon/composite.index
new file mode 100644
index 0000000..6dec962
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/neon/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.21.*/ -mindepth 1 -maxdepth 1 -type d | sort -r | head -n 10)
+NAME="Mylyn Snapshots for Eclipse Neon"
diff --git a/org.eclipse.mylyn-downloads/snapshots/oxygen/composite.index b/org.eclipse.mylyn-downloads/snapshots/oxygen/composite.index
new file mode 100644
index 0000000..7cb1c54
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/oxygen/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.22.*/ -mindepth 1 -maxdepth 1 -type d | sort -r | head -n 10)
+NAME="Mylyn Snapshots for Eclipse Oxygen"
diff --git a/org.eclipse.mylyn-downloads/snapshots/weekly/composite.index b/org.eclipse.mylyn-downloads/snapshots/weekly/composite.index
new file mode 100644
index 0000000..48d7bad
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/snapshots/weekly/composite.index
@@ -0,0 +1,2 @@
+DIRS=$(find ../../drops/3.2*/*/ -maxdepth 0 | sort -r | head -n 1)
+NAME="Mylyn Weekly for Eclipse 4.5 and later"
diff --git a/org.eclipse.mylyn-downloads/update-composite.sh b/org.eclipse.mylyn-downloads/update-composite.sh
new file mode 100755
index 0000000..0eede8d
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/update-composite.sh
@@ -0,0 +1,80 @@
+#!/bin/bash -e
+
+update() {
+source composite.index
+
+#if [ "$DIRS" == "" ]; then
+#  echo "missing DIRS in $PWD/composite.index"
+#  exit 1
+#fi
+
+if [ "$NAME" == "" ]; then
+  echo "missing NAME in $PWD/composite.index"
+  exit 1
+fi
+
+FILE=compositeArtifacts.xml
+TAG=compositeArtifactRepository
+TYPE=org.eclipse.equinox.internal.p2.artifact.repository.CompositeArtifactRepository
+
+compose
+
+FILE=compositeContent.xml
+TAG=compositeMetadataRepository
+TYPE=org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepository
+
+compose
+
+cat > p2.index <<EOF
+version=1
+metadata.repository.factory.order=compositeContent.xml,!
+artifact.repository.factory.order=compositeArtifacts.xml,!
+EOF
+}
+
+compose() {
+echo "Updating $PWD/$FILE"
+
+cat > $FILE <<EOF
+<?xml version='1.0' encoding='UTF-8'?>
+<?TAG version='1.0.0'?>
+<repository name='NAME' type='TYPE' version='1.0.0'>
+  <properties size='2'>
+    <property name='p2.compressed' value='true'/>
+    <property name='p2.timestamp' value='TIMESTAMP'/>
+  </properties>
+  <children size='CHILD_COUNT'>
+EOF
+
+sed -i -e "s/TAG/$TAG/" -e "s/TYPE/$TYPE/" $FILE
+sed -i -e "s/NAME/$NAME/" -e "s/TIMESTAMP/$TIMESTAMP/" $FILE
+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
+
+cat >> $FILE <<EOF
+  </children>
+</repository>
+EOF
+}
+
+
+TIMESTAMP=$(date +%s)000
+
+if [ "$1" == "-r" ]; then
+ for i in $(find -name composite.index); do
+  (cd $(dirname $i); update)
+  setfacl -m u:55011:rwx $(dirname $i)/*.xml || true
+ done
+elif [ -e composite.index ]; then
+ update
+else
+ echo "composite.index not found"
+ exit 1
+fi
+
diff --git a/org.eclipse.mylyn-downloads/update-repositories.sh b/org.eclipse.mylyn-downloads/update-repositories.sh
new file mode 100755
index 0000000..9eed532
--- /dev/null
+++ b/org.eclipse.mylyn-downloads/update-repositories.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+set -e
+
+BASEDIR=$(cd $(dirname $0) && pwd)
+TARGET=/home/data/httpd/download.eclipse.org/mylyn
+
+cp -r snapshots releases $TARGET
+
+cd $TARGET
+$BASEDIR/update-composite.sh -r
diff --git a/org.eclipse.mylyn-site/pack-and-sign/update-composite.sh b/org.eclipse.mylyn-site/pack-and-sign/update-composite.sh
index ccd45af..0eede8d 100755
--- a/org.eclipse.mylyn-site/pack-and-sign/update-composite.sh
+++ b/org.eclipse.mylyn-site/pack-and-sign/update-composite.sh
@@ -24,6 +24,12 @@
 TYPE=org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepository
 
 compose
+
+cat > p2.index <<EOF
+version=1
+metadata.repository.factory.order=compositeContent.xml,!
+artifact.repository.factory.order=compositeArtifacts.xml,!
+EOF
 }
 
 compose() {