Helper script to test new versions of the bundleplugin on the local Felix tree

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@744937 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundleplugin/upgrade_local_poms.sh b/bundleplugin/upgrade_local_poms.sh
new file mode 100755
index 0000000..3eaf048
--- /dev/null
+++ b/bundleplugin/upgrade_local_poms.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+VERSION=$1
+
+if [ "$VERSION" = "" ]
+then
+
+  echo "Usage: $0 <new-bundleplugin-version>"
+  exit
+
+fi
+
+cd ../pom
+
+for POM in `find .. -name .svn -prune -o -name pom.xml -print`
+do
+
+  mvn "-DprojectFile=$POM" \
+      "-Dxpath=/project/build/plugins/plugin[artifactId[.='maven-bundle-plugin']]/version" \
+      "-DnewValue=$VERSION" \
+      org.apache.maven.plugins:maven-pom-plugin:1.0-SNAPSHOT:alter-by-xpath
+
+  mvn "-DprojectFile=$POM" \
+      "-DskipXPath=/project/build/plugins/plugin[artifactId[.='maven-bundle-plugin']]/version" \
+      "-Dxpath=/project/build/plugins/plugin[artifactId[.='maven-bundle-plugin']]" \
+      "-DnewElement=version" "-DnewValue=$VERSION" \
+      org.apache.maven.plugins:maven-pom-plugin:1.0-SNAPSHOT:add-by-xpath
+
+done
+