As scripts accumulate, it's better to have them under a folder.
Change-Id: I53cbb08c19e0ae43c8529f2b3dcbb42a935e187b
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/79475
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
+++ /dev/null
-#!/bin/bash
-###############################################################################
-# Copyright (c) 2015 Ericsson, EfficiOS Inc. and others
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# Marc-André Laperle - Initial version
-# Alexandre Montplaisir - Initial version
-###############################################################################
-
-# Point ourselves to the script's directory (so it can be run "out-of-tree")
-DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
-output=`mvn versions:display-plugin-updates -U -f $DIR/../pom.xml`
-
-#filter only updates and show unique
-summary=`echo "${output}" | grep "\\->" | sort | uniq`
-echo -e "Summary:\n${summary}"
-
-#remove empty lines and count lines
-outdatedNb=`echo "${summary}" | sed '/^\s*$/d' | wc -l`
-echo Number of outdated plugins: "${outdatedNb}"
-exit ${outdatedNb}
+++ /dev/null
-#!/bin/bash
-###############################################################################
-# Copyright (c) 2016 Ericsson
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-###############################################################################
-
-# A simple script that automates the step when branching from master to a
-# stable branch.
-
-source set_stable_update_site.sh
-source set_automatic_updates.sh
-
--- /dev/null
+#!/bin/bash
+###############################################################################
+# Copyright (c) 2015 Ericsson, EfficiOS Inc. and others
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# Marc-André Laperle - Initial version
+# Alexandre Montplaisir - Initial version
+###############################################################################
+
+# Point ourselves to the script's directory (so it can be run "out-of-tree")
+DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
+output=`mvn versions:display-plugin-updates -U -f $DIR/../../pom.xml`
+
+#filter only updates and show unique
+summary=`echo "${output}" | grep "\\->" | sort | uniq`
+echo -e "Summary:\n${summary}"
+
+#remove empty lines and count lines
+outdatedNb=`echo "${summary}" | sed '/^\s*$/d' | wc -l`
+echo Number of outdated plugins: "${outdatedNb}"
+exit ${outdatedNb}
--- /dev/null
+#!/bin/bash
+###############################################################################
+# Copyright (c) 2016 Ericsson
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+###############################################################################
+
+# A simple script that automates the step when branching from master to a
+# stable branch.
+
+source set_stable_update_site.sh
+source set_automatic_updates.sh
+
--- /dev/null
+#!/bin/bash
+###############################################################################
+# Copyright (c) 2016 Ericsson
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+###############################################################################
+
+# A simple script that sets the rcp to automatically update at startup by
+# default. This sets the preference through plugin_customization.ini
+# See https://bugs.eclipse.org/bugs/show_bug.cgi?id=499247
+
+PATH_TO_PREFERENCE_FILE="../../rcp/org.eclipse.tracecompass.rcp.branding/plugin_customization.ini"
+
+OUTPUT=$(cat $PATH_TO_PREFERENCE_FILE | grep org.eclipse.equinox.p2.ui.sdk.scheduler | grep enabled)
+if [[ -z "$OUTPUT" ]];
+then
+ echo "Setting Automatic update"
+ echo "
+# check for updates every time Trace Compass starts. This should only be done in stable releases.
+# https://bugs.eclipse.org/bugs/show_bug.cgi?id=499247
+org.eclipse.equinox.p2.ui.sdk.scheduler/enabled=true" >> $PATH_TO_PREFERENCE_FILE
+ CHECK_OUTPUT=$(cat $PATH_TO_PREFERENCE_FILE | grep org.eclipse.equinox.p2.ui.sdk.scheduler | grep enabled)
+ if [[ -z "$CHECK_OUTPUT" ]];
+ then
+ echo "Failed!"
+ else
+ echo "Success!"
+ fi
+else
+ echo "Automatic update already set?"
+fi
+
--- /dev/null
+#!/bin/bash
+###############################################################################
+# Copyright (c) 2016 Ericsson
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+###############################################################################
+
+# A simple script that sets the rcp to use the stable update site. This is
+# meant to be used when the master branch is being branched into a stable
+# branch.
+
+PATH_TO_PRODUCT_FILE="../../rcp/org.eclipse.tracecompass.rcp.product/tracing.product"
+
+OUTPUT=$(cat $PATH_TO_PRODUCT_FILE | grep "<repository.*stable.*")
+if [[ -z "$OUTPUT" ]];
+then
+sed -i -E s/\(\<repository.*\)master\(.*$\)/\\1stable\\2/g $PATH_TO_PRODUCT_FILE
+ CHECK_OUTPUT=$(cat $PATH_TO_PRODUCT_FILE | grep "<repository.*stable.*")
+ if [[ -z "$CHECK_OUTPUT" ]];
+ then
+ echo "Failed!"
+ else
+ echo "Success!"
+ fi
+else
+ echo "Stable update site already set?"
+fi
+
--- /dev/null
+###############################################################################
+# Copyright (c) 2016 Ericsson
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+###############################################################################
+
+#args: filename oldversion newversion
+
+#Update pom.xml version. For example
+# <parent>
+# <artifactId>org.eclipse.tracecompass</artifactId>
+# <groupId>org.eclipse.tracecompass</groupId>
+#- <version>2.0.0-SNAPSHOT</version>
+#+ <version>2.0.1-SNAPSHOT</version>
+# </parent>
+
+import sys, re
+fileContent = open(sys.argv[1]).read()
+fileContent = re.sub("<version>" + sys.argv[2] + "-SNAPSHOT</version>(\n\s+</parent>)", "<version>" + sys.argv[3] + "-SNAPSHOT</version>\g<1>", fileContent)
+open(sys.argv[1], "w").write(fileContent)
--- /dev/null
+###############################################################################
+# Copyright (c) 2016 Ericsson
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+###############################################################################
+
+#args: filename oldversion newversion
+
+#Update root pom.xml versions. For example
+# <artifactId>org.eclipse.tracecompass</artifactId>
+#- <version>2.0.0-SNAPSHOT</version>
+#+ <version>2.0.1-SNAPSHOT</version>
+#
+# Also the target plarform:
+#
+# <classifier>${target-platform}</classifier>
+#- <version>2.0.0-SNAPSHOT</version>
+#+ <version>2.0.1-SNAPSHOT</version>
+# </artifact>
+
+import sys, re
+fileContent = open(sys.argv[1]).read()
+fileContent = re.sub("(<artifactId>org.eclipse.tracecompass.*</artifactId>\n\s+)<version>" + sys.argv[2] + "-SNAPSHOT</version>", "\g<1><version>" + sys.argv[3] + "-SNAPSHOT</version>", fileContent)
+# Also the target platform version being used
+fileContent = re.sub("<version>" + sys.argv[2] + "-SNAPSHOT</version>(\n\s+</artifact>)", "<version>" + sys.argv[3] + "-SNAPSHOT</version>\g<1>", fileContent)
+open(sys.argv[1], "w").write(fileContent)
--- /dev/null
+###############################################################################
+# Copyright (c) 2016 Ericsson
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+###############################################################################
+
+oldVersion=$1
+newVersion=$2
+
+if [ -z "$oldVersion" -o -z "$newVersion" ]; then
+ echo "usage: $0 oldversion newversion"
+ exit 1
+fi
+
+echo Changing $oldVersion to $newVersion
+
+#Update root pom version
+find ../.. -maxdepth 1 -name "pom.xml" -exec python update_root_pom_versions.py {} $oldVersion $newVersion \;
+#Update pom.xml with <parent> tag with the new version of the root pom
+find ../.. -name "pom.xml" -type f -exec python update_parent_pom_versions.py {} $oldVersion $newVersion \;
+#Update doc plugin versions
+find ../../doc -name "MANIFEST.MF" -exec sed -i -e s/$oldVersion.qualifier/$newVersion.qualifier/g {} \;
+
+#Update feature versions (feature.xml)
+find ../.. -name "feature.xml" -exec sed -i -e s/$oldVersion.qualifier/$newVersion.qualifier/g {} \;
+
+#Update branding plugin manifest.MF
+sed -i -e s/$oldVersion.qualifier/$newVersion.qualifier/g ../../rcp/org.eclipse.tracecompass.rcp.branding/META-INF/MANIFEST.MF
+#rcp/org.eclipse.tracecompass.rcp.branding/plugin.xml aboutText
+sed -i -e s/$oldVersion/$newVersion/g ../../rcp/org.eclipse.tracecompass.rcp.branding/plugin.xml
+
+#Update .product rcp/org.eclipse.tracecompass.rcp.product/tracing.product
+sed -i -e s/$oldVersion/$newVersion/g ../../rcp/org.eclipse.tracecompass.rcp.product/tracing.product
+
+#Update rcp.ui plugin rcp/org.eclipse.tracecompass.rcp.ui/META-INF/MANIFEST.MF
+sed -i -e s/$oldVersion.qualifier/$newVersion.qualifier/g ../../rcp/org.eclipse.tracecompass.rcp.ui/META-INF/MANIFEST.MF
+++ /dev/null
-#!/bin/bash
-###############################################################################
-# Copyright (c) 2016 Ericsson
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-###############################################################################
-
-# A simple script that sets the rcp to automatically update at startup by
-# default. This sets the preference through plugin_customization.ini
-# See https://bugs.eclipse.org/bugs/show_bug.cgi?id=499247
-
-PATH_TO_PREFERENCE_FILE="../rcp/org.eclipse.tracecompass.rcp.branding/plugin_customization.ini"
-
-OUTPUT=$(cat $PATH_TO_PREFERENCE_FILE | grep org.eclipse.equinox.p2.ui.sdk.scheduler | grep enabled)
-if [[ -z "$OUTPUT" ]];
-then
- echo "Setting Automatic update"
- echo "
-# check for updates every time Trace Compass starts. This should only be done in stable releases.
-# https://bugs.eclipse.org/bugs/show_bug.cgi?id=499247
-org.eclipse.equinox.p2.ui.sdk.scheduler/enabled=true" >> $PATH_TO_PREFERENCE_FILE
- CHECK_OUTPUT=$(cat $PATH_TO_PREFERENCE_FILE | grep org.eclipse.equinox.p2.ui.sdk.scheduler | grep enabled)
- if [[ -z "$CHECK_OUTPUT" ]];
- then
- echo "Failed!"
- else
- echo "Success!"
- fi
-else
- echo "Automatic update already set?"
-fi
-
+++ /dev/null
-#!/bin/bash
-###############################################################################
-# Copyright (c) 2016 Ericsson
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-###############################################################################
-
-# A simple script that sets the rcp to use the stable update site. This is
-# meant to be used when the master branch is being branched into a stable
-# branch.
-
-PATH_TO_PRODUCT_FILE="../rcp/org.eclipse.tracecompass.rcp.product/tracing.product"
-
-OUTPUT=$(cat $PATH_TO_PRODUCT_FILE | grep "<repository.*stable.*")
-if [[ -z "$OUTPUT" ]];
-then
-sed -i -E s/\(\<repository.*\)master\(.*$\)/\\1stable\\2/g $PATH_TO_PRODUCT_FILE
- CHECK_OUTPUT=$(cat $PATH_TO_PRODUCT_FILE | grep "<repository.*stable.*")
- if [[ -z "$CHECK_OUTPUT" ]];
- then
- echo "Failed!"
- else
- echo "Success!"
- fi
-else
- echo "Stable update site already set?"
-fi
-
+++ /dev/null
-###############################################################################
-# Copyright (c) 2016 Ericsson
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-###############################################################################
-
-#args: filename oldversion newversion
-
-#Update pom.xml version. For example
-# <parent>
-# <artifactId>org.eclipse.tracecompass</artifactId>
-# <groupId>org.eclipse.tracecompass</groupId>
-#- <version>2.0.0-SNAPSHOT</version>
-#+ <version>2.0.1-SNAPSHOT</version>
-# </parent>
-
-import sys, re
-fileContent = open(sys.argv[1]).read()
-fileContent = re.sub("<version>" + sys.argv[2] + "-SNAPSHOT</version>(\n\s+</parent>)", "<version>" + sys.argv[3] + "-SNAPSHOT</version>\g<1>", fileContent)
-open(sys.argv[1], "w").write(fileContent)
+++ /dev/null
-###############################################################################
-# Copyright (c) 2016 Ericsson
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-###############################################################################
-
-#args: filename oldversion newversion
-
-#Update root pom.xml versions. For example
-# <artifactId>org.eclipse.tracecompass</artifactId>
-#- <version>2.0.0-SNAPSHOT</version>
-#+ <version>2.0.1-SNAPSHOT</version>
-#
-# Also the target plarform:
-#
-# <classifier>${target-platform}</classifier>
-#- <version>2.0.0-SNAPSHOT</version>
-#+ <version>2.0.1-SNAPSHOT</version>
-# </artifact>
-
-import sys, re
-fileContent = open(sys.argv[1]).read()
-fileContent = re.sub("(<artifactId>org.eclipse.tracecompass.*</artifactId>\n\s+)<version>" + sys.argv[2] + "-SNAPSHOT</version>", "\g<1><version>" + sys.argv[3] + "-SNAPSHOT</version>", fileContent)
-# Also the target platform version being used
-fileContent = re.sub("<version>" + sys.argv[2] + "-SNAPSHOT</version>(\n\s+</artifact>)", "<version>" + sys.argv[3] + "-SNAPSHOT</version>\g<1>", fileContent)
-open(sys.argv[1], "w").write(fileContent)
+++ /dev/null
-###############################################################################
-# Copyright (c) 2016 Ericsson
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-###############################################################################
-
-oldVersion=$1
-newVersion=$2
-
-if [ -z "$oldVersion" -o -z "$newVersion" ]; then
- echo "usage: $0 oldversion newversion"
- exit 1
-fi
-
-echo Changing $oldVersion to $newVersion
-
-#Update root pom version
-find .. -maxdepth 1 -name "pom.xml" -exec python update_root_pom_versions.py {} $oldVersion $newVersion \;
-#Update pom.xml with <parent> tag with the new version of the root pom
-find .. -name "pom.xml" -type f -exec python update_parent_pom_versions.py {} $oldVersion $newVersion \;
-#Update doc plugin versions
-find ../doc -name "MANIFEST.MF" -exec sed -i -e s/$oldVersion.qualifier/$newVersion.qualifier/g {} \;
-
-#Update feature versions (feature.xml)
-find .. -name "feature.xml" -exec sed -i -e s/$oldVersion.qualifier/$newVersion.qualifier/g {} \;
-
-#Update branding plugin manifest.MF
-sed -i -e s/$oldVersion.qualifier/$newVersion.qualifier/g ../rcp/org.eclipse.tracecompass.rcp.branding/META-INF/MANIFEST.MF
-#rcp/org.eclipse.tracecompass.rcp.branding/plugin.xml aboutText
-sed -i -e s/$oldVersion/$newVersion/g ../rcp/org.eclipse.tracecompass.rcp.branding/plugin.xml
-
-#Update .product rcp/org.eclipse.tracecompass.rcp.product/tracing.product
-sed -i -e s/$oldVersion/$newVersion/g ../rcp/org.eclipse.tracecompass.rcp.product/tracing.product
-
-#Update rcp.ui plugin rcp/org.eclipse.tracecompass.rcp.ui/META-INF/MANIFEST.MF
-sed -i -e s/$oldVersion.qualifier/$newVersion.qualifier/g ../rcp/org.eclipse.tracecompass.rcp.ui/META-INF/MANIFEST.MF