diff options
Diffstat (limited to 'tools/version.sh')
-rw-r--r-- | tools/version.sh | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/tools/version.sh b/tools/version.sh index eee41f00a1..c3cf7ba25b 100644 --- a/tools/version.sh +++ b/tools/version.sh @@ -41,7 +41,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Update all pom.xml and MANIFEST.MF with new build number +# Update all pom.xml with new build number # # TODO(spearce) This should be converted to some sort of # Java based Maven plugin so its fully portable. @@ -77,30 +77,23 @@ esac case "$V" in *-SNAPSHOT) POM_V=$V - MF_V=$(echo "$V" | perl -pe 's/-SNAPSHOT$/.qualifier/') ;; *-[1-9]*-g[0-9a-f]*) POM_V=$(echo "$V" | perl -pe 's/-(\d+-g.*)$/.$1/') - MF_V=$POM_V ;; *) POM_V=$V - MF_V=$V ;; esac perl -pi -e ' - s/^(Bundle-Version:).*/$1 '"$MF_V"'/ - ' $(git ls-files | grep META-INF/MANIFEST.MF) - -perl -pi -e ' if ($ARGV ne $old_argv) { $seen_version = 0; $old_argv = $ARGV; } if (!$seen_version) { $seen_version = 1 if - s{(<version>).*(</version>)}{${1}'"$POM_V"'${2}}; + s{<(version)>.*</\1>}{<${1}>'"$POM_V"'</${1}>}; } ' $(git ls-files | grep pom.xml) |