#!/bin/bash export SCRIPTHOME=`pwd` . ./ubuntu-env.sh function createChangelog() { export MYTS=`date "+%a, %d %b %Y %H:%M:%S"` echo "Changelog timestamp: ${MYTS}" echo -e "hh (${HHFULLVERSION}) ${UBUNTUVERSION}; urgency=low" > $1 echo -e "\n" >> $1 echo -e " * ${HHBZRMSG}" >> $1 echo -e "\n" >> $1 echo -e " -- Martin Dvorak (Dvorka) ${MYTS} +0100" >> $1 echo -e "\n" >> $1 } function createTarball() { cd .. mkdir work cd work cp -vrf ../${HH} . rm -rvf ${HH}/.bzr tar zcf ../${HH}.tgz ${HH} cp -vf ../${HH}.tgz ../${HH}.orig.tar.gz cd ../${HH} } echo -e "\n_ hh deb build _______________________________________________\n" rm -rvf ../debian cp -rvf ${HHSRC}/debian .. createChangelog ../debian/changelog cd ../.. mv hh ${HH} cd ${HH} bzr add . bzr commit -m "Update for ${HH} at ${NOW}." createTarball bzr builddeb -- -us -uc bzr builddeb -S cd ../build-area pbuilder-dist ${UBUNTUVERSION} build ${HHRELEASE}.dsc # eof