dev/debian-build/dbuild_release
changeset 335 0d15506351db
parent 314 c02eae7665af
child 336 5874d49da474
equal deleted inserted replaced
334:b7e56688dd14 335:0d15506351db
     1 #!/bin/sh
     1 #!/bin/sh
     2 
     2 
     3 set -e
     3 set -e
     4 
     4 
       
     5 DPKG_BUILDPACKAGE_OPTIONS=-kFD56DDC0
       
     6 
     5 cd $(hg root)
     7 cd $(hg root)
     6 
     8 
     7 PACKAGE=$(dpkg-parsechangelog | sed -n 's/^Source: \(.*\)/\1/p')
     9 . dev/debian-build/dbuild
     8 DEBIAN_VERSION=$(dpkg-parsechangelog | sed -n 's/^Version: \(.*\)/\1/p')
       
     9 # Lazy, but hey
       
    10 UPSTREAM_VERSION=$(dpkg-parsechangelog | sed -n 's/^Version: \(.*\)-[^-]*/\1/p')
       
    11 BUILDDIR=$(pwd)/build/debian
       
    12 
    10 
    13 echo PACKAGE $PACKAGE
       
    14 echo DEBIAN_VERSION $DEBIAN_VERSION
       
    15 echo UPSTREAM_VERSION $UPSTREAM_VERSION
       
    16 echo UPSTREAM $UPSTREAM
       
    17 echo BUILDDIR $BUILDDIR
       
    18 
       
    19 rm -rf ${BUILDDIR}
       
    20 mkdir -p ${BUILDDIR}
       
    21 hg archive -X '.hg*' -X 'dev/**' -t tgz -r release_${UPSTREAM_VERSION} \
       
    22    ${BUILDDIR}/${PACKAGE}_${UPSTREAM_VERSION}.orig.tar.gz
       
    23 hg archive -X '.hg*' -X 'dev/**' -r debian_${DEBIAN_VERSION} \
       
    24    ${BUILDDIR}/${PACKAGE}-${UPSTREAM_VERSION}
       
    25 
       
    26 cd ${BUILDDIR}/${PACKAGE}-${UPSTREAM_VERSION}
       
    27 dpkg-buildpackage -kFD56DDC0
       
    28 #dpkg-buildpackage
       
    29 cd ..
       
    30 lintian -i --pedantic -IE ${PACKAGE}_${DEBIAN_VERSION}_*.changes
       
    31 sudo pbuilder --build ${PACKAGE}_${DEBIAN_VERSION}.dsc
    11 sudo pbuilder --build ${PACKAGE}_${DEBIAN_VERSION}.dsc