[PATCH] update builddeb script to allow ARCH customization

From: Tan , Wei Chong
Date: Mon Sep 14 2009 - 00:56:55 EST


---
scripts/package/builddeb | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 8b357b0..cdb017f 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -24,7 +24,11 @@ create_package() {
chmod -R go-w "$pdir"

# Create the package
- dpkg-gencontrol -isp -p$pname -P"$pdir"
+ if [ "$ARCH" = "" ] ; then
+ dpkg-gencontrol -isp -p$pname -P"$pdir"
+ else
+ dpkg-gencontrol -DArchitecture=$ARCH -isp -p$pname -P"$pdir"
+ fi
dpkg --build "$pdir" ..
}

--
1.6.0.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/