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
|
#! /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.{trusty,xenial,bionic,focal,jammy,mantic,noble} \
ubuntu.{trusty,xenial,bionic,focal,jammy,mantic,noble} \
kubuntu.{trusty,xenial,bionic,focal,jammy,mantic,noble} \
edubuntu.{mantic,noble} \
xubuntu.{trusty,xenial,bionic,focal,jammy,mantic,noble} \
i386.{focal,jammy,mantic,noble} \
ubuntustudio.{trusty,xenial,bionic,focal,jammy,mantic,noble} \
lubuntu.{trusty,xenial,bionic,focal,jammy,mantic,noble} \
ubuntu-gnome.xenial \
ubuntu-touch.{trusty,xenial} \
ubuntukylin.{trusty,xenial,bionic,focal,jammy,mantic,noble} \
ubuntucinnamon.{mantic,noble} \
ubuntu-core.{xenial,bionic,focal,jammy,mantic,noble} \
ubuntu-mate.{xenial,bionic,focal,jammy,mantic,noble} \
ubuntu-budgie.{bionic,focal,jammy,mantic,noble} \
ubuntu-unity.{mantic,noble}; 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
|