summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2017-02-24 11:50:20 +0100
committervarac <varacanero@zeromail.org>2017-03-02 10:10:38 +0100
commit590e1f2f24ca546a05357b651471f85da01718f4 (patch)
tree8af98bd48bc5ffad3f416bf86eefcd485eae5df8 /debian
parentaf04d06ebf3bb5974efae2ceee5c3ad061f047a4 (diff)
Make pip version similar to git describe
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/freeze_python_version.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/freeze_python_version.sh b/debian/freeze_python_version.sh
index 65a9bac..ded3106 100755
--- a/debian/freeze_python_version.sh
+++ b/debian/freeze_python_version.sh
@@ -6,7 +6,8 @@ echo y | python setup.py freeze_debianver
# Add the number of commits after last tag to the version string
add_commits=$(git describe | cut -d'-' -f2)
-sed -i "/ \"version/s/\"$/-${add_commits}\"/" ${VERSION_FILE}
+rev=$(git describe | cut -d'-' -f3)
+sed -i "/ \"version/s/\"$/.${add_commits}+${rev}\"/" ${VERSION_FILE}
# Remove the -dirty tag
sed -i 's/-dirty//g' ${VERSION_FILE}