2014-01-05 06:08:23 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
export SCRIPTHOME=`pwd`
|
|
|
|
|
|
|
|
. ./env.sh
|
|
|
|
|
2014-01-05 17:43:21 +08:00
|
|
|
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) <martin.dvorak@mindforger.com> ${MYTS} +0100" >> $1
|
|
|
|
echo -e "\n" >> $1
|
|
|
|
}
|
|
|
|
|
2014-01-05 06:08:23 +08:00
|
|
|
rm -rvf ../debian
|
|
|
|
cp -rvf ${HHSRC}/debian ..
|
|
|
|
|
2014-01-05 17:43:21 +08:00
|
|
|
createChangelog ../debian/changelog
|
2014-01-05 06:08:23 +08:00
|
|
|
|
|
|
|
cd ../..
|
|
|
|
mv hh ${HH}
|
|
|
|
cd ${HH}
|
|
|
|
bzr commit -m "Update for ${HH} at ${NOW}."
|
|
|
|
bzr builddeb -- -us -uc
|
|
|
|
bzr builddeb -S
|
|
|
|
cd ../build-area
|
|
|
|
pbuilder-dist ${UBUNTUVERSION} build ${HHRELEASE}.dsc
|
|
|
|
|
|
|
|
# eof
|