1
by Ubuntu Archive
add update-germinate, update-one-germinate, and update-seeds |
1 |
#! /bin/sh
|
2 |
||
3 |
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then |
|
4 |
echo "Usage: $0 NAME DIST COMPONENTS" >&2 |
|
5 |
exit 1 |
|
6 |
fi
|
|
7 |
||
8 |
NAME="$1" |
|
9 |
DIST="$2" |
|
10 |
COMPONENTS="$3" |
|
11 |
||
116
by Colin Watson
update-one-germinate: fetch seeds from the mirror on the local filesystem |
12 |
SEED_SOURCE="file://$HOME/public_html/seeds/" |
1
by Ubuntu Archive
add update-germinate, update-one-germinate, and update-seeds |
13 |
|
14 |
rm -rf "$HOME/public_html/germinate-output/$NAME.new" |
|
15 |
mkdir -p "$HOME/public_html/germinate-output/$NAME.new" |
|
16 |
cd "$HOME/public_html/germinate-output/$NAME.new" |
|
116
by Colin Watson
update-one-germinate: fetch seeds from the mirror on the local filesystem |
17 |
python "$HOME/germinate/bin/germinate" $GERMINATE_OPTIONS ${SEED_SOURCE:+-S "$SEED_SOURCE"} -m file:///home/ubuntu-archive/mirror/ubuntu -s "$NAME" -d "$DIST" ${COMPONENTS:+-c "$COMPONENTS"} > _germinate_output |
1
by Ubuntu Archive
add update-germinate, update-one-germinate, and update-seeds |
18 |
cd ..
|
92
by Colin Watson
update-one-germinate: make old directory handling more robust |
19 |
rm -rf "$NAME.old" |
20 |
[ -e "$NAME" ] && mv "$NAME" "$NAME.old" |
|
1
by Ubuntu Archive
add update-germinate, update-one-germinate, and update-seeds |
21 |
mv "$NAME.new" "$NAME" |
22 |
rm -rf "$NAME.old" |