Mercurial > hg
diff contrib/builddeb @ 26108:05306b9359d3
builddeb: rework how output dir and platform are specified
This makes it possible to write tests for both builddeb and dockerdeb
that actually build .debs and then sanity check the contents.
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 25 Aug 2015 00:02:44 -0400 |
parents | e5f2a2a095cb |
children | 7f49efcaa9b4 |
line wrap: on
line diff
--- a/contrib/builddeb Wed Aug 26 10:20:07 2015 -0400 +++ b/contrib/builddeb Tue Aug 25 00:02:44 2015 -0400 @@ -7,9 +7,14 @@ . $(dirname $0)/packagelib.sh BUILD=1 -DEBBUILDDIR="$PWD/debbuild" +DEBVERSION=jessie while [ "$1" ]; do case "$1" in + --release ) + shift + DEBVERSION="$1" + shift + ;; --prepare ) shift BUILD= @@ -26,6 +31,8 @@ esac done +DEBBUILDDIR=${OUTPUTDIR:="$PWD/debbuild"} + set -u rm -rf $DEBBUILDDIR