r1972: *** empty log message ***
[ctsim.git] / make-dist.sh
index 6b62723f7df53d8f02ac9609fc6a3526a9c483fd..387e3da3b1058116b412be01d0f4fb252e45a130 100755 (executable)
@@ -18,7 +18,7 @@ Options:
 EOF
 }
 
-$opt_dpkg_buildpackage=1  # default is to use dpkg-buildpackage
+opt_dpkg_buildpackage=1  # default is to use dpkg-buildpackage
 
 # Command line processing
 while [ $# != 0 ]; do
@@ -37,7 +37,7 @@ DEBPKG=ctsim
 PKG=ctsim
 TOPDIR=`pwd`
 
-VERSION=`sed -n -e "s/${DEBPKG} (\(.*\)-[0-9]).*/\1/p" < debian/changelog  |head -1`
+VERSION=`sed -n -e "s/${DEBPKG} (\(.*\)-[0-9.]).*/\1/p" < debian/changelog  |head -1`
 DEBVERSION=`sed -n -e "s/${DEBPKG} (\(.*\)).*/\1/p" < debian/changelog  |head -1`
 PACKAGE_DIR=/usr/local/src/Packages/${DEBPKG}
 DISTDIR=${PKG}-${VERSION}
@@ -118,7 +118,7 @@ rm -rf ${DEBDIR}/debian/CVS
 echo "Building Debian files"
 if [ -z ${opt_dpkg_buildpackage} ]; then
   cd ${TOPDIR}
-  cvs-buildpackage -rfakeroot -kkevin@rosenberg.net -H${TOPDIR}/cvsbp-prepare -tC -i.pdf ${DEBPKG}
+  cvs-buildpackage -rfakeroot -kkevin@rosenberg.net -H${TOPDIR}/cvsbp-prepare -tC -i.pdf -mkevin@rosenberg.net ${DEBPKG}
   cd ..
 else
   cd ${DEBDIR}