From: Felix Fietkau Date: Wed, 2 Apr 2008 12:50:05 +0000 (+0200) Subject: kbuild: fix unportability in gen_initramfs_list.sh X-Git-Tag: v2.6.26-rc1~689^2~5 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b5a5e4c73228e1c5f646ee2524f5e13ae5f08b4d;p=linux-2.6-omap-h63xx.git kbuild: fix unportability in gen_initramfs_list.sh On a Mac OS X machine the output of ls -l is different from a standard Linux machine. Use readlink instead of parsing a hardcoded field number from the ls output. Signed-off-by: Felix Fietkau Signed-off-by: Sam Ravnborg --- diff --git a/scripts/gen_initramfs_list.sh b/scripts/gen_initramfs_list.sh index 684fb9cdc05..5f3415f2873 100644 --- a/scripts/gen_initramfs_list.sh +++ b/scripts/gen_initramfs_list.sh @@ -135,7 +135,7 @@ parse() { str="${ftype} ${name} ${str} ${dev} ${maj} ${min}" ;; "slink") - local target=`field 11 $(LC_ALL=C ls -l "${location}")` + local target=`readlink "${location}"` str="${ftype} ${name} ${target} ${str}" ;; *)