config.sub i 4 elementowy target...

Paweł Sikora pluto w pld-linux.org
Sob, 12 Lut 2005, 15:58:59 CET


On Saturday 12 of February 2005 15:51, Paweł Sikora wrote:
> # Object if more than one company name word.
>  *-*-*)
>    echo Invalid configuration \`$1\': machine \`$basic_machine\'
>       not recognized 1>&2
>    exit 1
>    ;;
>
>
> Przez ten fragment (...)

bleeeee, nie przez ten, tylko przez ten:

basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`


# echo arm-pld-linux | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'
arm
# echo arm-pld-linux-eabi | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'
arm-pld

-- 
/* Copyright (C) 2003, SCO, Inc. This is valuable Intellectual Property. */

                           #define say(x) lie(x)




Więcej informacji o liście dyskusyjnej pld-devel-pl