Skip to content

Commit

Permalink
Support ADJUST_DISTRIBUTION_ONTHEFLY to set distribution in binary bu…
Browse files Browse the repository at this point in the history
…ilds

This is useful when you're building for different distributions
using the same source package and want to avoid that the changes
file is the same for all of the builds.

See mika#112 for the according
discussion.

Thanks: Yurii Vlasenko for reporting and feedback
  • Loading branch information
mika committed Apr 9, 2015
1 parent 6ef2570 commit d9cc2bc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/build-and-provide-package
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,13 @@ EOF
}

deploy_to_releases() {

# support usage of same source package to build binaries for different distributions
if [ -n "${ADJUST_DISTRIBUTION_ONTHEFLY:-}" ] ; then
echo "*** ADJUST_DISTRIBUTION_ONTHEFLY is set, setting Distribution in changes file as requested to ${distribution} ***"
sed -i "s/Distribution: .*/Distribution: ${distribution}/" "${WORKSPACE}/binaries/"*"${newest_version}"_${architecture}.changes
fi

if [ -n "${USE_FREIGHT:-}" ] ; then
freight_wrapper
# Freight is currently not able to manage release or trunk release repos,
Expand Down

0 comments on commit d9cc2bc

Please sign in to comment.