diff options
author | Shawn Pearce <sop@google.com> | 2013-05-06 14:57:50 -0700 |
---|---|---|
committer | Shawn Pearce <sop@google.com> | 2013-05-06 15:36:46 -0700 |
commit | edf82ea72144bf74443eea7b8f64e5b01eb48a25 (patch) | |
tree | 774521a12778dfe0b9bb9ce33f5193e368c9f252 | |
parent | b0c599d1fd9b650c206a24ed8fa7f95ae146a073 (diff) |
Update plugin versions during release
Change-Id: Ia8c7c1d5a2a8e6ca69c6f2f64d041e49f916484b
-rwxr-xr-x | tools/version.sh | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/tools/version.sh b/tools/version.sh index a620d9e18a..cc8a1fa154 100755 --- a/tools/version.sh +++ b/tools/version.sh @@ -6,7 +6,15 @@ # Java based Maven plugin so its fully portable. # -POM_FILES=$(git ls-files | grep pom.xml | grep -v /src/main/resources/archetype-resources/pom.xml) +SERVER_POMS=$(git ls-files | grep pom.xml | grep -v /src/main/resources/archetype-resources/pom.xml) +POM_FILES=$SERVER_POMS + +# CORE PLUGIN LIST +PLUGINS="commit-message-length-validator replication reviewnotes" +for p in $PLUGINS +do + POM_FILES="$POM_FILES $(cd plugins/$p && git ls-files | grep pom.xml | sed s,^,plugins/$p/,)" +done case "$1" in --snapshot=*) @@ -27,7 +35,11 @@ case "$1" in ;; --reset) - git checkout HEAD -- $POM_FILES + git checkout HEAD -- $SERVER_POMS + for p in $PLUGINS + do + (cd plugins/$p; git checkout $(git ls-files | grep pom.xml)) + done exit $? ;; |