summaryrefslogtreecommitdiff
path: root/tools/make-tarball
diff options
context:
space:
mode:
authorScott Moser <smoser@brickies.net>2016-08-08 13:24:59 -0400
committerScott Moser <smoser@brickies.net>2016-08-08 17:52:24 -0400
commit48ec60ae19c749223cb58dcbdbf0ecb7343f2a31 (patch)
tree983b5efe44d5c92aa67d34e8ad304fc60acfeb98 /tools/make-tarball
parentd0b2863bc8dfab2919b11bbcc2584c1c51223028 (diff)
downloadvyos-cloud-init-48ec60ae19c749223cb58dcbdbf0ecb7343f2a31.tar.gz
vyos-cloud-init-48ec60ae19c749223cb58dcbdbf0ecb7343f2a31.zip
For upstream snapshot versions do not modify git-describe output.
For upstream version directly use the output of git-describe (X.Y.Z-number.gHASH) rather than rather than changing it to (X.Y.Z+number.gHASH). The rpm version does not allow '-' in Version, so we create and use rpm_upstream_version in the rpm spec file. That is of format: X.Y.Z+number.gHASH
Diffstat (limited to 'tools/make-tarball')
-rwxr-xr-xtools/make-tarball9
1 files changed, 1 insertions, 8 deletions
diff --git a/tools/make-tarball b/tools/make-tarball
index 57358447..d8705896 100755
--- a/tools/make-tarball
+++ b/tools/make-tarball
@@ -35,14 +35,7 @@ while [ $# -ne 0 ]; do
done
rev=${1:-HEAD}
-git_describe=$(git describe ${long_opt} $rev)
-
-# git_describe could be 0.7.5 or 0.7.5-NNN-gHASH
-# turn that into 0.7.5 or 0.7.5+NNN.gHASH
-case "$git_describe" in
- *-*) version=$(echo "$git_describe" | sed -e 's/-/+/' -e 's/-/./');;
- *) version=${git_describe};;
-esac
+version=$(git describe ${long_opt} $rev)
archive_base="cloud-init-$version"
if [ -z "$output" ]; then