#!/bin/bash # Usage (e.g.): sbuild --chroot-sources=/path/to/chroot-sources # Adjust /etc/apt/sources.list.d/debathena.list using the # DEBATHENA_RELEASE environment variable (set to either "production", # "-proposed", or "-development"), # # If DEBATHENA_RELEASE is unset, assume we're building out of -development. : ${DEBATHENA_RELEASE=-development} : ${DEBATHENA_MIRROR:=http://debathena.mit.edu/apt} dist="$SBUILD_BUILD_CONF_DISTRIBUTION" list=/etc/apt/sources.list.d/debathena.list rm -f "$list" cat >>"$list" <>"$list" <>"$list" <