X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fautorelease%2Finclude-raw-autorelease-release-versions.sh;h=3673c01669da4cf36515f1812982cc749a31d3c0;hb=e73be922400770ee0c367512a03960c9457fc3ad;hp=7fdab6412654923602214a762898cb9650c7d092;hpb=ef7ba6edf5be11233c4d2c3c78435da7990c83ca;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 7fdab6412..3673c0166 100644 --- a/jjb/autorelease/include-raw-autorelease-release-versions.sh +++ b/jjb/autorelease/include-raw-autorelease-release-versions.sh @@ -9,19 +9,25 @@ # http://www.eclipse.org/legal/epl-v10.html ############################################################################## -# RELEASE_TAG=Helium-SR2 # Example -# RELEASE_BRANCH=stable/helium # Example +# RELEASE_TAG=Beryllium-SR1 # Example +# RELEASE_BRANCH=stable/beryllium # Example +# Directory to put git format-patches +PATCH_DIR=`pwd`/patches + +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 +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 - cd $module - git format-patch --stdout origin/$RELEASE_BRANCH > ../patches/$module.patch - cd .. + pushd $module + git format-patch --stdout origin/$RELEASE_BRANCH > $PATCH_DIR/${module//\//-}.patch + git bundle create $PATCH_DIR/${module//\//-}.bundle "origin/master..HEAD" + popd done ./scripts/fix-relativepaths.sh