linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Ozan Çağlayan" <ozancag@gmail.com>
To: linux-wireless@vger.kernel.org
Cc: mcgrof@kernel.org, "Ozan Çağlayan" <ozancag@gmail.com>
Subject: [PATCH] compat: Fix setting $TARGET
Date: Mon,  9 Jul 2012 14:48:01 +0300	[thread overview]
Message-ID: <1341834481-1831-1-git-send-email-ozancag@gmail.com> (raw)

commit 61077651424add644401b927b52681a191bbd7f1 moved the list of
kernels above which broke the $TARGET substitutions in them.

Move the TARGET detection above of everything to fix this.

Signed-off-by: Ozan Çağlayan <ozancag@gmail.com>
---
 bin/get-compat-kernels |   33 +++++++++++++++++----------------
 1 file changed, 17 insertions(+), 16 deletions(-)

diff --git a/bin/get-compat-kernels b/bin/get-compat-kernels
index d80c0a7..99392b4 100755
--- a/bin/get-compat-kernels
+++ b/bin/get-compat-kernels
@@ -23,6 +23,23 @@ UNDERLINE="\033[02m"
 KERNELS=""
 KPATH="http://kernel.ubuntu.com/~kernel-ppa/mainline/"
 
+ARCH=$(uname -m)
+TARGET=""
+
+case $ARCH in
+	"x86_64")
+		TARGET="amd64"
+		;;
+	"i686")
+		TARGET="i386"
+		;;
+	*)
+		echo -e "Unsupported architecture"
+		exit
+		;;
+esac
+
+
 KERNELS="$KERNELS ${KPATH}/v2.6.24/linux-headers-2.6.24-020624_2.6.24-020624_all.deb"
 KERNELS="$KERNELS ${KPATH}/v2.6.24/linux-headers-2.6.24-020624-generic_2.6.24-020624_${TARGET}.deb"
 KERNELS="$KERNELS ${KPATH}/v2.6.24/linux-image-2.6.24-020624-generic_2.6.24-020624_${TARGET}.deb"
@@ -109,22 +126,6 @@ KERNELS="$KERNELS ${KPATH}/v3.4.4-quantal/linux-image-3.4.4-030404-generic_3.4.4
 
 function get_ubuntu_kernels() {
 
-	ARCH=$(uname -m)
-	TARGET=""
-
-	case $ARCH in
-	"x86_64")
-		TARGET="amd64"
-		;;
-	"i686")
-		TARGET="i386"
-		;;
-	*)
-		echo -e "Unsupported architecture"
-		exit
-		;;
-	esac
-
 	mkdir -p debs
 	cd debs
 
-- 
1.7.10.4


             reply	other threads:[~2012-07-09 11:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-09 11:48 Ozan Çağlayan [this message]
2012-07-10 10:11 ` [PATCH] compat: Fix setting $TARGET Ozan Çağlayan
2012-07-10 12:16   ` Ozan Çağlayan
2012-07-10 17:29     ` Luis R. Rodriguez

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=1341834481-1831-1-git-send-email-ozancag@gmail.com \
    --to=ozancag@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mcgrof@kernel.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;
as well as URLs for NNTP newsgroup(s).