X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=debian%2Fmake-debian.sh;h=d9e87bacc147e99bbfe24d70c04098f11a6d955a;hb=84c62eec2a8bb648e9e93d049656b6f91b6769b4;hp=7192045a1fd469c211a337ac191559a833b555a6;hpb=98eff0a90b337209cc23e955fdc38e33589c4d8a;p=clsql.git diff --git a/debian/make-debian.sh b/debian/make-debian.sh index 7192045..d9e87ba 100755 --- a/debian/make-debian.sh +++ b/debian/make-debian.sh @@ -2,22 +2,18 @@ PKG=clsql DEBPKG=cl-sql + PACKAGE_DIR=/usr/local/src/Packages/${DEBPKG} WORK_DIR=/usr/local/src/Work/${PKG} -DEBVERSION=`sed -n -e "s/${DEBPKG} (\(.*\)).*/\1/p" < ${WORK_DIR}/debian/changelog |head -1` - -export CVSROOT=`cat CVS/Root` - echo "Building Debian files" -cvs-buildpackage -rfakeroot -kkevin@rosenberg.net -H${WORK_DIR}/debian/cvsbp-prepare.sh -F -d ${DEBPKG} -uc -us $* - -rm -rf ${PACKAGE_DIR}/${DEBPKG}-${DEBVERSION} +export CVSROOT=`cat CVS/Root` +cvs-buildpackage -rfakeroot -kkevin@rosenberg.net -F -d ${DEBPKG} -uc -us -sa -i.cvsignore $* -if [ ! -z ${opt_lintian} ]; then - pushd ${PACKAGE_DIR} > /dev/null - lintian ${DEBPKG}_${DEBVERSION}_*.changes - popd > /dev/null -fi +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