3
if [ -z "$UBUNTU_RELEASES" ]; then
4
echo "Configure the distro platforms that you want to"
5
echo "build with a line like:"
6
echo ' export UBUNTU_RELEASES="dapper feisty gutsy hardy intrepid jaunty"'
13
if [ -z "$OLD_VERSION" -o -z "$NEW_VERSION" -o -z "$NEXT_VERSION" ]; then
14
echo "Missing version"
15
echo "You want something like:"
16
echo " update-control.sh 1.5 1.6 1.7"
20
if [ "$PACKAGE" = "bzr" ]; then
23
for DISTRO in $UBUNTU_RELEASES; do
24
PPAVERSION="$VERSION~${DISTRO}1"
26
echo "Updating control for $DISTRO"
27
cd "$PACKAGE-$DISTRO" &&
28
sed -i -e "s/$NEW_VERSION~/$NEXT_VERSION~/;s/$OLD_VERSION~/$NEW_VERSION~/" control &&
29
bzr commit -m "New upstream release: $PPAVERSION, update control"