Ignore:
Timestamp:
Dec 19, 2008, 11:38:02 PM (16 years ago)
Author:
price
Message:

invirt-build-release: handle amd64 and i386

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-dev/invirt-build-release

    r1671 r1859  
    1515    eval  `perl '-F:\s+' -lane 'print  $F[0]."=".$F[1] if /^Version|^Source|^Distribution/' \
    1616        <(dpkg-parsechangelog)`
    17    
     17    eval $(perl '-F:\s+' -lane 'print $F[0]."=".$F[1] if /^Binary|Architecture/' <"../${Source}_${Version}.dsc")
     18
    1819    dpkg-buildpackage -us -uc -rfakeroot -S
    1920    cd ..
    20     sbuild -A -d hardy-amd64 "${Source}_${Version}.dsc"
    21    
     21    case $Architecture in
     22      all)
     23        sbuild -A -d hardy "${Source}_${Version}.dsc";;
     24      any)
     25        sbuild -d hardy-amd64 "${Source}_${Version}.dsc"
     26        sbuild -d hardy-i386  "${Source}_${Version}.dsc";;
     27      *)
     28        echo "invirt-build-release: architecture '$Architecture' not 'all' or 'any'" >&2
     29        exit 1
     30    esac
     31
    2232    if ! svn ls $svnuri/package_tags/$Source >/dev/null 2>&1; then
    2333        svn mkdir $svnuri/package_tags/$Source \
Note: See TracChangeset for help on using the changeset viewer.