equal
deleted
inserted
replaced
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' |