FS-7019 full list of distributions to target based on distribution autodetection

This commit is contained in:
Steven Ayre 2014-11-21 01:28:38 +00:00 committed by Steven Ayre
parent d9872d5cb7
commit de90201101
1 changed files with 10 additions and 1 deletions

11
debian/util.sh vendored
View File

@ -385,7 +385,16 @@ build_all () {
done
shift $(($OPTIND-1))
[ -n "$archs" ] || archs="amd64 i386"
[ -n "$distros" ] || distros="sid jessie wheezy"
if [ -z "$distros" ]; then
case "$(lsb_release -is)" in
Ubuntu)
distros="utopic trusty"
;;
*) # default to assuming Debian
distros="sid jessie wheezy"
;;
esac
fi
! $depinst || aptitude install -y \
rsync git less cowbuilder ccache \
devscripts equivs build-essential