Revision 24882,
1.2 KB
checked in by geofft, 14 years ago
(diff) |
chroot-sources: Default to -dev, not -proposed, per new workflow
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | # Usage (e.g.): sbuild --chroot-sources=/path/to/chroot-sources |
---|
4 | |
---|
5 | # Adjust /etc/apt/sources.list.d/debathena.list using the |
---|
6 | # DEBATHENA_RELEASE environment variable (set to either "production", |
---|
7 | # "-proposed", or "-development"), |
---|
8 | # |
---|
9 | # If DEBATHENA_RELEASE is unset, assume we're building out of -development. |
---|
10 | |
---|
11 | : ${DEBATHENA_RELEASE=-development} |
---|
12 | : ${DEBATHENA_MIRROR:=http://debathena.mit.edu/apt} |
---|
13 | dist="$SBUILD_BUILD_CONF_DISTRIBUTION" |
---|
14 | list=/etc/apt/sources.list.d/debathena.list |
---|
15 | |
---|
16 | rm -f "$list" |
---|
17 | |
---|
18 | cat >>"$list" <<EOF |
---|
19 | deb $DEBATHENA_MIRROR $dist debathena debathena-config |
---|
20 | deb-src $DEBATHENA_MIRROR $dist debathena debathena-config |
---|
21 | EOF |
---|
22 | |
---|
23 | if [ "$DEBATHENA_RELEASE" = "-proposed" ] || [ "$DEBATHENA_RELEASE" = "-development" ]; then |
---|
24 | cat >>"$list" <<EOF |
---|
25 | deb $DEBATHENA_MIRROR ${dist}-proposed debathena debathena-config |
---|
26 | deb-src $DEBATHENA_MIRROR ${dist}-proposed debathena debathena-config |
---|
27 | EOF |
---|
28 | fi |
---|
29 | |
---|
30 | if [ "$DEBATHENA_RELEASE" = "-development" ]; then |
---|
31 | cat >>"$list" <<EOF |
---|
32 | deb $DEBATHENA_MIRROR ${dist}-development debathena debathena-config |
---|
33 | deb-src $DEBATHENA_MIRROR ${dist}-development debathena debathena-config |
---|
34 | EOF |
---|
35 | fi |
---|
36 | |
---|
37 | DEBIAN_FRONTEND=noninteractive apt-get update |
---|
Note: See
TracBrowser
for help on using the repository browser.