Changes between Version 70 and Version 71 of BuildingDebianPackages


Ignore:
Timestamp:
06/30/13 14:40:21 (8 years ago)
Author:
solj
Comment:

use date + time when building packages

Legend:

Unmodified
Added
Removed
Modified
  • BuildingDebianPackages

    v70 v71  
    139139login = anonymous 
    140140allow_unsigned_uploads = 0 
    141  
    142 [bcfg2-testing-force-hardy] 
    143 fqdn = ppa.launchpad.net 
    144 method = ftp 
    145 incoming = ~bcfg2/hardytesting/ubuntu/hardy 
    146 login = anonymous 
    147 allow_unsigned_uploads = 0 
    148  
    149 [bcfg2-testing-force-lucid] 
    150 fqdn = ppa.launchpad.net 
    151 method = ftp 
    152 incoming = ~bcfg2/lucidtesting/ubuntu/lucid 
    153 login = anonymous 
    154 allow_unsigned_uploads = 0 
    155  
    156 [bcfg2-testing-force-maverick] 
    157 fqdn = ppa.launchpad.net 
    158 method = ftp 
    159 incoming = ~bcfg2/mavericktesting/ubuntu/maverick 
    160 login = anonymous 
    161 allow_unsigned_uploads = 0 
    162  
    163 [bcfg2-testing-force-natty] 
    164 fqdn = ppa.launchpad.net 
    165 method = ftp 
    166 incoming = ~bcfg2/nattytesting/ubuntu/natty 
    167 login = anonymous 
    168 allow_unsigned_uploads = 0 
    169141}}} 
    170142 
    171143==== bcfg2 ==== 
    172144 
    173 ===== upload bcfg2 ===== 
     145===== upload bcfg2 to ppa ===== 
    174146 
    175 Upload: 
     147A `dists` file contains a space-separated list of all distributions you want to build PPA packages for. 
     148 
    176149{{{ 
    177 #!/bin/sh -x 
     150#!/bin/sh 
     151 
     152. ./dists 
     153 
     154# Replace 0xAA95C349 with your GnuPG Key ID 
     155export GPGKEY=0xAA95C349 
    178156 
    179157sudo apt-get build-dep bcfg2 bcfg2-server 
    180158sudo aptitude install git 
    181159 
    182 VERSION=1.2.3-1 
     160VERSION=1.3.2-1 
     161if [ ! -d testing ]; then 
     162    mkdir testing 
     163fi 
     164DATE=$(date +%F-%H%M) 
     165ppa="testing" # "testing" or "ppa" (for stable) 
     166 
     167# download source 
    183168cd testing 
    184169git clone git://git.mcs.anl.gov/bcfg2 
     
    186171GITID=$(git log --oneline | head -n 1 | cut -d' ' -f1) 
    187172cp debian/changelog ../changelog.orig 
    188 ppa="testing" # "testing" or "ppa" (for stable) 
    189 try="1" 
    190 attempt="1" 
    191173 
    192 for dist in hardy lucid maverick natty oneiric precise; do 
     174for dist in $DISTS 
     175do 
    193176    cp ../changelog.orig debian/changelog 
    194     (cd debian && debchange --distribution ${dist} --force-bad-version --preserve --newversion \ 
    195     "${VERSION}~${ppa}${try}~${dist}${attempt}+${GITID}" \ 
    196     backport to ppa ${ppa}, dist ${dist}, try ${try}, attepmt ${attempt}, git commit ${GITID}) 
    197     # Replace 0xAA95C349 to your GnuPG Key ID 
    198     debuild -rfakeroot -S -k0xAA95C349 
     177    (cd debian && dch --distribution ${dist} \ 
     178                      --force-bad-version \ 
     179                      --preserve \ 
     180                      --force-distribution \ 
     181                      --newversion "${VERSION}~${ppa}~${dist}${DATE}+${GITID}" \ 
     182                      "bcfg2 backport for ${dist} release ${VERSION} git commit ${GITID}") 
     183    debuild --no-tgz-check -rfakeroot -I -S -k${GPGKEY} 
    199184done 
    200 for dist in hardy lucid maverick natty oneiric precise; do 
    201     dput ppa:bcfg2/${dist}testing ../bcfg2_${VERSION}~${ppa}${try}~${dist}${attempt}+${GITID}_source.changes 
     185 
     186for dist in $DISTS 
     187do 
     188    dput ppa:bcfg2/${dist}testing ../bcfg2_${VERSION}~${ppa}~${dist}${DATE}+${GITID}_source.changes 
    202189done 
    203190}}}