-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate-lists
executable file
·51 lines (41 loc) · 1.28 KB
/
update-lists
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
#!/bin/bash
set -e
ARCH=$(dpkg --print-architecture)
if [[ "$1" == "i386" ]] || [[ "$1" == "amd64" ]]; then
ARCH="$1"
fi
for i in seeds germinate-out packagelists-${ARCH} packages-${ARCH}; do
if [[ -d "$i" ]]; then
rm -rf "$i"
fi
mkdir $i
done
SEEDS=`pwd`/seeds
cd seeds
bzr branch http://bazaar.launchpad.net/~squibbylinux/squibbylinux/squibby-desktop.precise
bzr branch http://bazaar.launchpad.net/~ubuntu-core-dev/ubuntu-seeds/platform.precise
cd ../germinate-out
germinate -S file://$SEEDS \
-s squibby-desktop.precise \
-m http://localhost:3142/ubuntu/ \
-m http://ppa.lauchpad.net/squibbylinux/stable/ubuntu \
-d precise,precise-updates,precise-security \
-a ${ARCH} \
-c main,restricted,universe
cd ../packagelists-${ARCH}
for i in live desktop desktop-common; do
< ../germinate-out/$i \
tail -n +3 | head -n -2 | cut -d' ' -f1 > $i.packages
done
cd ../packages-${ARCH}
for i in squibby-desktop squibby-live; do
echo '#!/bin/sh' > $i
echo 'cat << EOF' >> $i
done
cat ../packagelists-${ARCH}/live.packages >> squibby-live
cat ../packagelists-${ARCH}/{desktop-common,desktop}.packages | sort -u >> squibby-desktop
for i in squibby-desktop squibby-live; do
echo 'EOF' >> $i
done
cd ..
rm -rf seeds germinate-out packagelists*