1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/bash
if [ -z "$UBUNTU_RELEASES" ]; then
echo "Configure the distro platforms that you want to"
echo "build with a line like:"
echo ' export UBUNTU_RELEASES="dapper feisty gutsy hardy intrepid jaunty"'
exit 1
fi
OLD_VERSION=$1
NEW_VERSION=$2
NEXT_VERSION=$3
if [ -z "$OLD_VERSION" -o -z "$NEW_VERSION" -o -z "$NEXT_VERSION" ]; then
echo "Missing version"
echo "You want something like:"
echo " update-control.sh 1.5 1.6 1.7"
exit
fi
if [ "$PACKAGE" = "bzr" ]; then
continue
fi
for DISTRO in $UBUNTU_RELEASES; do
PPAVERSION="$VERSION~${DISTRO}1"
(
echo "Updating control for $DISTRO"
cd "$PACKAGE-$DISTRO" &&
sed -i -e "s/$NEW_VERSION~/$NEXT_VERSION~/;s/$OLD_VERSION~/$NEW_VERSION~/" control &&
bzr commit -m "New upstream release: $PPAVERSION, update control"
)
done
|