lttng.ui.test: Enable SymbolMap test
[deliverable/tracecompass.git] / releng / scripts / 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
ccefec92 21find ../.. -maxdepth 1 -name "pom.xml" -exec python update_root_pom_versions.py {} $oldVersion $newVersion \;
4aaa0b56 22#Update pom.xml with <parent> tag with the new version of the root pom
ccefec92 23find ../.. -name "pom.xml" -type f -exec python update_parent_pom_versions.py {} $oldVersion $newVersion \;
4aaa0b56 24#Update doc plugin versions
ccefec92 25find ../../doc -name "MANIFEST.MF" -exec sed -i -e s/$oldVersion.qualifier/$newVersion.qualifier/g {} \;
4aaa0b56
MAL
26
27#Update feature versions (feature.xml)
ccefec92 28find ../.. -name "feature.xml" -exec sed -i -e s/$oldVersion.qualifier/$newVersion.qualifier/g {} \;
4aaa0b56
MAL
29
30#Update branding plugin manifest.MF
ccefec92 31sed -i -e s/$oldVersion.qualifier/$newVersion.qualifier/g ../../rcp/org.eclipse.tracecompass.rcp.branding/META-INF/MANIFEST.MF
4aaa0b56 32#rcp/org.eclipse.tracecompass.rcp.branding/plugin.xml aboutText
ccefec92 33sed -i -e s/$oldVersion/$newVersion/g ../../rcp/org.eclipse.tracecompass.rcp.branding/plugin.xml
4aaa0b56
MAL
34
35#Update .product rcp/org.eclipse.tracecompass.rcp.product/tracing.product
ccefec92 36sed -i -e s/$oldVersion/$newVersion/g ../../rcp/org.eclipse.tracecompass.rcp.product/tracing.product
4aaa0b56
MAL
37
38#Update rcp.ui plugin rcp/org.eclipse.tracecompass.rcp.ui/META-INF/MANIFEST.MF
ccefec92 39sed -i -e s/$oldVersion.qualifier/$newVersion.qualifier/g ../../rcp/org.eclipse.tracecompass.rcp.ui/META-INF/MANIFEST.MF
This page took 0.026822 seconds and 5 git commands to generate.