457998: update snapshot sites to 3.14

Change-Id: I18bdb3bc6e3df568efb14417a51a304b6ba6f5bc
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=457998
diff --git a/org.eclipse.mylyn-parent/pom.xml b/org.eclipse.mylyn-parent/pom.xml
index fd6a204..2f7ea0e 100644
--- a/org.eclipse.mylyn-parent/pom.xml
+++ b/org.eclipse.mylyn-parent/pom.xml
@@ -76,14 +76,14 @@
 
     <orbit-repository-url>http://download.eclipse.org/tools/orbit/downloads/drops/R20140525021250/repository/</orbit-repository-url>
     <jdt-annotation-repository-url>http://download.eclipse.org/mylyn/snapshots/jdt-annotation/</jdt-annotation-repository-url>
-    <mylyn-repository-url>http://download.eclipse.org/mylyn/snapshots/nightly/</mylyn-repository-url>
-    <mylyn-builds-repository-url>http://download.eclipse.org/mylyn/snapshots/nightly/builds/</mylyn-builds-repository-url>
-    <mylyn-commons-repository-url>http://download.eclipse.org/mylyn/snapshots/nightly/commons/</mylyn-commons-repository-url>
-    <mylyn-context-repository-url>http://download.eclipse.org/mylyn/snapshots/nightly/context/</mylyn-context-repository-url>
-    <mylyn-docs-repository-url>http://download.eclipse.org/mylyn/snapshots/nightly/docs/</mylyn-docs-repository-url>
-    <mylyn-reviews-repository-url>http://download.eclipse.org/mylyn/snapshots/nightly/reviews/</mylyn-reviews-repository-url>
-    <mylyn-tasks-repository-url>http://download.eclipse.org/mylyn/snapshots/nightly/tasks/</mylyn-tasks-repository-url>
-    <mylyn-versions-repository-url>http://download.eclipse.org/mylyn/snapshots/nightly/versions/</mylyn-versions-repository-url>
+    <mylyn-repository-url>http://download.eclipse.org/mylyn/snapshots/3.14/</mylyn-repository-url>
+    <mylyn-builds-repository-url>http://download.eclipse.org/mylyn/snapshots/3.14/</mylyn-builds-repository-url>
+    <mylyn-commons-repository-url>http://download.eclipse.org/mylyn/snapshots/3.14/</mylyn-commons-repository-url>
+    <mylyn-context-repository-url>http://download.eclipse.org/mylyn/snapshots/3.14/</mylyn-context-repository-url>
+    <mylyn-docs-repository-url>http://download.eclipse.org/mylyn/snapshots/3.14/</mylyn-docs-repository-url>
+    <mylyn-reviews-repository-url>http://download.eclipse.org/mylyn/snapshots/3.14/</mylyn-reviews-repository-url>
+    <mylyn-tasks-repository-url>http://download.eclipse.org/mylyn/snapshots/3.14/</mylyn-tasks-repository-url>
+    <mylyn-versions-repository-url>http://download.eclipse.org/mylyn/snapshots/3.14/</mylyn-versions-repository-url>
   </properties>
 
   <mailingLists>
diff --git a/org.eclipse.mylyn.releng/bin/update-versions.sh b/org.eclipse.mylyn.releng/bin/update-versions.sh
index 27e2a22..d98000d 100755
--- a/org.eclipse.mylyn.releng/bin/update-versions.sh
+++ b/org.eclipse.mylyn.releng/bin/update-versions.sh
@@ -11,6 +11,14 @@
 find . -name feature.xml | xargs sed -i~ -e "s/\(mylyn.* version=\"\)$OLD\(\" match=\"greaterOrEqual\".*\)/\1$NEW\2/"
 }
 
+updateSnapshotSitesForSR() {
+MAJOR_MINOR=$1
+echo "Updating snapshot sites to $MAJOR_MINOR"
+sed -i~ -e "s#http://download.eclipse.org/mylyn/snapshots/nightly.*/<#http://download.eclipse.org/mylyn/snapshots/$MAJOR_MINOR/<#" \
+org.eclipse.mylyn/org.eclipse.mylyn-parent/pom.xml
+}
+
+
 #mvn -Dtycho.mode=maven org.sonatype.tycho:tycho-versions-plugin:set-version -DnewVersion=1.4.1-SNAPSHOT
 
 update 1.6.0  1.6.1 # builds, versions, org.eclipse.mylyn.commons.identiy/notifications/repositories
@@ -18,5 +26,9 @@
 update 2.5.0  2.5.1 # reviews
 update 3.14.0 3.14.1 
 update 5.10.0 5.10.1  # CDT
- 
+
+# Must do this for first SR on a branch
+#updateSnapshotSitesForSR 3.14
+
+
 #grep Bundle-Version */META-INF/MANIFEST.MF | grep -v 0.9.0 | grep -v 3.7.0 | grep -v 1.5.0