9b522d4e44054e90a19413b8b947069a8eee7314
[uffi.git] / make-debian.sh
1 #!/bin/bash
2
3 DEBPKG=cl-uffi
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-buildpackage -rfakeroot -kkevin@rosenberg.net -H${TOPDIR}/cvsbp-prepare -tC -i.pdf -F ${DEBPKG}
12
13 if [ ! -z ${opt_lintian} ]; then
14   pushd ${PACKAGE_DIR} > /dev/null
15   lintian ${DEBPKG}_${DEBVERSION}_*.changes
16   popd > /dev/null
17 fi
18
19 exit 0