r2026: debian build
[clsql.git] / make-debian.sh
1 #!/bin/bash
2
3 DEBPKG=cl-sql
4 DEBVERSION=`sed -n -e "s/${DEBPKG} (\(.*\)).*/\1/p" < debian/changelog  |head -1`
5 TOPDIR=`pwd`
6 PACKAGE_DIR=/usr/local/src/Packages/${DEBPKG}
7
8 export CVSROOT=`cat CVS/Root`
9
10 echo "Building Debian files"
11 cvs com -m 'debian build'
12 cvs-buildpackage -rfakeroot -kkevin@rosenberg.net -H${TOPDIR}/cvsbp-prepare.sh -i.pdf -F -d ${DEBPKG} $*
13
14 rm -rf ${PACKAGE_DIR}/${DEBPKG}-${DEBVERSION}
15
16 if [ ! -z ${opt_lintian} ]; then
17   pushd ${PACKAGE_DIR} > /dev/null
18   lintian ${DEBPKG}_${DEBVERSION}_*.changes
19   popd > /dev/null
20 fi
21
22 exit 0