Commit | Line | Data |
---|---|---|
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 | ||
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 | |
ccefec92 | 21 | find ../.. -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 | 23 | find ../.. -name "pom.xml" -type f -exec python update_parent_pom_versions.py {} $oldVersion $newVersion \; |
4aaa0b56 | 24 | #Update doc plugin versions |
ccefec92 | 25 | find ../../doc -name "MANIFEST.MF" -exec sed -i -e s/$oldVersion.qualifier/$newVersion.qualifier/g {} \; |
4aaa0b56 MAL |
26 | |
27 | #Update feature versions (feature.xml) | |
ccefec92 | 28 | find ../.. -name "feature.xml" -exec sed -i -e s/$oldVersion.qualifier/$newVersion.qualifier/g {} \; |
4aaa0b56 MAL |
29 | |
30 | #Update branding plugin manifest.MF | |
ccefec92 | 31 | sed -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 | 33 | sed -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 | 36 | sed -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 | 39 | sed -i -e s/$oldVersion.qualifier/$newVersion.qualifier/g ../../rcp/org.eclipse.tracecompass.rcp.ui/META-INF/MANIFEST.MF |