201
by Adam Conrad
update-seeds: sh -> bash to support expansion syntax |
1 |
#! /bin/bash
|
1
by Ubuntu Archive
add update-germinate, update-one-germinate, and update-seeds |
2 |
set -e
|
85
by Colin Watson
update-seeds: allow command-line limiting to a single series |
3 |
|
1
by Ubuntu Archive
add update-germinate, update-one-germinate, and update-seeds |
4 |
cd ~/public_html/seeds
|
5 |
if ! lockfile -r2 .update.lock; then |
|
6 |
exit 1 |
|
7 |
fi
|
|
8 |
trap 'rm -f .update.lock' EXIT HUP INT QUIT TERM |
|
85
by Colin Watson
update-seeds: allow command-line limiting to a single series |
9 |
|
10 |
ONLY_SERIES="$1" |
|
11 |
||
383.1.1
by ural.tunaboyu at canonical
EOL focal |
12 |
for dist in platform.{jammy,noble,oracular,plucky,questing} \ |
13 |
ubuntu.{jammy,noble,oracular,plucky,questing} \ |
|
14 |
kubuntu.{jammy,noble,oracular,plucky,questing} \ |
|
383
by Paride Legovini
plucky->questing |
15 |
edubuntu.{noble,oracular,plucky,questing} \ |
383.1.1
by ural.tunaboyu at canonical
EOL focal |
16 |
xubuntu.{jammy,noble,oracular,plucky,questing} \ |
17 |
i386.{jammy,noble,oracular,plucky,questing} \ |
|
18 |
ubuntustudio.{jammy,noble,oracular,plucky,questing} \ |
|
19 |
lubuntu.{jammy,noble,oracular,plucky,questing} \ |
|
20 |
ubuntukylin.{jammy,noble,oracular,plucky,questing} \ |
|
383
by Paride Legovini
plucky->questing |
21 |
ubuntucinnamon.{noble,oracular,plucky,questing} \ |
383.1.1
by ural.tunaboyu at canonical
EOL focal |
22 |
ubuntu-core.{jammy,noble,oracular,plucky,questing} \ |
23 |
ubuntu-mate.{jammy,noble,oracular,plucky,questing} \ |
|
24 |
ubuntu-budgie.{jammy,noble,oracular,plucky,questing} \ |
|
383
by Paride Legovini
plucky->questing |
25 |
ubuntu-unity.{noble,oracular,plucky,questing}; do |
85
by Colin Watson
update-seeds: allow command-line limiting to a single series |
26 |
if [ "$ONLY_SERIES" ]; then |
27 |
case $dist in |
|
28 |
*.$ONLY_SERIES) |
|
29 |
;;
|
|
30 |
*)
|
|
31 |
continue
|
|
32 |
;;
|
|
33 |
esac
|
|
34 |
fi
|
|
35 |
||
15
by Ubuntu Archive
improve handling of changed branch locations |
36 |
case $dist in |
369
by Steve Langasek
Further refactor to reduce code duplication |
37 |
edubuntu.*|kubuntu.*|xubuntu.*|ubuntustudio.*|lubuntu.*|\ |
38 |
ubuntu-gnome.*|ubuntu-mate.*|ubuntucinnamon.*) |
|
39 |
team=${dist%.*}-dev |
|
86
by Colin Watson
update-germinate, update-one-germinate, update-seeds: add ubuntu-gnome |
40 |
;;
|
171
by Adam Conrad
update-seeds: Add ubuntukylin config from production |
41 |
ubuntukylin.*)
|
366
by Steve Langasek
Refactor to reduce code duplication now that all current flavors are in git |
42 |
team=ubuntukylin-members |
171
by Adam Conrad
update-seeds: Add ubuntukylin config from production |
43 |
;;
|
203
by Colin Watson
update-seeds, update-germinate: add ubuntu-budgie |
44 |
ubuntu-budgie.*)
|
366
by Steve Langasek
Refactor to reduce code duplication now that all current flavors are in git |
45 |
team=ubuntubudgie-dev |
203
by Colin Watson
update-seeds, update-germinate: add ubuntu-budgie |
46 |
;;
|
332
by Steve Langasek
Add ubuntu-unity to the list of seeds |
47 |
ubuntu-unity.*)
|
366
by Steve Langasek
Refactor to reduce code duplication now that all current flavors are in git |
48 |
team=unity7maintainers |
332
by Steve Langasek
Add ubuntu-unity to the list of seeds |
49 |
;;
|
221
by Steve Langasek
ubuntu-touch seeds also git-only |
50 |
*)
|
366
by Steve Langasek
Refactor to reduce code duplication now that all current flavors are in git |
51 |
team=ubuntu-core-dev |
233
by Steve Langasek
infer gitness from the URL instead of requiring a manual declaration |
52 |
;;
|
53 |
esac
|
|
368
by Steve Langasek
Use correct syntax for team in URLs |
54 |
branch="https://git.launchpad.net/~$team/ubuntu-seeds/+git/${dist%.*}" |
1
by Ubuntu Archive
add update-germinate, update-one-germinate, and update-seeds |
55 |
if [ -d "$dist" ]; then |
365
by Steve Langasek
update-seeds: drop bzr support |
56 |
git -C "$dist" pull -f >/dev/null 2>&1 |
1
by Ubuntu Archive
add update-germinate, update-one-germinate, and update-seeds |
57 |
else
|
365
by Steve Langasek
update-seeds: drop bzr support |
58 |
git clone -b "$(echo $dist | sed 's/.*\.//')" "$branch" "$dist" >/dev/null 2>&1 |
1
by Ubuntu Archive
add update-germinate, update-one-germinate, and update-seeds |
59 |
fi
|
60 |
done
|