diff options
-rwxr-xr-x | debian/freeze_python_version.sh | 3 |
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} |