comparison 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
comparison
equal deleted inserted replaced
27208:994d8dced775 27209:7fbab10f812f
6 6
7 . $(dirname $0)/packagelib.sh 7 . $(dirname $0)/packagelib.sh
8 8
9 BUILD=1 9 BUILD=1
10 CLEANUP=1 10 CLEANUP=1
11 DEBVERSION=jessie 11 CODENAME=jessie
12 while [ "$1" ]; do 12 while [ "$1" ]; do
13 case "$1" in 13 case "$1" in
14 --release ) 14 --codename )
15 shift 15 shift
16 DEBVERSION="$1" 16 CODENAME="$1"
17 shift 17 shift
18 ;; 18 ;;
19 --cleanup ) 19 --cleanup )
20 shift 20 shift
21 BUILD= 21 BUILD=
80 fi 80 fi
81 81
82 fi 82 fi
83 if [ "$CLEANUP" ] ; then 83 if [ "$CLEANUP" ] ; then
84 echo 84 echo
85 OUTPUTDIR=${OUTPUTDIR:=packages/debian-$DEBVERSION} 85 OUTPUTDIR=${OUTPUTDIR:=packages/debian-$CODENAME}
86 find ../mercurial*.deb ../mercurial_*.build ../mercurial_*.changes \ 86 find ../mercurial*.deb ../mercurial_*.build ../mercurial_*.changes \
87 -type f -newer $control -print0 | \ 87 -type f -newer $control -print0 | \
88 xargs -Inarf -0 mv narf "$OUTPUTDIR" 88 xargs -Inarf -0 mv narf "$OUTPUTDIR"
89 echo "Built packages for $debver:" 89 echo "Built packages for $debver:"
90 find "$OUTPUTDIR" -type f -newer $control -name '*.deb' 90 find "$OUTPUTDIR" -type f -newer $control -name '*.deb'