]> git.donarmstrong.com Git - neurodebian.git/commitdiff
Properly handle multi-arch builds.
authorMichael Hanke <michael.hanke@gmail.com>
Fri, 4 Sep 2009 18:25:20 +0000 (14:25 -0400)
committerMichael Hanke <michael.hanke@gmail.com>
Fri, 4 Sep 2009 18:25:20 +0000 (14:25 -0400)
tools/nd_build

index 08ac6e2fcee0f1ca2cf8917394ae13aaba84c320..9f2ca6ee77913b49edfff6c267c522cd05250b41 100755 (executable)
@@ -78,10 +78,18 @@ else
 fi
 
 for a in $arch; do
+  if [ "$a" = "amd64" ]; then
+    # only force source into the upload for NeuroDebian
+    if [ ! "$family" = "${family#nd+*}" ]; then
+      options="$opts --debbuildopts -sa"
+    fi
+  else
+    options="$opts --debbuildopts -B"
+  fi
   echo "Building for $family $dist $a ..."
   cowbuilder --build $dscfile \
              --basepath ${cowbuilderroot}/cow/${family}-${dist}-${a}.cow \
              --buildresult . \
-             $opts \
+             $options \
              $*
 done