contrib/builddeb
changeset 27212 ef9301ce6046
parent 27211 a624bae2aebf
child 28988 4f1dac94b53f
equal deleted inserted replaced
27211:a624bae2aebf 27212:ef9301ce6046
     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 DISTID=debian
    11 DISTID=`(lsb_release -is 2> /dev/null | tr '[:upper:]' '[:lower:]') || echo debian`
    12 CODENAME=jessie
    12 CODENAME=`lsb_release -cs 2> /dev/null || echo unknown`
    13 while [ "$1" ]; do
    13 while [ "$1" ]; do
    14     case "$1" in
    14     case "$1" in
    15     --distid )
    15     --distid )
    16         shift
    16         shift
    17         DISTID="$1"
    17         DISTID="$1"
    82 
    82 
    83 fi
    83 fi
    84 if [ "$CLEANUP" ] ; then
    84 if [ "$CLEANUP" ] ; then
    85     echo
    85     echo
    86     OUTPUTDIR=${OUTPUTDIR:=packages/$DISTID-$CODENAME}
    86     OUTPUTDIR=${OUTPUTDIR:=packages/$DISTID-$CODENAME}
       
    87     mkdir -p "$OUTPUTDIR"
    87     find ../mercurial*.deb ../mercurial_*.build ../mercurial_*.changes \
    88     find ../mercurial*.deb ../mercurial_*.build ../mercurial_*.changes \
    88           -type f -newer $control -print0 | \
    89           -type f -newer $control -print0 | \
    89       xargs -Inarf -0 mv narf "$OUTPUTDIR"
    90       xargs -Inarf -0 mv narf "$OUTPUTDIR"
    90     echo "Built packages for $debver:"
    91     echo "Built packages for $debver:"
    91     find "$OUTPUTDIR" -type f -newer $control -name '*.deb'
    92     find "$OUTPUTDIR" -type f -newer $control -name '*.deb'