Mercurial > public > mercurial-scm > hg
diff contrib/builddeb @ 27210:9b86d29867a5
builddeb: add --distid option to specify Distributor ID
This allows builddeb to handle distributions that are not Debian.
Distributor ID is reported by lsb_release --id, and in case of builddeb it's
usually Debian or Ubuntu.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Wed, 25 Nov 2015 15:15:03 +0800 |
parents | 7fbab10f812f |
children | a624bae2aebf |
line wrap: on
line diff
--- a/contrib/builddeb Wed Nov 25 14:59:43 2015 +0800 +++ b/contrib/builddeb Wed Nov 25 15:15:03 2015 +0800 @@ -8,9 +8,15 @@ BUILD=1 CLEANUP=1 +DISTID=debian CODENAME=jessie while [ "$1" ]; do case "$1" in + --distid ) + shift + DISTID="$1" + shift + ;; --codename ) shift CODENAME="$1" @@ -82,7 +88,7 @@ fi if [ "$CLEANUP" ] ; then echo - OUTPUTDIR=${OUTPUTDIR:=packages/debian-$CODENAME} + OUTPUTDIR=${OUTPUTDIR:=packages/$DISTID-$CODENAME} find ../mercurial*.deb ../mercurial_*.build ../mercurial_*.changes \ -type f -newer $control -print0 | \ xargs -Inarf -0 mv narf "$OUTPUTDIR"