[541835] Adding support for publishing "latest" repositories.
diff --git a/releng/org.eclipse.uml2.build-feature/feature.xml b/releng/org.eclipse.uml2.build-feature/feature.xml
index 2d525c1..1857900 100644
--- a/releng/org.eclipse.uml2.build-feature/feature.xml
+++ b/releng/org.eclipse.uml2.build-feature/feature.xml
@@ -2,7 +2,7 @@
 <feature
       id="org.eclipse.uml2.build"
       label="Unified Modeling Language 2.x (UML2) Build Site"
-      version="5.5.0.qualifier"
+      version="5.6.0.qualifier"
       provider-name="%feature.provider-name"
       image="eclipse_update_120.jpg"
       license-feature="org.eclipse.license"
@@ -13,7 +13,7 @@
    </description>
 
    <copyright url="http://www.eclipse.org/legal/epl-v20.html">
-      Copyright (c) 2011, 2018 CEA and others.
+      Copyright (c) 2011, 2019 CEA and others.
 All rights reserved.   This program and the accompanying materials
 are made available under the terms of the Eclipse Public License v2.0
 which accompanies this distribution, and is available at
diff --git a/releng/org.eclipse.uml2.build-feature/pom.xml b/releng/org.eclipse.uml2.build-feature/pom.xml
index 82dcc7f..4fc98c0 100644
--- a/releng/org.eclipse.uml2.build-feature/pom.xml
+++ b/releng/org.eclipse.uml2.build-feature/pom.xml
@@ -10,7 +10,7 @@
   </parent>
   <groupId>org.eclipse.uml2</groupId>
   <artifactId>org.eclipse.uml2.build</artifactId>
-  <version>5.5.0-SNAPSHOT</version>
+  <version>5.6.0-SNAPSHOT</version>
   <packaging>eclipse-repository</packaging>
   <build>
     <resources>
diff --git a/releng/org.eclipse.uml2.build-feature/updates.sh b/releng/org.eclipse.uml2.build-feature/updates.sh
index 922afa4..dcd65a3 100644
--- a/releng/org.eclipse.uml2.build-feature/updates.sh
+++ b/releng/org.eclipse.uml2.build-feature/updates.sh
@@ -61,4 +61,81 @@
 
   popd
 
+  if [ "${PUBLISH__BUILD_TYPE}" = "I" ]
+  then
+    pushd ${updatesFolder}interim
+
+      mkdir newlatest
+      chgrp -R ${group} newlatest
+      chmod -R g+w newlatest
+  
+      pushd ${updatesFolder}interim/newlatest
+        ${manageComposite} add -Dchild.repository=../../${PUBLISH__VERSION:0:3}-I-builds/${buildFolder} -Dcomposite.name="${projectRepoName} Latest Interim Build Site"
+      popd
+
+      if [ -d "latest" ]
+      then
+        mv latest oldlatest
+      fi
+
+      mv newlatest latest
+
+      if [ -d "oldlatest" ]
+      then
+        rm -rf oldlatest
+      fi
+
+    popd
+  elif [ "${PUBLISH__BUILD_TYPE}" = "S" ]
+  then
+    pushd ${updatesFolder}milestones
+
+      mkdir newlatest
+      chgrp -R ${group} newlatest
+      chmod -R g+w newlatest
+  
+      pushd ${updatesFolder}milestones/newlatest
+        ${manageComposite} add -Dchild.repository=../../${PUBLISH__VERSION:0:3}milestones/${buildFolder} -Dcomposite.name="${projectRepoName} Latest Milestone Site"
+      popd
+
+      if [ -d "latest" ]
+      then
+        mv latest oldlatest
+      fi
+
+      mv newlatest latest
+
+      if [ -d "oldlatest" ]
+      then
+        rm -rf oldlatest
+      fi
+
+    popd
+  elif [ "${PUBLISH__BUILD_TYPE}" = "R" ]
+  then
+    pushd ${updatesFolder}releases
+
+      mkdir newlatest
+      chgrp -R ${group} newlatest
+      chmod -R g+w newlatest
+  
+      pushd ${updatesFolder}releases/newlatest
+        ${manageComposite} add -Dchild.repository=../../${PUBLISH__VERSION:0:3}/${buildFolder} -Dcomposite.name="${projectRepoName} Latest Release Site"
+      popd
+
+      if [ -d "latest" ]
+      then
+        mv latest oldlatest
+      fi
+
+      mv newlatest latest
+
+      if [ -d "oldlatest" ]
+      then
+        rm -rf oldlatest
+      fi
+
+    popd
+  fi
+
 fi
\ No newline at end of file