tools/version.sh: Don't mangle the git describe output
Leave the git describe output as-is when creating the version string, so the JAR file names match the name we show in the web UI or in the output of `java -jar gerrit.war version`. Change-Id: I643d95e698af926b13f233ae8b117a471a536fe0 Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
parent
4a56cc1c76
commit
df84c2f4f7
|
@ -33,18 +33,6 @@ case "$V" in
|
|||
v*) V=$(echo "$V" | perl -pe s/^v//) ;;
|
||||
esac
|
||||
|
||||
case "$V" in
|
||||
*-SNAPSHOT)
|
||||
POM_V=$V
|
||||
;;
|
||||
*-[1-9]*-g[0-9a-f]*)
|
||||
POM_V=$(echo "$V" | perl -pe 's/-(\d+-g.*)$/.$1/')
|
||||
;;
|
||||
*)
|
||||
POM_V=$V
|
||||
;;
|
||||
esac
|
||||
|
||||
perl -pi -e '
|
||||
if ($ARGV ne $old_argv) {
|
||||
$seen_version = 0;
|
||||
|
|
Loading…
Reference in New Issue