diff options
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -275,11 +275,15 @@ then if $build_viewer_deb && [ "$last_built_variant" == "Release" ] then begin_section "Build Viewer Debian Package" - local have_private_repo=false + have_private_repo=false + + # Get the current version. + current_version=`dpkg-parsechangelog | grep ^Version | awk '{ print $2 }'` + # mangle the changelog dch --force-bad-version \ --distribution unstable \ - --newversion "${VIEWER_VERSION}" \ + --newversion "${current_version}"+"${revision}" \ "Automated build #$build_id, repository $branch revision $revision." \ >> "$build_log" 2>&1 |