X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=debian%2Fmake-debian.sh;h=70f6030e8ad90a81adbd78d27ceaa42f08aedb78;hb=d930ef04841e4865903758fcc0e7d21934303b03;hp=169c6deeb13f2590decd22156d64e5d8282cf246;hpb=f4c5d3a20e78a3528181f6b2e2b090d86ff3ab15;p=ctsim.git diff --git a/debian/make-debian.sh b/debian/make-debian.sh index 169c6de..70f6030 100755 --- a/debian/make-debian.sh +++ b/debian/make-debian.sh @@ -1,38 +1,5 @@ -#!/bin/bash +#!/bin/bash -e -PKG=ctsim -DEBPKG=ctsim +bdeb ctsim -bc -bp $* -set -e - -BASE_HOME=/usr/local/src -WORK_HOME=${BASE_HOME}/Work -WORK_DIR=${WORK_HOME}/${PKG} -PACKAGE_DIR=${BASE_HOME}/Packages/${DEBPKG} -SOURCE_DIR=${WORK_HOME}/${PKG} - -CHANGELOG=changelog -CHANGELOG=${WORK_DIR}/debian/changelog -UPSTREAM_VERSION=`sed -n -e "s/${DEBPKG} (\(.*\)-[0-9.]).*/\1/p" < ${CHANGELOG} |head -1` -DEB_VERSION=`sed -n -e "s/${DEBPKG} (\(.*\)).*/\1/p" < ${CHANGELOG} |head -1` - -DEB_DIR=${WORK_HOME}/${PKG}-${UPSTREAM_VERSION} -ORIGINAL_TARBALL=${DEBPKG}_${UPSTREAM_VERSION}.orig.tar.gz -BUILD_LOG=${WORK_HOME}/${DEBPKG}_${DEB_VERSION}_build.log - -if [ -z "${DEB_VERSION}" -o -z "${UPSTREAM_VERSION}" ]; then - echo "Error: unable to parse version in changelog file" - exit 1 -fi - -cd ${WORK_DIR} - -test -s CVS/Root && export CVSROOT=`cat CVS/Root` - -echo "Building Debian files" -cvs com -m 'Autocommit for make-debian' -cvs-buildpackage -rfakeroot -kkevin@rosenberg.net -H${WORK_DIR}/debian/cvsbp-prepare.sh -i -F $* -d ${DEBPKG} -uc -us -sa > ${BUILD_LOG} 2>&1 - -test -s ${PACKAGE_DIR}/${DEBPKG}_${DEBVERSION}_*.changes && \ - (cd ${PACKAGE_DIR}; \ - lintian ${DEBPKG}_${DEBVERSION}_*.changes) +exit 0