Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMat Booth2020-03-06 18:17:00 +0000
committerMat Booth2020-03-06 18:17:00 +0000
commitabfe1146a454432097888cc781d7da98d12b91e5 (patch)
treea58dd66fb4b57c95e5cb9d07d36d08cb7a1039e0 /scripts/updateProductVersion.sh
parente51c457d88a5bbe21c2bc446e597fb65d07375df (diff)
downloadeclipse.platform.releng.aggregator-abfe1146a454432097888cc781d7da98d12b91e5.tar.gz
eclipse.platform.releng.aggregator-abfe1146a454432097888cc781d7da98d12b91e5.tar.xz
eclipse.platform.releng.aggregator-abfe1146a454432097888cc781d7da98d12b91e5.zip
Bug 560872 - POM and product version change for 4.16 release
Change-Id: I98f087d4ca3c39e9b63d1c8f308b45135e9ce412 Signed-off-by: Mat Booth <mat.booth@redhat.com>
Diffstat (limited to 'scripts/updateProductVersion.sh')
-rwxr-xr-xscripts/updateProductVersion.sh34
1 files changed, 18 insertions, 16 deletions
diff --git a/scripts/updateProductVersion.sh b/scripts/updateProductVersion.sh
index 62f89c469..a3d31e379 100755
--- a/scripts/updateProductVersion.sh
+++ b/scripts/updateProductVersion.sh
@@ -1,19 +1,21 @@
#############################README##################################################################################
#Before running this script configure the source and target POM versions correctly, follow detailed steps below:
-#1. Update "updateProductVersion.sh" script with proper source and target version properly for all 4 mentioned files.
-#2. From Shell command prompt go to "eclipse.platform.releng.aggregator" directory
-#3. Then we should run the script using command: ./scripts/updateProductVersion.sh
-#4. Above script will take around less than a minute max to update the complete Eclipse sources.
-#5. Make sure to create the gerrit for for "eclipse.platform.releng.aggregator" in first place:
-#6. gerrit build will fail for this change, you can commit without gerrit validation
-#7. After committing above change, you need to deploy the POM for the new Eclipse version 4.14
-#8. e.g. For new Eclipse release 4.14 [Note: version value will change depending on the release] rub below jobs:
-# https://ci.eclipse.org/releng/job/deploy-eclipse-platform-parent-pom-4.14/
-# https://ci.eclipse.org/releng/job/deploy-eclipse-sdk-target-pom-4.14/
-#9. Now create the gerrit patches for all sub-modules which should pass.
+# 1. Update "updateProductVersion.sh" script with proper source and target version properly for all 4 mentioned files.
+# 2. From Shell command prompt go to "eclipse.platform.releng.aggregator" directory
+# 3. Then we should run the script using command: ./scripts/updateProductVersion.sh
+# 4. Above script will take around less than a minute max to update the complete Eclipse sources.
+# 5. Make sure to create the gerrit for for "eclipse.platform.releng.aggregator" in first place:
+# 6. gerrit build will fail for this change, you can commit without gerrit validation
+# 7. After committing above change, you need to deploy the POM for the new Eclipse version 4.16
+# 8. e.g. For new Eclipse release 4.16 [Note: version value will change depending on the release] rub below jobs:
+# https://ci.eclipse.org/releng/job/deploy-eclipse-platform-parent-pom-4.16/
+# https://ci.eclipse.org/releng/job/deploy-eclipse-sdk-target-pom-4.16/
+# 9. Now create the gerrit patches for all sub-modules which should pass.
#10. Finally commit all the modified files in each of the individual submodules of Releng.
-cd ..
-find `pwd` -name pom.xml -exec sed -i 's/4.14.0/4.15.0/g' {} \;
-find `pwd` -name MANIFEST.MF -exec sed -i 's/4.14.0/4.15.0/g' {} \;
-find `pwd` -name *.product -exec sed -i 's/4.14.0/4.15.0/g' {} \;
-find `pwd` -name feature.xml -exec sed -i 's/4.14.0/4.15.0/g' {} \;
+
+script_location=$( (cd $(dirname $0) && pwd) )
+
+find $script_location/.. -name pom.xml -exec sed -i 's/4.15.0/4.16.0/g' {} \;
+find $script_location/.. -name MANIFEST.MF -exec sed -i 's/4.15.0/4.16.0/g' {} \;
+find $script_location/.. -type f -name *.product -exec sed -i 's/4.15.0/4.16.0/g' {} \;
+find $script_location/.. -name feature.xml -exec sed -i 's/4.15.0/4.16.0/g' {} \;

Back to the top