2012-06-11 21:46:27

by Ozan Çağlayan

[permalink] [raw]
Subject: [PATCH] bin/ckmake: Drop Ubuntu check

Don't check for distribution as it is now possible to use ckmake
on every distribution.

Signed-off-by: Ozan Çağlayan <[email protected]>
---
bin/ckmake | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)

diff --git a/bin/ckmake b/bin/ckmake
index 2d422af..9956cf1 100755
--- a/bin/ckmake
+++ b/bin/ckmake
@@ -31,18 +31,9 @@ ARGS=""

RET=""

-LSB_RED_ID=$(/usr/bin/lsb_release -i -s)
-case $LSB_RED_ID in
-"Ubuntu")
- for i in $(find /lib/modules/ -type d -name \*generic\* | sort -n -r | grep -v -E '\-[[:alnum:]]{1,2}\-'); do
- KLIBS="$KLIBS $i"
- done
- ;;
-*)
- echo -e "Unsupported distribution"
- exit
- ;;
-esac
+for i in $(find /lib/modules/ -type d -name \*generic\* | sort -n -r | grep -v -E '\-[[:alnum:]]{1,2}\-'); do
+ KLIBS="$KLIBS $i"
+done

function tee_color_split()
{
--
1.7.10.2



2012-06-11 23:16:38

by Luis R. Rodriguez

[permalink] [raw]
Subject: Re: [PATCH] bin/ckmake: Drop Ubuntu check

On Mon, Jun 11, 2012 at 2:46 PM, Ozan Çağlayan <[email protected]> wrote:
> Don't check for distribution as it is now possible to use ckmake
> on every distribution.
>
> Signed-off-by: Ozan Çağlayan <[email protected]>

Thanks, applied and pushed all! Just next time please add a prefix to
the subject so others know what this patch is for, a "[PATCH] compat:
foo" for example works.

Luis