invirt-build-release: handle amd64 and i386
authorGreg Price <price@mit.edu>
Sat, 20 Dec 2008 04:38:02 +0000 (23:38 -0500)
committerGreg Price <price@mit.edu>
Sat, 20 Dec 2008 04:38:02 +0000 (23:38 -0500)
svn path=/trunk/packages/invirt-dev/; revision=1859

debian/changelog
invirt-build-release

index 3bd6013..8249c14 100644 (file)
@@ -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 <price@mit.edu>  Fri, 19 Dec 2008 22:35:57 -0500
+ -- Greg Price <price@mit.edu>  Fri, 19 Dec 2008 23:37:02 -0500
 
 invirt-dev (0.0.10) unstable; urgency=low
 
index ea09e2c..05c9d18 100755 (executable)
@@ -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"