Changes between Version 66 and Version 67 of BuildingDebianPackages


Ignore:
Timestamp:
04/15/12 10:05:15 (10 years ago)
Author:
solj
Comment:

update for git usage

Legend:

Unmodified
Added
Removed
Modified
  • BuildingDebianPackages

    v66 v67  
    249249 
    250250sudo apt-get build-dep bcfg2 bcfg2-server 
    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 
     251sudo aptitude install git 
     252 
     253VERSION=1.2.3-1 
     254cd testing 
     255git clone git://git.mcs.anl.gov/bcfg2 
     256cd bcfg2 
     257GITID=$(git log --oneline | head -n 1 | cut -d' ' -f1) 
     258cp debian/changelog ../changelog.orig 
    258259ppa="testing" # "testing" or "ppa" (for stable) 
    259260try="1" 
    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 
     261attempt="1" 
     262 
     263for 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 
     270done 
     271for dist in hardy lucid maverick natty oneiric precise; do 
     272    dput ppa:bcfg2/${dist}testing ../bcfg2_${VERSION}~${ppa}${try}~${dist}${attempt}+${GITID}_source.changes 
    270273done 
    271274}}}