From: Wei Chong Tan <weichong78@gmail.com>
To: Frans Pop <elendil@planet.nl>
Cc: sam@ravnborg.org, max@stro.at, linux-kernel@vger.kernel.org
Subject: Re: PATCH: ARCH in builddeb
Date: Fri, 18 Sep 2009 11:10:05 +0800 [thread overview]
Message-ID: <31cb94fa0909172010v1af9b528vcad5fefbf75341e9@mail.gmail.com> (raw)
In-Reply-To: <31cb94fa0909161712m3343812cw349b4a7233bda126@mail.gmail.com>
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" ..
}
next prev parent reply other threads:[~2009-09-18 3:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-14 5:25 Wei Chong Tan
2009-09-14 21:01 ` Frans Pop
2009-09-16 14:19 ` Frans Pop
2009-09-17 0:12 ` Wei Chong Tan
2009-09-18 3:10 ` Wei Chong Tan [this message]
2009-09-20 13:09 ` Frans Pop
2009-09-22 0:38 ` Frans Pop
2009-09-22 14:38 ` Frans Pop
2009-09-22 14:43 ` Wei Chong Tan
2009-09-22 16:53 ` Frans Pop
2009-09-22 23:07 ` Wei Chong Tan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=31cb94fa0909172010v1af9b528vcad5fefbf75341e9@mail.gmail.com \
--to=weichong78@gmail.com \
--cc=elendil@planet.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=max@stro.at \
--cc=sam@ravnborg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome