Bug 3081 - Make version bump and patch script run only for active modules 66/19966/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Sat, 9 May 2015 15:00:03 +0000 (11:00 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Sat, 9 May 2015 15:19:34 +0000 (11:19 -0400)
Change-Id: Ic8622caba98f5664cadeda4316bef4b2c49049a9
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/autorelease/include-raw-autorelease-release-versions.sh

index bef3204c0d569090a7b3c687494871d6b72e42c5..7fdab6412654923602214a762898cb9650c7d092 100644 (file)
@@ -17,6 +17,11 @@ 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/$RELEASE_BRANCH > ../patches/$name.patch'
+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 ..
+done
 
 ./scripts/fix-relativepaths.sh