X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fautorelease%2Finclude-raw-autorelease-release-versions.sh;h=1932859624856d598246123279cd41a40d74a7ef;hb=29d3ebddff1ced86bc29e3a73d6557511da50ff4;hp=af35ac0dafeac90979dcdbfd67a2f7318777930f;hpb=084c8e48bfe653589c3825ff2acf99cd5dae496f;p=releng%2Fbuilder.git diff --git a/jjb/autorelease/include-raw-autorelease-release-versions.sh b/jjb/autorelease/include-raw-autorelease-release-versions.sh index af35ac0da..193285962 100644 --- a/jjb/autorelease/include-raw-autorelease-release-versions.sh +++ b/jjb/autorelease/include-raw-autorelease-release-versions.sh @@ -9,14 +9,29 @@ # http://www.eclipse.org/legal/epl-v10.html ############################################################################## +# DATESTAMP=true # Example # RELEASE_TAG=Helium-SR2 # Example +# RELEASE_BRANCH=stable/helium # Example +# Directory to put git format-patches +PATCH_DIR=`pwd`/patches + +if [ "$DATESTAMP" == "true" ]; then + export RELEASE_TAG=$RELEASE_TAG-`date -u +v%Y%m%d%H%M` +fi + +echo $RELEASE_TAG ./scripts/version.sh release $RELEASE_TAG git submodule foreach "git commit -am \"Release $RELEASE_TAG\" || true" git commit -am "Release $RELEASE_TAG" mkdir patches -git submodule foreach 'git format-patch --stdout origin/master > ../patches/$name.patch' +mv taglist.log $PATCH_DIR +modules=`xmlstarlet sel -N x=http://maven.apache.org/POM/4.0.0 -t -m '//x:modules' -v '//x:module' pom.xml` +for module in $modules; do + pushd $module + git format-patch --stdout origin/$RELEASE_BRANCH > $PATCH_DIR/${module//\//-}.patch + popd +done ./scripts/fix-relativepaths.sh -