rcp: Script to enable automatic updates at start for stable releases
[deliverable/tracecompass.git] / releng / update_version.sh
CommitLineData
4aaa0b56
MAL
1###############################################################################
2# Copyright (c) 2016 Ericsson
3#
4# All rights reserved. This program and the accompanying materials
5# are made available under the terms of the Eclipse Public License v1.0
6# which accompanies this distribution, and is available at
7# http://www.eclipse.org/legal/epl-v10.html
8###############################################################################
9
10oldVersion=$1
11newVersion=$2
12
13if [ -z "$oldVersion" -o -z "$newVersion" ]; then
14 echo "usage: $0 oldversion newversion"
15 exit 1
16fi
17
18echo Changing $oldVersion to $newVersion
19
20#Update root pom version
21find .. -maxdepth 1 -name "pom.xml" -exec python update_root_pom_versions.py {} $oldVersion $newVersion \;
22#Update pom.xml with <parent> tag with the new version of the root pom
23find .. -name "pom.xml" -type f -exec python update_parent_pom_versions.py {} $oldVersion $newVersion \;
24#Update doc plugin versions
25find ../doc -name "MANIFEST.MF" -exec sed -i -e s/$oldVersion.qualifier/$newVersion.qualifier/g {} \;
26
27#Update feature versions (feature.xml)
28find .. -name "feature.xml" -exec sed -i -e s/$oldVersion.qualifier/$newVersion.qualifier/g {} \;
29
30#Update branding plugin manifest.MF
31sed -i -e s/$oldVersion.qualifier/$newVersion.qualifier/g ../rcp/org.eclipse.tracecompass.rcp.branding/META-INF/MANIFEST.MF
32#rcp/org.eclipse.tracecompass.rcp.branding/plugin.xml aboutText
33sed -i -e s/$oldVersion/$newVersion/g ../rcp/org.eclipse.tracecompass.rcp.branding/plugin.xml
34
35#Update .product rcp/org.eclipse.tracecompass.rcp.product/tracing.product
36sed -i -e s/$oldVersion/$newVersion/g ../rcp/org.eclipse.tracecompass.rcp.product/tracing.product
37
38#Update rcp.ui plugin rcp/org.eclipse.tracecompass.rcp.ui/META-INF/MANIFEST.MF
39sed -i -e s/$oldVersion.qualifier/$newVersion.qualifier/g ../rcp/org.eclipse.tracecompass.rcp.ui/META-INF/MANIFEST.MF
This page took 0.049898 seconds and 5 git commands to generate.