From: Greg Price Date: Sat, 20 Dec 2008 04:38:02 +0000 (-0500) Subject: invirt-build-release: handle amd64 and i386 X-Git-Tag: 0.0.11~3 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dev.git/commitdiff_plain/41d24f552265151c4e8e5290b70c1ea880b9cd48 invirt-build-release: handle amd64 and i386 svn path=/trunk/packages/invirt-dev/; revision=1859 --- diff --git a/debian/changelog b/debian/changelog index 3bd6013..8249c14 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,9 @@ invirt-dev (0.0.11) unstable; urgency=low * add i386 to apt repo + * extend invirt-build-release to handle amd64 + i386 - -- Greg Price Fri, 19 Dec 2008 22:35:57 -0500 + -- Greg Price Fri, 19 Dec 2008 23:37:02 -0500 invirt-dev (0.0.10) unstable; urgency=low diff --git a/invirt-build-release b/invirt-build-release index ea09e2c..05c9d18 100755 --- a/invirt-build-release +++ b/invirt-build-release @@ -14,11 +14,21 @@ for package; do eval `perl '-F:\s+' -lane 'print $F[0]."=".$F[1] if /^Version|^Source|^Distribution/' \ <(dpkg-parsechangelog)` - + eval $(perl '-F:\s+' -lane 'print $F[0]."=".$F[1] if /^Binary|Architecture/' <"../${Source}_${Version}.dsc") + dpkg-buildpackage -us -uc -rfakeroot -S cd .. - sbuild -A -d hardy-amd64 "${Source}_${Version}.dsc" - + case $Architecture in + all) + sbuild -A -d hardy "${Source}_${Version}.dsc";; + any) + sbuild -d hardy-amd64 "${Source}_${Version}.dsc" + sbuild -d hardy-i386 "${Source}_${Version}.dsc";; + *) + echo "invirt-build-release: architecture '$Architecture' not 'all' or 'any'" >&2 + exit 1 + esac + if ! svn ls $svnuri/package_tags/$Source >/dev/null 2>&1; then svn mkdir $svnuri/package_tags/$Source \ -m "Create package tags directory"