Revision 25733,
1.4 KB
checked in by jdreed, 11 years ago
(diff) |
Update chroot-sources to match do-build now that we're using -stagging
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[24680] | 1 | #!/bin/bash |
---|
| 2 | |
---|
[24882] | 3 | # Usage (e.g.): sbuild --chroot-sources=/path/to/chroot-sources |
---|
[24680] | 4 | |
---|
| 5 | # Adjust /etc/apt/sources.list.d/debathena.list using the |
---|
[24683] | 6 | # DEBATHENA_RELEASE environment variable (set to either "production", |
---|
[24680] | 7 | # "-proposed", or "-development"), |
---|
| 8 | # |
---|
[24882] | 9 | # If DEBATHENA_RELEASE is unset, assume we're building out of -development. |
---|
[24680] | 10 | |
---|
[24882] | 11 | : ${DEBATHENA_RELEASE=-development} |
---|
[24680] | 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 | |
---|
[25733] | 23 | if [ "$DEBATHENA_RELEASE" = "-staging" ]; then |
---|
| 24 | cat >>"$list" <<EOF |
---|
| 25 | deb $DEBATHENA_MIRROR ${dist}-staging debathena debathena-config |
---|
| 26 | deb-src $DEBATHENA_MIRROR ${dist}-staging debathena debathena-config |
---|
| 27 | EOF |
---|
| 28 | DEBATHENA_RELEASE="-development" |
---|
| 29 | fi |
---|
| 30 | |
---|
[24680] | 31 | if [ "$DEBATHENA_RELEASE" = "-proposed" ] || [ "$DEBATHENA_RELEASE" = "-development" ]; then |
---|
[24682] | 32 | cat >>"$list" <<EOF |
---|
[24680] | 33 | deb $DEBATHENA_MIRROR ${dist}-proposed debathena debathena-config |
---|
| 34 | deb-src $DEBATHENA_MIRROR ${dist}-proposed debathena debathena-config |
---|
| 35 | EOF |
---|
| 36 | fi |
---|
| 37 | |
---|
| 38 | if [ "$DEBATHENA_RELEASE" = "-development" ]; then |
---|
| 39 | cat >>"$list" <<EOF |
---|
| 40 | deb $DEBATHENA_MIRROR ${dist}-development debathena debathena-config |
---|
| 41 | deb-src $DEBATHENA_MIRROR ${dist}-development debathena debathena-config |
---|
| 42 | EOF |
---|
| 43 | fi |
---|
| 44 | |
---|
| 45 | DEBIAN_FRONTEND=noninteractive apt-get update |
---|
Note: See
TracBrowser
for help on using the repository browser.