mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 06:45:49 +00:00
Simple verion-bumping snippet has been added
This commit is contained in:
parent
e157f200f8
commit
ab45fa2ea5
1 changed files with 5 additions and 0 deletions
5
bump.sh
Executable file
5
bump.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
existing_version=`xpath pom.xml '/project/version' 2>/dev/null|sed 's/[a-zA-Z<>\/-]//g;s/[.]*$//'`
|
||||
bumped_version=`xpath pom.xml '/project/version' 2>/dev/null|sed 's/[a-zA-Z<>\/-]//g;s/[.]*$//'|awk -F "." '{$2+=1;OFS=".";print$0}'`
|
||||
|
||||
echo "Version $existing_version was bumped to $bumped_version"
|
Loading…
Reference in a new issue