diff options
author | Marc-Andre Laperle | 2017-01-23 18:45:51 +0000 |
---|---|---|
committer | Marc-André Laperle | 2017-01-24 20:38:38 +0000 |
commit | d9fd9df16eb6cf6a65377d06e8f070f01ebed1a5 (patch) | |
tree | 82bde5f28630e40a2c9f42fde4d5f08b0dfc0367 /releng | |
parent | 3e770da279cba6c17e46c8d8fcec14b6cb64a49e (diff) | |
download | org.eclipse.cdt-d9fd9df16eb6cf6a65377d06e8f070f01ebed1a5.tar.gz org.eclipse.cdt-d9fd9df16eb6cf6a65377d06e8f070f01ebed1a5.tar.xz org.eclipse.cdt-d9fd9df16eb6cf6a65377d06e8f070f01ebed1a5.zip |
releng: Update outdated maven plugins. Add script to check for outdated
Change-Id: I6acd451596824584a5c4a29cab72e6eb127d4123
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Diffstat (limited to 'releng')
-rw-r--r-- | releng/scripts/check_mvn_plugin_versions.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/releng/scripts/check_mvn_plugin_versions.sh b/releng/scripts/check_mvn_plugin_versions.sh new file mode 100644 index 00000000000..43e943666e9 --- /dev/null +++ b/releng/scripts/check_mvn_plugin_versions.sh @@ -0,0 +1,27 @@ +#!/bin/bash +############################################################################### +# Copyright (c) 2015, 2017 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 +# Marc-André Laperle - Copied to CDT +############################################################################### + +# 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} |