Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'production/miscToolsAndNotes/xslUtilityScripts/upVersionParents.sh')
-rwxr-xr-xproduction/miscToolsAndNotes/xslUtilityScripts/upVersionParents.sh42
1 files changed, 42 insertions, 0 deletions
diff --git a/production/miscToolsAndNotes/xslUtilityScripts/upVersionParents.sh b/production/miscToolsAndNotes/xslUtilityScripts/upVersionParents.sh
new file mode 100755
index 000000000..5d9cc10a0
--- /dev/null
+++ b/production/miscToolsAndNotes/xslUtilityScripts/upVersionParents.sh
@@ -0,0 +1,42 @@
+#!/bin/bash
+#
+
+
+LOG=$(pwd)/log_$( date +%Y%m%d%H%M%S ).txt
+
+exec >>$LOG 2>&1
+
+LREPO=$(pwd)/../localMavenRepo
+
+JAVA_7_HOME=${JAVA_7_HOME:-/shared/common/jdk1.7.0-latest}
+JAVA_8_HOME=${JAVA_8_HOME:-/shared/common/jdk1.8.0_x64-latest}
+export JAVA_HOME=${JAVA_HOME:-${JAVA_8_HOME}}
+
+TMP_DIR=${TMP_DIR:-$(pwd)/../tmp}
+mkdir -p $TMP_DIR
+export MAVEN_OPTS=${MAVEN_OPTS:-"-Xmx2560m -XX:MaxPermSize=256M -Djava.io.tmpdir=${TMP_DIR}"}
+export MAVEN_PATH=${MAVEN_PATH:-/opt/local/apache-maven-3.1.1/bin}
+export PATH=${JAVA_HOME}/bin:${MAVEN_PATH}:${PATH}
+
+DIR=$( dirname $0 )
+NEW_VER=4.4.0-SNAPSHOT
+if [ $# -eq 1 ]; then
+ NEW_VER="$1"
+fi
+
+find * -name pom.xml -print0 | xargs -0 grep packaging.pom..packaging | cut -f1 -d: | sort -u >/tmp/t1_$$.txt
+find * -name pom.xml -print0 | xargs -0 grep packaging.eclipse-repository..packaging | cut -f1 -d: | sort -u >>/tmp/t1_$$.txt
+
+for POM in $( cat /tmp/t1_$$.txt ); do
+ # this doesn't update everything like I hoped
+ # and fails for a small number of bundles.
+ # it doesn't deal well with the children of the parent poms
+ mvn -Pbuild-individual-bundles \
+ versions:set \
+ -DnewVersion=$NEW_VER \
+ -DgenerateBackupPoms=false \
+ -f $POM \
+ -Dmaven.repo.local=$LREPO
+done
+
+

Back to the top