lttng.ui.test: Enable SymbolMap test
[deliverable/tracecompass.git] / releng / scripts / update_version.sh
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
10 oldVersion=$1
11 newVersion=$2
12
13 if [ -z "$oldVersion" -o -z "$newVersion" ]; then
14 echo "usage: $0 oldversion newversion"
15 exit 1
16 fi
17
18 echo Changing $oldVersion to $newVersion
19
20 #Update root pom version
21 find ../.. -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
23 find ../.. -name "pom.xml" -type f -exec python update_parent_pom_versions.py {} $oldVersion $newVersion \;
24 #Update doc plugin versions
25 find ../../doc -name "MANIFEST.MF" -exec sed -i -e s/$oldVersion.qualifier/$newVersion.qualifier/g {} \;
26
27 #Update feature versions (feature.xml)
28 find ../.. -name "feature.xml" -exec sed -i -e s/$oldVersion.qualifier/$newVersion.qualifier/g {} \;
29
30 #Update branding plugin manifest.MF
31 sed -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
33 sed -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
36 sed -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
39 sed -i -e s/$oldVersion.qualifier/$newVersion.qualifier/g ../../rcp/org.eclipse.tracecompass.rcp.ui/META-INF/MANIFEST.MF
This page took 0.032622 seconds and 5 git commands to generate.