X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fautorelease%2Finclude-raw-autorelease-release-versions.sh;h=99c40872a5be5d4091caea858ef52d3fcf71788b;hb=45bd4ee83b0d1eea9b46b42c304ae63915886668;hp=7fdab6412654923602214a762898cb9650c7d092;hpb=ecec55067720d4186c985b6dbb862a45fc73cfa2;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..99c40872a 100644 --- a/jjb/autorelease/include-raw-autorelease-release-versions.sh +++ b/jjb/autorelease/include-raw-autorelease-release-versions.sh @@ -9,9 +9,18 @@ # 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" @@ -19,9 +28,9 @@ git commit -am "Release $RELEASE_TAG" mkdir patches 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 + popd done ./scripts/fix-relativepaths.sh