X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=debian%2Fmake-debian.sh;fp=debian%2Fmake-debian.sh;h=7192045a1fd469c211a337ac191559a833b555a6;hb=98eff0a90b337209cc23e955fdc38e33589c4d8a;hp=0000000000000000000000000000000000000000;hpb=6d7e9a86e0327598339a7358e61ca604b3e518a0;p=clsql.git diff --git a/debian/make-debian.sh b/debian/make-debian.sh new file mode 100755 index 0000000..7192045 --- /dev/null +++ b/debian/make-debian.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +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} + +if [ ! -z ${opt_lintian} ]; then + pushd ${PACKAGE_DIR} > /dev/null + lintian ${DEBPKG}_${DEBVERSION}_*.changes + popd > /dev/null +fi + +exit 0