For release generate version file with target version.

This commit is contained in:
Darko Poljak 2016-07-16 01:38:22 +02:00
parent 804570d874
commit c456284cef
2 changed files with 12 additions and 2 deletions

View file

@ -245,7 +245,7 @@ eof
"$0" pep8
# Generate version file to be included in packaging
"$0" version
"$0" target-version
# Ensure the git status is clean, else abort
if ! git diff-index --name-only --exit-code HEAD ; then
@ -382,6 +382,11 @@ eof
echo "VERSION = \"$(git describe)\"" > cdist/version.py
;;
target-version)
target_version=$($0 changelog-version)
echo "VERSION = \"${target_version}\"" > cdist/version.py
;;
*)
echo "Unknown helper target $@ - aborting"
exit 1

View file

@ -280,7 +280,7 @@ eof
"$0" pep8
# Generate version file to be included in packaging
"$0" version
"$0" target-version
# Ensure the git status is clean, else abort
if ! git diff-index --name-only --exit-code HEAD ; then
@ -444,6 +444,11 @@ eof
echo "VERSION = \"$(git describe)\"" > cdist/version.py
;;
target-version)
target_version=$($0 changelog-version)
echo "VERSION = \"${target_version}\"" > cdist/version.py
;;
*)
echo "Unknown helper target $@ - aborting"
exit 1