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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
#! /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
ONLY_SERIES="$1"
for dist in platform.lucid platform.precise platform.quantal platform.raring platform.saucy \
ubuntu.lucid ubuntu.precise ubuntu.quantal ubuntu.raring ubuntu.saucy \
kubuntu.lucid kubuntu.precise kubuntu.quantal kubuntu.raring kubuntu.saucy \
kubuntu-active.precise kubuntu-active.quantal kubuntu-active.raring kubuntu-active.saucy \
edubuntu.lucid edubuntu.precise edubuntu.quantal edubuntu.raring edubuntu.saucy \
xubuntu.lucid xubuntu.precise xubuntu.quantal xubuntu.raring xubuntu.saucy \
netbook.lucid netbook.precise \
mythbuntu.lucid mythbuntu.precise mythbuntu.quantal mythbuntu.raring mythbuntu.saucy \
ubuntustudio.lucid ubuntustudio.precise ubuntustudio.quantal ubuntustudio.raring ubuntustudio.saucy \
lubuntu.precise lubuntu.quantal lubuntu.raring lubuntu.saucy \
ubuntu-gnome.raring ubuntu-gnome.saucy \
ubuntu-touch.raring ubuntu-touch.saucy; do
if [ "$ONLY_SERIES" ]; then
case $dist in
*.$ONLY_SERIES)
;;
*)
continue
;;
esac
fi
case $dist in
kubuntu.lucid)
branch="http://bazaar.launchpad.net/~ubuntu-core-dev/ubuntu-seeds/$dist"
;;
kubuntu.*|kubuntu-active.*)
branch="http://bazaar.launchpad.net/~kubuntu-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-dev/ubuntu-seeds/$dist"
;;
ubuntu-gnome.*)
branch="http://bazaar.launchpad.net/~ubuntu-gnome-dev/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 branch "$branch" >/dev/null 2>&1
fi
done
|