~ubuntu-archive/ubuntu-archive-scripts/trunk

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
66
67
68
69
70
#! /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.trusty platform.utopic platform.vivid \
	    ubuntu.lucid ubuntu.precise ubuntu.trusty ubuntu.utopic ubuntu.vivid \
	    kubuntu.lucid kubuntu.precise kubuntu.trusty kubuntu.utopic kubuntu.vivid \
	    kubuntu-active.precise kubuntu-active.trusty kubuntu-active.utopic kubuntu-active.vivid \
	    kubuntu-plasma5.utopic kubuntu-plasma5.vivid \
	    edubuntu.lucid edubuntu.precise edubuntu.trusty edubuntu.utopic edubuntu.vivid \
	    xubuntu.lucid xubuntu.precise xubuntu.trusty xubuntu.utopic xubuntu.vivid \
	    netbook.lucid netbook.precise \
	    mythbuntu.lucid mythbuntu.precise mythbuntu.trusty mythbuntu.utopic mythbuntu.vivid \
	    ubuntustudio.lucid ubuntustudio.precise ubuntustudio.trusty ubuntustudio.utopic ubuntustudio.vivid \
	    lubuntu.precise lubuntu.trusty lubuntu.utopic lubuntu.vivid \
	    ubuntu-gnome.trusty ubuntu-gnome.utopic ubuntu-gnome.vivid \
	    ubuntu-touch.trusty ubuntu-touch.utopic ubuntu-touch.vivid \
	    ubuntu-mate.vivid; 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.*|kubuntu-plasma5.*)
			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"
			;;
		ubuntu-mate.*)
			branch="http://bazaar.launchpad.net/~ubuntu-mate-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