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)

_______________________________________________
pld-devel-pl mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl

Odpowiedź listem elektroniczym