Mercurial > hg-stable
diff contrib/builddeb @ 27209:7fbab10f812f
builddeb: rename --release option to --codename
Debian and Ubuntu releases have both codenames and traditional version numbers.
An entire "branch" of releases is referred to by its codename, and version
numbers (e.g. 8.2, 14.04.3) are used to address individual releases.
Since we use codenames for building .deb packages, let's call the option and
the variable appropriately.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Wed, 25 Nov 2015 14:59:43 +0800 |
parents | 6474b64045fb |
children | 9b86d29867a5 |
line wrap: on
line diff
--- a/contrib/builddeb Wed Dec 02 12:19:01 2015 -0800 +++ b/contrib/builddeb Wed Nov 25 14:59:43 2015 +0800 @@ -8,12 +8,12 @@ BUILD=1 CLEANUP=1 -DEBVERSION=jessie +CODENAME=jessie while [ "$1" ]; do case "$1" in - --release ) + --codename ) shift - DEBVERSION="$1" + CODENAME="$1" shift ;; --cleanup ) @@ -82,7 +82,7 @@ fi if [ "$CLEANUP" ] ; then echo - OUTPUTDIR=${OUTPUTDIR:=packages/debian-$DEBVERSION} + OUTPUTDIR=${OUTPUTDIR:=packages/debian-$CODENAME} find ../mercurial*.deb ../mercurial_*.build ../mercurial_*.changes \ -type f -newer $control -print0 | \ xargs -Inarf -0 mv narf "$OUTPUTDIR"