X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=make-debian.sh;h=9c05fcb2f3eb0128c324677bf4844735e0cbc47a;hb=e9ccd1b6ef657ec7369537397006544f4a8ff899;hp=838a9773b692c44fbcf27eab1f0702ab295cf500;hpb=0df6492462f26d4fe2b366d60130a2b202b15c92;p=uffi.git diff --git a/make-debian.sh b/make-debian.sh index 838a977..9c05fcb 100644 --- a/make-debian.sh +++ b/make-debian.sh @@ -1,11 +1,16 @@ #!/bin/bash -if [ -z ${opt_dpkg_buildpackage} ]; then - export CVSROOT=`cat CVS/Root` -fi +DEBPKG=cl-uffi +DEBVERSION=`sed -n -e "s/${DEBPKG} (\(.*\)).*/\1/p" < debian/changelog |head -1` +TOPDIR=`pwd` +PACKAGE_DIR=/usr/local/src/Packages/${DEBPKG} + +export CVSROOT=`cat CVS/Root` echo "Building Debian files" -cvs-buildpackage -rfakeroot -kkevin@rosenberg.net -H${TOPDIR}/cvsbp-prepare -tC -i.pdf ${DEBPKG} +cvs-buildpackage -rfakeroot -kkevin@rosenberg.net -H${TOPDIR}/cvsbp-prepare.sh -i.pdf -F -d ${DEBPKG} -uc -us + +rm -rf ${PACKAGE_DIR}/${DEBPKG}-${DEBVERSION} if [ ! -z ${opt_lintian} ]; then pushd ${PACKAGE_DIR} > /dev/null