lkml.org 
[lkml]   [2009]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
SubjectRe: PATCH: ARCH in builddeb
From
Hi Frans,

How about this? Hopefully this would work for all arch supported.

Regards,
Tan, Wei Chong.

Subject: [PATCH] update builddeb script to allow ARCH customization
Signed-off-by: Tan, Wei Chong <weichong78@gmail.com>
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 8b357b0..96c3ae9 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -24,7 +24,12 @@ create_package() {
chmod -R go-w "$pdir"

# Create the package
- dpkg-gencontrol -isp -p$pname -P"$pdir"
+ if [ -n $ARCH ]
+ then
+ dpkg-architecture -a$ARCH -c "dpkg-gencontrol -isp -p$pname -P\"$pdir\""
+ else
+ dpkg-gencontrol -isp -p$pname -P"$pdir"
+ fi
dpkg --build "$pdir" ..
}

\
 
 \ /
  Last update: 2009-09-18 05:13    [W:0.681 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site