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

1 by Ubuntu Archive
add update-germinate, update-one-germinate, and update-seeds
1
#!/bin/sh
2
209.1.1 by Simon Quigley
Add Git support for seeds, and convert Lubuntu's seed over to Git.
3
set -e
1 by Ubuntu Archive
add update-germinate, update-one-germinate, and update-seeds
4
176 by Colin Watson
update-germinate: germinate is in git now
5
(cd "$HOME/germinate" && git pull -q)
1 by Ubuntu Archive
add update-germinate, update-one-germinate, and update-seeds
6
262 by Steve Langasek
Restore accidentally-nuked export statement
7
export GERMINATE_OPTIONS
261 by Steve Langasek
Refactor for less code duplication
8
options_for_dist() {
9
	case $1 in
290 by Iain Lane
Drop eoan
10
		precise|trusty|xenial|bionic|disco)
260 by Steve Langasek
Explicitly germinate on i386 for historic series.
11
			GERMINATE_OPTIONS="-a i386"
12
			;;
264 by Colin Watson
Explicitly clear GERMINATE_OPTIONS in the default branch of options_for_dist.
13
		*)
290.1.1 by Colin Watson
update-germinate: Explicitly pass -a amd64 on >= focal.
14
			GERMINATE_OPTIONS="-a amd64"
264 by Colin Watson
Explicitly clear GERMINATE_OPTIONS in the default branch of options_for_dist.
15
			;;
260 by Steve Langasek
Explicitly germinate on i386 for historic series.
16
	esac
261 by Steve Langasek
Refactor for less code duplication
17
}
18
300 by Łukasz 'sil2100' Zemczak
groovy -> hirsute
19
for dist in precise trusty xenial bionic focal groovy hirsute; do
261 by Steve Langasek
Refactor for less code duplication
20
	options_for_dist "$dist"
1 by Ubuntu Archive
add update-germinate, update-one-germinate, and update-seeds
21
	update-one-germinate "ubuntu.$dist" "$dist" main,restricted,universe,multiverse
207 by Adam Conrad
Stop germinating for vivid for all but ubuntu and ubuntu-touch
22
done
23
300 by Łukasz 'sil2100' Zemczak
groovy -> hirsute
24
for dist in precise trusty xenial bionic focal groovy hirsute; do
261 by Steve Langasek
Refactor for less code duplication
25
	options_for_dist "$dist"
1 by Ubuntu Archive
add update-germinate, update-one-germinate, and update-seeds
26
	update-one-germinate "kubuntu.$dist" "$dist" main,restricted,universe,multiverse
27
done
28
234 by Adam Conrad
cosmic -> disco; drop artful
29
for dist in precise trusty xenial; do
261 by Steve Langasek
Refactor for less code duplication
30
	options_for_dist "$dist"
1 by Ubuntu Archive
add update-germinate, update-one-germinate, and update-seeds
31
	update-one-germinate "edubuntu.$dist" "$dist" main,restricted,universe,multiverse
32
done
33
300 by Łukasz 'sil2100' Zemczak
groovy -> hirsute
34
for dist in precise trusty xenial bionic focal groovy hirsute; do
261 by Steve Langasek
Refactor for less code duplication
35
	options_for_dist "$dist"
1 by Ubuntu Archive
add update-germinate, update-one-germinate, and update-seeds
36
	update-one-germinate "xubuntu.$dist" "$dist" main,restricted,universe,multiverse
37
done
38
300 by Łukasz 'sil2100' Zemczak
groovy -> hirsute
39
for dist in precise trusty xenial bionic focal groovy hirsute; do
261 by Steve Langasek
Refactor for less code duplication
40
	options_for_dist "$dist"
1 by Ubuntu Archive
add update-germinate, update-one-germinate, and update-seeds
41
	update-one-germinate "ubuntustudio.$dist" "$dist" main,restricted,universe,multiverse
42
done
43
234 by Adam Conrad
cosmic -> disco; drop artful
44
for dist in precise trusty xenial; do
261 by Steve Langasek
Refactor for less code duplication
45
	options_for_dist "$dist"
1 by Ubuntu Archive
add update-germinate, update-one-germinate, and update-seeds
46
	update-one-germinate "mythbuntu.$dist" "$dist" main,restricted,universe,multiverse
47
done
48
207 by Adam Conrad
Stop germinating for vivid for all but ubuntu and ubuntu-touch
49
for dist in precise trusty; do
261 by Steve Langasek
Refactor for less code duplication
50
	options_for_dist "$dist"
38 by Ubuntu Archive
replace kubuntu-mobile with kubuntu-active, jriddell
51
	update-one-germinate "kubuntu-active.$dist" "$dist" main,restricted,universe,multiverse
9 by Ubuntu Archive
add kubuntu-mobile
52
done
53
300 by Łukasz 'sil2100' Zemczak
groovy -> hirsute
54
for dist in precise trusty xenial bionic focal groovy hirsute; do
261 by Steve Langasek
Refactor for less code duplication
55
	options_for_dist "$dist"
19 by Ubuntu Archive
add germinate output for Lubuntu
56
	update-one-germinate "lubuntu.$dist" "$dist" main,restricted,universe,multiverse
57
done
86 by Colin Watson
update-germinate, update-one-germinate, update-seeds: add ubuntu-gnome
58
234 by Adam Conrad
cosmic -> disco; drop artful
59
for dist in trusty xenial; do
261 by Steve Langasek
Refactor for less code duplication
60
	options_for_dist "$dist"
86 by Colin Watson
update-germinate, update-one-germinate, update-seeds: add ubuntu-gnome
61
	update-one-germinate "ubuntu-gnome.$dist" "$dist" main,restricted,universe,multiverse
62
done
127 by Colin Watson
update-germinate: add ubuntu-touch
63
234 by Adam Conrad
cosmic -> disco; drop artful
64
for dist in trusty xenial; do
261 by Steve Langasek
Refactor for less code duplication
65
	options_for_dist "$dist"
127 by Colin Watson
update-germinate: add ubuntu-touch
66
	update-one-germinate "ubuntu-touch.$dist" "$dist" main,restricted,universe,multiverse
67
done
153 by Colin Watson
update-germinate: add ubuntukylin
68
300 by Łukasz 'sil2100' Zemczak
groovy -> hirsute
69
for dist in xenial bionic focal groovy hirsute; do
261 by Steve Langasek
Refactor for less code duplication
70
	options_for_dist "$dist"
153 by Colin Watson
update-germinate: add ubuntukylin
71
	update-one-germinate "ubuntukylin.$dist" "$dist" main,restricted,universe,multiverse
72
done
159 by Colin Watson
update-seeds, update-germinate: add ubuntu-mate
73
300 by Łukasz 'sil2100' Zemczak
groovy -> hirsute
74
for dist in xenial bionic focal groovy hirsute; do
261 by Steve Langasek
Refactor for less code duplication
75
	options_for_dist "$dist"
159 by Colin Watson
update-seeds, update-germinate: add ubuntu-mate
76
	update-one-germinate "ubuntu-mate.$dist" "$dist" main,restricted,universe,multiverse
77
done
203 by Colin Watson
update-seeds, update-germinate: add ubuntu-budgie
78
300 by Łukasz 'sil2100' Zemczak
groovy -> hirsute
79
for dist in bionic focal groovy hirsute; do
261 by Steve Langasek
Refactor for less code duplication
80
	options_for_dist "$dist"
203 by Colin Watson
update-seeds, update-germinate: add ubuntu-budgie
81
	update-one-germinate "ubuntu-budgie.$dist" "$dist" main,restricted,universe,multiverse
82
done
263 by Steve Langasek
Germinate the i386 source package whitelist for focal
83
300 by Łukasz 'sil2100' Zemczak
groovy -> hirsute
84
for dist in focal groovy hirsute; do
263 by Steve Langasek
Germinate the i386 source package whitelist for focal
85
	GERMINATE_OPTIONS="-a i386" \
86
	update-one-germinate "i386.$dist" "$dist" main,restricted,universe,multiverse
87
done