251 | | sudo aptitude install subversion |
252 | | |
253 | | # Trunk, or specify a revision; also something was said about being able |
254 | | # to build right from svn with the new debian packaging... |
255 | | svn co https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2 bcfg2-trunk |
256 | | cd bcfg2-trunk |
257 | | cp debian/changelog debian/changelog.orig |
| 251 | sudo aptitude install git |
| 252 | |
| 253 | VERSION=1.2.3-1 |
| 254 | cd testing |
| 255 | git clone git://git.mcs.anl.gov/bcfg2 |
| 256 | cd bcfg2 |
| 257 | GITID=$(git log --oneline | head -n 1 | cut -d' ' -f1) |
| 258 | cp debian/changelog ../changelog.orig |
260 | | REV=$(svn info|grep '^Revision' |cut -d' ' -f2) |
261 | | |
262 | | for dist in hardy intrepid jaunty karmic lucid; do |
263 | | cp debian/changelog.orig debian/changelog |
264 | | (cd debian && debchange --force-bad-version --preserve --newversion \ |
265 | | "1.0.0-1+r${REV}~${ppa}${try}~${dist}${try}" \ |
266 | | backport to ppa ${ppa}, dist ${dist}, try ${try}, svn revision $REV) |
267 | | # Replace 0xAA95C349 to your GnuPG Key ID |
268 | | debuild -S -k0xAA95C349 |
269 | | dput bcfg2-testing-force-${dist} ../bcfg2_1.0.0-1+r${REV}~${ppa}${try}~${dist}${try}_source.changes |
| 261 | attempt="1" |
| 262 | |
| 263 | for dist in hardy lucid maverick natty oneiric precise; do |
| 264 | cp ../changelog.orig debian/changelog |
| 265 | (cd debian && debchange --distribution ${dist} --force-bad-version --preserve --newversion \ |
| 266 | "${VERSION}~${ppa}${try}~${dist}${attempt}+${GITID}" \ |
| 267 | backport to ppa ${ppa}, dist ${dist}, try ${try}, attepmt ${attempt}, git commit ${GITID}) |
| 268 | # Replace 0xAA95C349 to your GnuPG Key ID |
| 269 | debuild -rfakeroot -S -k0xAA95C349 |
| 270 | done |
| 271 | for dist in hardy lucid maverick natty oneiric precise; do |
| 272 | dput ppa:bcfg2/${dist}testing ../bcfg2_${VERSION}~${ppa}${try}~${dist}${attempt}+${GITID}_source.changes |