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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#! /bin/sh
set -e
cd ~/public_html/seeds
if ! lockfile -r2 .update.lock; then
exit 1
fi
trap 'rm -f .update.lock' EXIT HUP INT QUIT TERM
for dist in platform.hardy platform.lucid platform.maverick platform.natty platform.oneiric \
ubuntu.hardy ubuntu.lucid ubuntu.maverick ubuntu.natty ubuntu.oneiric \
kubuntu.hardy kubuntu.lucid kubuntu.maverick kubuntu.natty kubuntu.oneiric \
kubuntu-kde4.hardy \
kubuntu-mobile.natty kubuntu-mobile.oneiric \
edubuntu.hardy edubuntu.lucid edubuntu.maverick edubuntu.natty edubuntu.oneiric \
xubuntu.hardy xubuntu.lucid xubuntu.maverick xubuntu.natty xubuntu.oneiric \
gobuntu.hardy \
netbook.lucid netbook.maverick netbook.natty netbook.oneiric \
mythbuntu.hardy mythbuntu.lucid mythbuntu.maverick mythbuntu.natty mythbuntu.oneiric \
ubuntustudio.hardy ubuntustudio.lucid ubuntustudio.maverick ubuntustudio.natty ubuntustudio.oneiric \
lubuntu.oneiric; do
case $dist in
kubuntu.hardy|kubuntu.lucid|kubuntu.maverick|kubuntu.natty|kubuntu-mobile.natty)
branch="http://bazaar.launchpad.net/~ubuntu-core-dev/ubuntu-seeds/$dist"
;;
kubuntu.*|kubuntu-mobile.*)
branch="http://bazaar.launchpad.net/~kubuntu-dev/ubuntu-seeds/$dist"
;;
xubuntu.hardy)
branch="http://bazaar.launchpad.net/~ubuntu-core-dev/ubuntu-seeds/$dist"
;;
xubuntu.*)
branch="http://bazaar.launchpad.net/~xubuntu-dev/ubuntu-seeds/$dist"
;;
mythbuntu.*)
branch="http://bazaar.launchpad.net/~mythbuntu-dev/ubuntu-seeds/$dist"
;;
ubuntustudio.*)
branch="http://bazaar.launchpad.net/~ubuntustudio-dev/ubuntu-seeds/$dist"
;;
lubuntu.*)
branch="http://bazaar.launchpad.net/~lubuntu-desktop/ubuntu-seeds/$dist"
;;
*)
branch="http://bazaar.launchpad.net/~ubuntu-core-dev/ubuntu-seeds/$dist"
;;
esac
if [ -d "$dist" ]; then
bzr pull -d "$dist" --overwrite --remember "$branch" >/dev/null 2>&1
else
bzr get "$branch" >/dev/null 2>&1
fi
done
|