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
|
#! /bin/bash
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.{jammy,noble,oracular,plucky,questing} \
ubuntu.{jammy,noble,oracular,plucky,questing} \
kubuntu.{jammy,noble,oracular,plucky,questing} \
edubuntu.{noble,oracular,plucky,questing} \
xubuntu.{jammy,noble,oracular,plucky,questing} \
i386.{jammy,noble,oracular,plucky,questing} \
ubuntustudio.{jammy,noble,oracular,plucky,questing} \
lubuntu.{jammy,noble,oracular,plucky,questing} \
ubuntukylin.{jammy,noble,oracular,plucky,questing} \
ubuntucinnamon.{noble,oracular,plucky,questing} \
ubuntu-core.{jammy,noble,oracular,plucky,questing} \
ubuntu-mate.{jammy,noble,oracular,plucky,questing} \
ubuntu-budgie.{jammy,noble,oracular,plucky,questing} \
ubuntu-unity.{noble,oracular,plucky,questing}; do
if [ "$ONLY_SERIES" ]; then
case $dist in
*.$ONLY_SERIES)
;;
*)
continue
;;
esac
fi
case $dist in
edubuntu.*|kubuntu.*|xubuntu.*|ubuntustudio.*|lubuntu.*|\
ubuntu-gnome.*|ubuntu-mate.*|ubuntucinnamon.*)
team=${dist%.*}-dev
;;
ubuntukylin.*)
team=ubuntukylin-members
;;
ubuntu-budgie.*)
team=ubuntubudgie-dev
;;
ubuntu-unity.*)
team=unity7maintainers
;;
*)
team=ubuntu-core-dev
;;
esac
branch="https://git.launchpad.net/~$team/ubuntu-seeds/+git/${dist%.*}"
if [ -d "$dist" ]; then
git -C "$dist" pull -f >/dev/null 2>&1
else
git clone -b "$(echo $dist | sed 's/.*\.//')" "$branch" "$dist" >/dev/null 2>&1
fi
done
|