releng: Move scripts to a subfolder
authorMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tue, 23 Aug 2016 05:35:02 +0000 (01:35 -0400)
committerMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Wed, 24 Aug 2016 13:23:49 +0000 (09:23 -0400)
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>
14 files changed:
releng/check_mvn_plugin_versions.sh [deleted file]
releng/master_to_stable_release.sh [deleted file]
releng/scripts/check_mvn_plugin_versions.sh [new file with mode: 0755]
releng/scripts/master_to_stable_release.sh [new file with mode: 0755]
releng/scripts/set_automatic_updates.sh [new file with mode: 0755]
releng/scripts/set_stable_update_site.sh [new file with mode: 0755]
releng/scripts/update_parent_pom_versions.py [new file with mode: 0644]
releng/scripts/update_root_pom_versions.py [new file with mode: 0644]
releng/scripts/update_version.sh [new file with mode: 0755]
releng/set_automatic_updates.sh [deleted file]
releng/set_stable_update_site.sh [deleted file]
releng/update_parent_pom_versions.py [deleted file]
releng/update_root_pom_versions.py [deleted file]
releng/update_version.sh [deleted file]

diff --git a/releng/check_mvn_plugin_versions.sh b/releng/check_mvn_plugin_versions.sh
deleted file mode 100755 (executable)
index fb4d751..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/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}
diff --git a/releng/master_to_stable_release.sh b/releng/master_to_stable_release.sh
deleted file mode 100755 (executable)
index 0f621b3..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/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
-
diff --git a/releng/scripts/check_mvn_plugin_versions.sh b/releng/scripts/check_mvn_plugin_versions.sh
new file mode 100755 (executable)
index 0000000..5a68d03
--- /dev/null
@@ -0,0 +1,26 @@
+#!/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}
diff --git a/releng/scripts/master_to_stable_release.sh b/releng/scripts/master_to_stable_release.sh
new file mode 100755 (executable)
index 0000000..0f621b3
--- /dev/null
@@ -0,0 +1,16 @@
+#!/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
+
diff --git a/releng/scripts/set_automatic_updates.sh b/releng/scripts/set_automatic_updates.sh
new file mode 100755 (executable)
index 0000000..91e1a30
--- /dev/null
@@ -0,0 +1,35 @@
+#!/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
+
diff --git a/releng/scripts/set_stable_update_site.sh b/releng/scripts/set_stable_update_site.sh
new file mode 100755 (executable)
index 0000000..00be49a
--- /dev/null
@@ -0,0 +1,31 @@
+#!/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
+
diff --git a/releng/scripts/update_parent_pom_versions.py b/releng/scripts/update_parent_pom_versions.py
new file mode 100644 (file)
index 0000000..e89fcd3
--- /dev/null
@@ -0,0 +1,23 @@
+###############################################################################
+# 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)
diff --git a/releng/scripts/update_root_pom_versions.py b/releng/scripts/update_root_pom_versions.py
new file mode 100644 (file)
index 0000000..fdc950a
--- /dev/null
@@ -0,0 +1,29 @@
+###############################################################################
+# 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)
diff --git a/releng/scripts/update_version.sh b/releng/scripts/update_version.sh
new file mode 100755 (executable)
index 0000000..ffb6967
--- /dev/null
@@ -0,0 +1,39 @@
+###############################################################################
+# 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
diff --git a/releng/set_automatic_updates.sh b/releng/set_automatic_updates.sh
deleted file mode 100755 (executable)
index 748315d..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/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
-
diff --git a/releng/set_stable_update_site.sh b/releng/set_stable_update_site.sh
deleted file mode 100755 (executable)
index 3a00ccf..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/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
-
diff --git a/releng/update_parent_pom_versions.py b/releng/update_parent_pom_versions.py
deleted file mode 100644 (file)
index e89fcd3..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-###############################################################################
-# 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)
diff --git a/releng/update_root_pom_versions.py b/releng/update_root_pom_versions.py
deleted file mode 100644 (file)
index fdc950a..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-###############################################################################
-# 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)
diff --git a/releng/update_version.sh b/releng/update_version.sh
deleted file mode 100755 (executable)
index 2409e0d..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-###############################################################################
-# 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
This page took 0.032023 seconds and 5 git commands to generate.