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