Ignore:
Timestamp:
Jul 27, 2009, 12:42:13 AM (15 years ago)
Author:
broder
Message:

Fix invirt-build-release to correctly deal with multiple binary
packages when figuring out the architecture of the package.

File:
1 edited

Legend:

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

    r2320 r2370  
    1818    dpkg-buildpackage -us -uc -rfakeroot -S
    1919    cd ..
    20     eval $(perl -ne 'print if s/^(Architecture): /\1=/' ${Source}_${Version}.dsc)
    21     case $Architecture in
    22       all)
    23         sbuild -d $distribution --arch-all   ${Source}_${Version}.dsc;;
    24       any)
     20    arch_any=0
     21    sed -ne 's/^Architecture: //p' ${Source}_${Version}.dsc | while read; do
     22        case "$REPLY" in
     23            all)
     24                ;;
     25            any)
     26                arch_any=1;;
     27            *)
     28                echo "invirt-build-release: arch '$Architecture' unimplemented" >&2
     29                exit 1;;
     30        esac
     31    done
     32    if [ $arch_any -eq 0 ]; then
     33        sbuild -d $distribution --arch-all   ${Source}_${Version}.dsc
     34    else
    2535        sbuild -d $distribution --arch amd64 --arch-all ${Source}_${Version}.dsc
    26         sbuild -d $distribution --arch i386  ${Source}_${Version}.dsc;;
    27       *)
    28         echo "invirt-build-release: arch '$Architecture' unimplemented" >&2
    29         exit 1
    30     esac
     36        sbuild -d $distribution --arch i386  ${Source}_${Version}.dsc
     37    fi
    3138
    3239    if ! svn ls $svnuri/package_tags/$Source >/dev/null 2>&1; then
Note: See TracChangeset for help on using the changeset viewer.