X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=make-debian.sh;h=778ce0aace2dfc9d0efb376b7191c4e3511b53a4;hb=7e462c712fb0d10414b34fb34821894cb7f2a950;hp=838a9773b692c44fbcf27eab1f0702ab295cf500;hpb=0df6492462f26d4fe2b366d60130a2b202b15c92;p=uffi.git diff --git a/make-debian.sh b/make-debian.sh index 838a977..778ce0a 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} + +rm -rf ${PACKAGE_DIR}/${DEBPKG}-${DEBVERSION} if [ ! -z ${opt_lintian} ]; then pushd ${PACKAGE_DIR} > /dev/null