X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=debian%2Fmake-debian.sh;h=05927795cb2b8c3f12995a0dfd644983cc286ae5;hb=982ba4d6989fd506d6203e63472afecf9a097349;hp=d25c49eb3a9ac4a794b70981f0174b369ee743cf;hpb=d085ba5723806104593a775a144384a464d61002;p=ctsim.git diff --git a/debian/make-debian.sh b/debian/make-debian.sh index d25c49e..0592779 100755 --- a/debian/make-debian.sh +++ b/debian/make-debian.sh @@ -1,40 +1,5 @@ #!/bin/bash -e -bdeb.sh -Sctsim -c -Hdebian/cvsbp-prepare.sh -exit 0 - -PKG=ctsim -DEBPKG=ctsim - -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 +bdeb.sh -Sctsim -bc -bp $* -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 - -echo "Checking package" -test -s ${PACKAGE_DIR}/${DEBPKG}_${DEBVERSION}_*.changes && \ - (cd ${PACKAGE_DIR}; \ - lintian ${DEBPKG}_${DEBVERSION}_*.changes) +exit 0