X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=debian%2Fmake-debian.sh;fp=debian%2Fmake-debian.sh;h=53bd24d0ac70bc93157f2a74578acc1d740df476;hb=058b5c71b81113e05afcb812a5ec4ab9a0d82423;hp=0000000000000000000000000000000000000000;hpb=c508f0f73b5ce1963d131698c1843005789d771a;p=uffi.git diff --git a/debian/make-debian.sh b/debian/make-debian.sh new file mode 100755 index 0000000..53bd24d --- /dev/null +++ b/debian/make-debian.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +set -e + +PKG=uffi +DEBPKG=cl-uffi + +PACKAGE_DIR=/usr/local/src/Packages/${DEBPKG} +WORK_DIR=/usr/local/src/Work/${PKG} + +echo "Building Debian files" +export CVSROOT=`cat CVS/Root` +pushd ${WORK_DIR} > /dev/null +cvs-buildpackage -rfakeroot -kkevin@rosenberg.net -F -d ${DEBPKG} -uc -us -sa -i.cvsignore $* +popd > /dev/null + +echo "Checking package with lintian" +DEBVERSION=`sed -n -e "s/${DEBPKG} (\(.*\)).*/\1/p" < ${WORK_DIR}/debian/changelog |head -1` +pushd ${PACKAGE_DIR} > /dev/null +lintian ${DEBPKG}_${DEBVERSION}_*.changes +popd > /dev/null + +exit 0