From 2a315178f0c31beceae92ed02242772bd540106a Mon Sep 17 00:00:00 2001 From: Sean Olson Date: Sun, 4 Jan 2015 15:09:33 -0800 Subject: [PATCH] add packaging information to version Summary: Add a "source version" when generating source packages for Ubuntu. The source version is a part of the software version, which is encoded in the original tarball. This allows some flexibility when uploading to Launchpad, which will reject changes for the same software version. For example, the source version can be bumped to upload a fix for a broken package (without bumping the actual software version). Note that the package version cannot be used to accomplish this; it is not part of the source tarball, so bumping this version does not pervent Launchpad from rejecting the changes. Rename the script, since this is a bit specific for Ubuntu and Launchpad. See: http://askubuntu.com/a/391751 Reviewers: jacko Reviewed By: jacko Differential Revision: https://phabricator.buildinspace.com/D163 --- ..._package.sh => build_ubuntu_source_package.sh} | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) rename packaging/{build_debian_source_package.sh => build_ubuntu_source_package.sh} (74%) diff --git a/packaging/build_debian_source_package.sh b/packaging/build_ubuntu_source_package.sh similarity index 74% rename from packaging/build_debian_source_package.sh rename to packaging/build_ubuntu_source_package.sh index 69a13a8..55260af 100755 --- a/packaging/build_debian_source_package.sh +++ b/packaging/build_ubuntu_source_package.sh @@ -1,6 +1,6 @@ #! /usr/bin/env bash -# $ build_debian_source_package.sh [series [package-version]] +# $ build_ubuntu_source_package.sh [series [package-version [source-version]]] # Generates a Debian source package suitable for upload to a Launchpad PPA. This # script only builds the package artifacts, it does NOT upload them. Use dput to # upload to a PPA after building. @@ -19,11 +19,16 @@ if [ -n "$(git status --porcelain)" ] ; then exit 1 fi -# Get the current version from the repo. Get the series and package version from -# the command line, otherwise assume "utopic" and version "1". -peru_version=$(