diff options
author | David Williams | 2016-02-29 01:53:21 +0000 |
---|---|---|
committer | David Williams | 2016-02-29 01:53:21 +0000 |
commit | df9679f46f0023d6ac1929d0bd8899aac5b9dcbe (patch) | |
tree | a267a4b34a84c7f18da479dd52eb6d6bb88b2d7e /production | |
parent | c8ace7562f5c4b575033d63c154f2e3f1c0ae831 (diff) | |
download | eclipse.platform.releng.aggregator-df9679f46f0023d6ac1929d0bd8899aac5b9dcbe.tar.gz eclipse.platform.releng.aggregator-df9679f46f0023d6ac1929d0bd8899aac5b9dcbe.tar.xz eclipse.platform.releng.aggregator-df9679f46f0023d6ac1929d0bd8899aac5b9dcbe.zip |
Bug 488654 - rearrange some "production directories"
Diffstat (limited to 'production')
28 files changed, 395 insertions, 0 deletions
diff --git a/production/devutils/description.txt b/production/devutils/description.txt new file mode 100644 index 000000000..aa7dd8af8 --- /dev/null +++ b/production/devutils/description.txt @@ -0,0 +1,3 @@ +Files in this directory are not required for normal Maven/Tycho builds. + +They can be handy, though for release engineers or others that are developing the build itself.
\ No newline at end of file diff --git a/production/devutils/submodule_pull.sh b/production/devutils/submodule_pull.sh new file mode 100755 index 000000000..a0b768cae --- /dev/null +++ b/production/devutils/submodule_pull.sh @@ -0,0 +1,35 @@ +#!/bin/bash +# for this branch. +# the branches of submodules should match what is in ../streams/repositories.txt +# This script assumes aggregator project has been cloned, +# and submodules initially 'updated', as per +# http://wiki.eclipse.org/Platform-releng/Platform_Build#cloning_platform_source_tree +# +# intended to be (temporarily) 'moved up' several directories to get to correct location +branch=master +#branch=R4_5_maintenance +echo rt.equinox.bundles ; cd ../rt.equinox.bundles ; git fetch; git checkout ${branch} ; git pull ; +echo rt.equinox.framework ; cd ../rt.equinox.framework ; git fetch; git checkout ${branch} ; git pull ; +echo rt.equinox.binaries ; cd ../rt.equinox.binaries ; git fetch; git checkout ${branch} ; git pull ; +echo rt.equinox.p2 ; cd ../rt.equinox.p2 ; git fetch; git checkout ${branch} ; git pull ; +echo eclipse.jdt.core.binaries ; cd ../eclipse.jdt.core.binaries ; git fetch; git checkout ${branch} ; git pull ; +echo eclipse.jdt.core ; cd ../eclipse.jdt.core ; git fetch; git checkout ${branch} ; git pull ; +echo eclipse.jdt.debug ; cd ../eclipse.jdt.debug ; git fetch; git checkout ${branch} ; git pull ; +echo eclipse.jdt ; cd ../eclipse.jdt ; git fetch; git checkout ${branch} ; git pull ; +echo eclipse.jdt.ui ; cd ../eclipse.jdt.ui ; git fetch; git checkout ${branch} ; git pull ; +echo eclipse.pde ; cd ../eclipse.pde ; git fetch; git checkout ${branch} ; git pull ; +echo eclipse.pde.build ; cd ../eclipse.pde.build ; git fetch; git checkout ${branch} ; git pull ; +echo eclipse.pde.ui ; cd ../eclipse.pde.ui ; git fetch; git checkout ${branch} ; git pull ; +echo eclipse.platform.debug ; cd ../eclipse.platform.debug ; git fetch; git checkout ${branch} ; git pull ; +echo eclipse.platform.resources ; cd ../eclipse.platform.resources ; git fetch; git checkout ${branch} ; git pull ; +echo eclipse.platform ; cd ../eclipse.platform ; git fetch; git checkout ${branch} ; git pull ; +echo eclipse.platform.common ; cd ../eclipse.platform.common ; git fetch; git checkout ${branch} ; git pull ; +echo eclipse.platform.releng ; cd ../eclipse.platform.releng ; git fetch; git checkout ${branch} ; git pull ; +echo eclipse.platform.runtime ; cd ../eclipse.platform.runtime ; git fetch; git checkout ${branch} ; git pull ; +echo eclipse.platform.team ; cd ../eclipse.platform.team ; git fetch; git checkout ${branch} ; git pull ; +echo eclipse.platform.text ; cd ../eclipse.platform.text ; git fetch; git checkout ${branch} ; git pull ; +echo eclipse.platform.ua ; cd ../eclipse.platform.ua ; git fetch; git checkout ${branch} ; git pull ; +echo eclipse.platform.ui ; cd ../eclipse.platform.ui ; git fetch; git checkout ${branch} ; git pull ; +echo eclipse.platform.ui.tools ; cd ../eclipse.platform.ui.tools ; git fetch; git checkout ${branch} ; git pull ; +echo eclipse.platform.swt ; cd ../eclipse.platform.swt ; git fetch; git checkout ${branch} ; git pull ; +echo eclipse.platform.swt.binaries ; cd ../eclipse.platform.swt.binaries ; git fetch; git checkout ${branch} ; git pull ; diff --git a/production/downloadsites/updates/categoriesKepler/content.xml b/production/downloadsites/eclipse/updates/4.3/categoriesKepler/content.xml index 74f5a678d..74f5a678d 100644 --- a/production/downloadsites/updates/categoriesKepler/content.xml +++ b/production/downloadsites/eclipse/updates/4.3/categoriesKepler/content.xml diff --git a/production/downloadsites/updates/categoriesLuna/content.xml b/production/downloadsites/eclipse/updates/4.4/categoriesLuna/content.xml index 225854483..225854483 100644 --- a/production/downloadsites/updates/categoriesLuna/content.xml +++ b/production/downloadsites/eclipse/updates/4.4/categoriesLuna/content.xml diff --git a/production/downloadsites/updates/categoriesMars/content.xml b/production/downloadsites/eclipse/updates/4.5/categoriesMars/content.xml index 0a2edb3a1..0a2edb3a1 100644 --- a/production/downloadsites/updates/categoriesMars/content.xml +++ b/production/downloadsites/eclipse/updates/4.5/categoriesMars/content.xml diff --git a/production/downloadsites/updates/categoriesNeon/content.jar b/production/downloadsites/eclipse/updates/4.6-I-builds/categoriesNeon/content.jar Binary files differindex bb4712ac0..bb4712ac0 100644 --- a/production/downloadsites/updates/categoriesNeon/content.jar +++ b/production/downloadsites/eclipse/updates/4.6-I-builds/categoriesNeon/content.jar diff --git a/production/downloadsites/eclipse/updates/4.6-N-builds/categoriesNeon/content.jar b/production/downloadsites/eclipse/updates/4.6-N-builds/categoriesNeon/content.jar Binary files differnew file mode 100644 index 000000000..bb4712ac0 --- /dev/null +++ b/production/downloadsites/eclipse/updates/4.6-N-builds/categoriesNeon/content.jar diff --git a/production/downloadsites/eclipse/updates/4.6/categoriesNeon/content.jar b/production/downloadsites/eclipse/updates/4.6/categoriesNeon/content.jar Binary files differnew file mode 100644 index 000000000..bb4712ac0 --- /dev/null +++ b/production/downloadsites/eclipse/updates/4.6/categoriesNeon/content.jar diff --git a/production/downloadsites/eclipse/updates/I-builds/compositeArtifacts.jar b/production/downloadsites/eclipse/updates/I-builds/compositeArtifacts.jar Binary files differnew file mode 100644 index 000000000..7e0a9b532 --- /dev/null +++ b/production/downloadsites/eclipse/updates/I-builds/compositeArtifacts.jar diff --git a/production/downloadsites/eclipse/updates/I-builds/compositeContent.jar b/production/downloadsites/eclipse/updates/I-builds/compositeContent.jar Binary files differnew file mode 100644 index 000000000..d4a742623 --- /dev/null +++ b/production/downloadsites/eclipse/updates/I-builds/compositeContent.jar diff --git a/production/downloadsites/eclipse/updates/I-builds/p2.index b/production/downloadsites/eclipse/updates/I-builds/p2.index new file mode 100644 index 000000000..7e97a83bd --- /dev/null +++ b/production/downloadsites/eclipse/updates/I-builds/p2.index @@ -0,0 +1,4 @@ +version=1 +metadata.repository.factory.order=compositeContent.xml,! +artifact.repository.factory.order=compositeArtifacts.xml,! + diff --git a/production/downloadsites/eclipse/updates/N-builds/compositeArtifacts.jar b/production/downloadsites/eclipse/updates/N-builds/compositeArtifacts.jar Binary files differnew file mode 100644 index 000000000..b55239eaf --- /dev/null +++ b/production/downloadsites/eclipse/updates/N-builds/compositeArtifacts.jar diff --git a/production/downloadsites/eclipse/updates/N-builds/compositeContent.jar b/production/downloadsites/eclipse/updates/N-builds/compositeContent.jar Binary files differnew file mode 100644 index 000000000..0aa33b75d --- /dev/null +++ b/production/downloadsites/eclipse/updates/N-builds/compositeContent.jar diff --git a/production/downloadsites/eclipse/updates/N-builds/p2.index b/production/downloadsites/eclipse/updates/N-builds/p2.index new file mode 100644 index 000000000..7e97a83bd --- /dev/null +++ b/production/downloadsites/eclipse/updates/N-builds/p2.index @@ -0,0 +1,4 @@ +version=1 +metadata.repository.factory.order=compositeContent.xml,! +artifact.repository.factory.order=compositeArtifacts.xml,! + diff --git a/production/downloadsites/eclipse/updates/index.html b/production/downloadsites/eclipse/updates/index.html new file mode 100644 index 000000000..2079298b0 --- /dev/null +++ b/production/downloadsites/eclipse/updates/index.html @@ -0,0 +1,10 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<html> + <head> + <title>Eclipse</title> + <meta http-equiv="REFRESH" content="0;url=http://download.eclipse.org/eclipse/updates/4.6/" /> + </head> + <body> + This page will redirect to <a href="http://download.eclipse.org/eclipse/updates/4.6/">current software repository</a>. + </body> +</html> diff --git a/production/downloadsites/eclipse/updates/milestones/compositeArtifacts.jar b/production/downloadsites/eclipse/updates/milestones/compositeArtifacts.jar Binary files differnew file mode 100644 index 000000000..84b4c56e5 --- /dev/null +++ b/production/downloadsites/eclipse/updates/milestones/compositeArtifacts.jar diff --git a/production/downloadsites/eclipse/updates/milestones/compositeContent.jar b/production/downloadsites/eclipse/updates/milestones/compositeContent.jar Binary files differnew file mode 100644 index 000000000..16b603732 --- /dev/null +++ b/production/downloadsites/eclipse/updates/milestones/compositeContent.jar diff --git a/production/downloadsites/eclipse/updates/milestones/p2.index b/production/downloadsites/eclipse/updates/milestones/p2.index new file mode 100644 index 000000000..ec770ddf6 --- /dev/null +++ b/production/downloadsites/eclipse/updates/milestones/p2.index @@ -0,0 +1,3 @@ +version=1 +metadata.repository.factory.order=compositeContent.xml,! +artifact.repository.factory.order=compositeArtifacts.xml,! diff --git a/production/sdk/xslUtilityScripts/fix-feature-pom.xsl b/production/sdk/xslUtilityScripts/fix-feature-pom.xsl new file mode 100644 index 000000000..4bc444271 --- /dev/null +++ b/production/sdk/xslUtilityScripts/fix-feature-pom.xsl @@ -0,0 +1,45 @@ +<?xml version="1.0"?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:my="http://maven.apache.org/POM/4.0.0" exclude-result-prefixes="my xs" version="1.0"> + <!--xsl:output omit-xml-declaration="yes" indent="yes"/> + <xsl:output indent="yes"/> + <xsl:strip-space elements="*"/--> + <xsl:output method="xml" encoding="UTF-8"/> + <xsl:template name="group-id"> + <xsl:param name="pText" select="."/> + <xsl:param name="pCount" select="0"/> + <xsl:if test="$pCount < 3"> + <xsl:value-of select="substring-before(concat($pText, '.'), '.')"/> + <xsl:if test="$pCount < 2"> + <xsl:text>.</xsl:text> + </xsl:if> + <xsl:call-template name="group-id"> + <xsl:with-param name="pText" select="substring-after($pText, '.')"/> + <xsl:with-param name="pCount" select="$pCount + 1"/> + </xsl:call-template> + </xsl:if> + <xsl:if test="$pCount = 3"> + <xsl:text>.feature</xsl:text> + </xsl:if> + </xsl:template> + <xsl:template match="/my:project/my:groupId"> + <groupId xmlns="http://maven.apache.org/POM/4.0.0"> + <xsl:call-template name="group-id"> + <xsl:with-param name="pText" select="/my:project/my:artifactId/text()"/> + <xsl:with-param name="pCount" select="0"/> + </xsl:call-template> + </groupId> + </xsl:template> + <xsl:template match="@*|node()"> + <xsl:copy> + <xsl:apply-templates select="@*|node()"/> + </xsl:copy> + </xsl:template> + <!--xsl:template match="node()|@*"> + <xsl:copy> + <xsl:apply-templates select="node()|@*"> + <xsl:sort select="name()" /> + <xsl:sort select="@*" /> + </xsl:apply-templates> + </xsl:copy> +</xsl:template--> +</xsl:stylesheet> diff --git a/production/sdk/xslUtilityScripts/fix-pom-parent-version.xsl b/production/sdk/xslUtilityScripts/fix-pom-parent-version.xsl new file mode 100644 index 000000000..4529cb09d --- /dev/null +++ b/production/sdk/xslUtilityScripts/fix-pom-parent-version.xsl @@ -0,0 +1,24 @@ +<?xml version="1.0"?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:my="http://maven.apache.org/POM/4.0.0" exclude-result-prefixes="my xs" version="1.0"> + <!--xsl:output omit-xml-declaration="yes" indent="yes"/> + <xsl:output indent="yes"/> + <xsl:strip-space elements="*"/--> + <xsl:output method="xml" encoding="UTF-8"/> + <xsl:param name="new-version" select="'0.14.0-SNAPSHOT'"/> + <xsl:template match="/my:project/my:parent/my:version"> + <xsl:element name="version" namespace="http://maven.apache.org/POM/4.0.0"><xsl:value-of select="$new-version"/></xsl:element> + </xsl:template> + <xsl:template match="@*|node()"> + <xsl:copy> + <xsl:apply-templates select="@*|node()"/> + </xsl:copy> + </xsl:template> + <!--xsl:template match="node()|@*"> + <xsl:copy> + <xsl:apply-templates select="node()|@*"> + <xsl:sort select="name()" /> + <xsl:sort select="@*" /> + </xsl:apply-templates> + </xsl:copy> +</xsl:template--> +</xsl:stylesheet> diff --git a/production/sdk/xslUtilityScripts/fix-pom-version.xsl b/production/sdk/xslUtilityScripts/fix-pom-version.xsl new file mode 100644 index 000000000..3a631eb69 --- /dev/null +++ b/production/sdk/xslUtilityScripts/fix-pom-version.xsl @@ -0,0 +1,24 @@ +<?xml version="1.0"?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:my="http://maven.apache.org/POM/4.0.0" exclude-result-prefixes="my xs" version="1.0"> + <!--xsl:output omit-xml-declaration="yes" indent="yes"/> + <xsl:output indent="yes"/> + <xsl:strip-space elements="*"/--> + <xsl:output method="xml" encoding="UTF-8"/> + <xsl:param name="new-version" select="'0.14.0-SNAPSHOT'"/> + <xsl:template match="/my:project/my:version"> + <xsl:element name="version" namespace="http://maven.apache.org/POM/4.0.0"><xsl:value-of select="$new-version"/></xsl:element> + </xsl:template> + <xsl:template match="@*|node()"> + <xsl:copy> + <xsl:apply-templates select="@*|node()"/> + </xsl:copy> + </xsl:template> + <!--xsl:template match="node()|@*"> + <xsl:copy> + <xsl:apply-templates select="node()|@*"> + <xsl:sort select="name()" /> + <xsl:sort select="@*" /> + </xsl:apply-templates> + </xsl:copy> +</xsl:template--> +</xsl:stylesheet> diff --git a/production/sdk/xslUtilityScripts/fix-pom.xsl b/production/sdk/xslUtilityScripts/fix-pom.xsl new file mode 100644 index 000000000..7bfd72f40 --- /dev/null +++ b/production/sdk/xslUtilityScripts/fix-pom.xsl @@ -0,0 +1,42 @@ +<?xml version="1.0"?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:my="http://maven.apache.org/POM/4.0.0" exclude-result-prefixes="my xs" version="1.0"> + <!--xsl:output omit-xml-declaration="yes" indent="yes"/> + <xsl:output indent="yes"/> + <xsl:strip-space elements="*"/--> + <xsl:output method="xml" encoding="UTF-8"/> + <xsl:template name="group-id"> + <xsl:param name="pText" select="."/> + <xsl:param name="pCount" select="0"/> + <xsl:if test="$pCount < 3"> + <xsl:value-of select="substring-before(concat($pText, '.'), '.')"/> + <xsl:if test="$pCount < 2"> + <xsl:text>.</xsl:text> + </xsl:if> + <xsl:call-template name="group-id"> + <xsl:with-param name="pText" select="substring-after($pText, '.')"/> + <xsl:with-param name="pCount" select="$pCount + 1"/> + </xsl:call-template> + </xsl:if> + </xsl:template> + <xsl:template match="/my:project/my:groupId"> + <groupId xmlns="http://maven.apache.org/POM/4.0.0"> + <xsl:call-template name="group-id"> + <xsl:with-param name="pText" select="/my:project/my:artifactId/text()"/> + <xsl:with-param name="pCount" select="0"/> + </xsl:call-template> + </groupId> + </xsl:template> + <xsl:template match="@*|node()"> + <xsl:copy> + <xsl:apply-templates select="@*|node()"/> + </xsl:copy> + </xsl:template> + <!--xsl:template match="node()|@*"> + <xsl:copy> + <xsl:apply-templates select="node()|@*"> + <xsl:sort select="name()" /> + <xsl:sort select="@*" /> + </xsl:apply-templates> + </xsl:copy> +</xsl:template--> +</xsl:stylesheet> diff --git a/production/sdk/xslUtilityScripts/groupId.sh b/production/sdk/xslUtilityScripts/groupId.sh new file mode 100755 index 000000000..cdd08a6e9 --- /dev/null +++ b/production/sdk/xslUtilityScripts/groupId.sh @@ -0,0 +1,47 @@ +#!/bin/bash + +ECLIPSE=/opt/local/e4-self/R421/eclipse/eclipse + +if [ $# -gt 0 ]; then + ECLIPSE="$1" ; shift +fi + +find * -name pom.xml -print0 | xargs -0 grep eclipse-plugin | cut -f1 -d: | sort -u >/tmp/t1_$$.txt + +for POM in $( cat /tmp/t1_$$.txt ); do + $ECLIPSE -noSplash \ + -application org.eclipse.ant.core.antRunner -v \ + -buildfile run-xsl.xml \ + -Dfile.sheet="fix-pom.xsl" \ + -Dfile.in="$(pwd)/$POM" \ + -Dfile.out="$(pwd)/${POM}.out" + xmllint --format "${POM}.out" >"${POM}" + rm "${POM}.out" +done + +find * -name pom.xml -print0 | xargs -0 grep eclipse-feature | cut -f1 -d: | sort -u >/tmp/t1_$$.txt + +for POM in $( cat /tmp/t1_$$.txt ); do + $ECLIPSE -noSplash \ + -application org.eclipse.ant.core.antRunner -v \ + -buildfile run-xsl.xml \ + -Dfile.sheet="fix-feature-pom.xsl" \ + -Dfile.in="$(pwd)/$POM" \ + -Dfile.out="$(pwd)/${POM}.out" + xmllint --format "${POM}.out" >"${POM}" + rm "${POM}.out" +done + + +find * -name pom.xml -print0 | xargs -0 grep eclipse-test-plugin | cut -f1 -d: | sort -u >/tmp/t1_$$.txt + +for POM in $( cat /tmp/t1_$$.txt ); do + $ECLIPSE -noSplash \ + -application org.eclipse.ant.core.antRunner -v \ + -buildfile run-xsl.xml \ + -Dfile.sheet="fix-pom.xsl" \ + -Dfile.in="$(pwd)/$POM" \ + -Dfile.out="$(pwd)/${POM}.out" + xmllint --format "${POM}.out" >"${POM}" + rm "${POM}.out" +done diff --git a/production/sdk/xslUtilityScripts/run-xsl.xml b/production/sdk/xslUtilityScripts/run-xsl.xml new file mode 100644 index 000000000..e7b642d7f --- /dev/null +++ b/production/sdk/xslUtilityScripts/run-xsl.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project name="Run stylesheet" default="all" basedir="."> + <property name="file.in" value="content.xml"/> + <property name="file.out" value="out_${file.in}"/> + <property name="file.sheet" value="sort.xsl"/> + + <target name="all"> + <xslt in="${file.in}" out="${file.out}" style="${file.sheet}"/> + </target> +</project> diff --git a/production/sdk/xslUtilityScripts/upVersionParents.sh b/production/sdk/xslUtilityScripts/upVersionParents.sh new file mode 100755 index 000000000..5d9cc10a0 --- /dev/null +++ b/production/sdk/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 + + diff --git a/production/sdk/xslUtilityScripts/xgroupId.sh b/production/sdk/xslUtilityScripts/xgroupId.sh new file mode 100755 index 000000000..9b4ac56a2 --- /dev/null +++ b/production/sdk/xslUtilityScripts/xgroupId.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +ECLIPSE=/opt/local/e4-self/R421/eclipse/eclipse + +if [ $# -gt 0 ]; then + ECLIPSE="$1" ; shift +fi + +find * -name pom.xml -print0 | xargs -0 grep eclipse-plugin | cut -f1 -d: | sort -u >/tmp/t1_$$.txt + +for POM in $( cat /tmp/t1_$$.txt ); do + xsltproc -o "${POM}.out" fix-pom.xsl "${POM}" + mv "${POM}.out" "${POM}" +done + +find * -name pom.xml -print0 | xargs -0 grep eclipse-feature | cut -f1 -d: | sort -u >/tmp/t1_$$.txt + +for POM in $( cat /tmp/t1_$$.txt ); do + xsltproc -o "${POM}.out" fix-feature-pom.xsl "${POM}" + mv "${POM}.out" "${POM}" +done + + +find * -name pom.xml -print0 | xargs -0 grep eclipse-test-plugin | cut -f1 -d: | sort -u >/tmp/t1_$$.txt + +for POM in $( cat /tmp/t1_$$.txt ); do + xsltproc -o "${POM}.out" fix-pom.xsl "${POM}" + mv "${POM}.out" "${POM}" +done + + diff --git a/production/sdk/xslUtilityScripts/xparentVersions.sh b/production/sdk/xslUtilityScripts/xparentVersions.sh new file mode 100755 index 000000000..0bbcf6bc2 --- /dev/null +++ b/production/sdk/xslUtilityScripts/xparentVersions.sh @@ -0,0 +1,45 @@ +#!/bin/bash +# + +DIR=$( dirname $0 ) +NEW_VER=0.14.0-SNAPSHOT +if [ $# -eq 1 ]; then + NEW_VER="$1" +fi + +find * -name pom.xml -print0 | xargs -0 grep "^<project>" | cut -f1 -d: | sort -u >/tmp/t1_$$.txt + +for POM in $( cat /tmp/t1_$$.txt ); do + sed 's!<project>!<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">!g' ${POM} >/tmp/out_$$.txt + mv /tmp/out_$$.txt ${POM} +done + + +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 + xsltproc --stringparam new-version "$NEW_VER" -o "${POM}.out" $DIR/fix-pom-version.xsl "${POM}" + mv "${POM}.out" "${POM}" +done + +find * -name pom.xml | sort -u >/tmp/t1_$$.txt + +for POM in $( cat /tmp/t1_$$.txt ); do + xsltproc --stringparam new-version "$NEW_VER" -o "${POM}.out" $DIR/fix-pom-parent-version.xsl "${POM}" + mv "${POM}.out" "${POM}" +done + +find * -name pom.xml -print0 | xargs -0 grep packaging.eclipse-plugin | cut -f1 -d: | sort -u >/tmp/t1_$$.txt +find * -name pom.xml -print0 | xargs -0 grep packaging.eclipse-feature | cut -f1 -d: | sort -u >>/tmp/t1_$$.txt +find * -name pom.xml -print0 | xargs -0 grep packaging.eclipse-test-plugin | cut -f1 -d: | sort -u >>/tmp/t1_$$.txt + + +for POM in $( cat /tmp/t1_$$.txt ); do + POM_DIR=$( dirname $POM ) + cat >${POM_DIR}/forceQualifierUpdate.txt <<EOF + # To force a version qualifier update add the bug here + Bug 403352 - Update all parent versions to match our build stream +EOF +done + diff --git a/production/sdk/xslUtilityScripts/xslUpVersion.sh b/production/sdk/xslUtilityScripts/xslUpVersion.sh new file mode 100755 index 000000000..ad1a0552a --- /dev/null +++ b/production/sdk/xslUtilityScripts/xslUpVersion.sh @@ -0,0 +1,26 @@ +#!/bin/bash +# + +DIR=$( dirname $0 ) +NEW_VER=4.4.0-SNAPSHOT +if [ $# -eq 1 ]; then + NEW_VER="$1" +fi + +find * -name pom.xml -print0 >/tmp/files.txt + +cat /tmp/files.txt | xargs -0 grep packaging.pom..packaging | cut -f1 -d: | sort -u >/tmp/t1_$$.txt +cat /tmp/files.txt | xargs -0 grep packaging.eclipse-repository..packaging | cut -f1 -d: | sort -u >>/tmp/t1_$$.txt + +for POM in $( cat /tmp/t1_$$.txt ); do + xsltproc --stringparam new-version "$NEW_VER" -o "${POM}.out" $DIR/fix-pom-version.xsl "${POM}" + mv "${POM}.out" "${POM}" +done + +find * -name pom.xml | sort -u >/tmp/t1_$$.txt + +for POM in $( cat /tmp/t1_$$.txt ); do + xsltproc --stringparam new-version "$NEW_VER" -o "${POM}.out" $DIR/fix-pom-parent-version.xsl "${POM}" + mv "${POM}.out" "${POM}" +done + |