On 08.03.2017 16:57, Maxim Uvarov wrote:
> On 03/08/2017 04:47 PM, Dmitry Eremin-Solenikov wrote:
>> On 08.03.2017 16:44, Maxim Uvarov wrote:
>>> On 03/07/2017 12:16 PM, Janne Peltonen wrote:
>>>> Fix the ABI symlink creation that went broken in 3d6cbd2.
>>>>
>>>> Signed-off-by: Janne Peltonen <[email protected]>
>>>> ---
>>>>    platform/linux-generic/Makefile.am | 2 +-
>>>>    1 file changed, 1 insertion(+), 1 deletion(-)
>>>>
>>>> diff --git a/platform/linux-generic/Makefile.am
>>>> b/platform/linux-generic/Makefile.am
>>>> index 682bac6..056ba67 100644
>>>> --- a/platform/linux-generic/Makefile.am
>>>> +++ b/platform/linux-generic/Makefile.am
>>>> @@ -225,7 +225,7 @@ endif
>>>>    # specific include path for installed files.
>>>>    install-data-hook:
>>>>        if [ -h $(prefix)/include/odp/api/abi ]; then \
>>>> -        : \
>>>> +        : ; \
>>>>        else \
>>>>            $(LN_S) -rf
>>>> $(prefix)/include/odp/arch/@ARCH_ABI@/odp/api/abi \
>>>>                $(prefix)/include/odp/api/abi; \
>>> Which bash are you using?  Mine was ok without ";".
>> Will this work with dash (being a POSIX-compliant non-bash shell)?
>>
> shell looks like very fragmented and syntax is different. What is other
> simple more generic option?
> 
> ln -s a b || true

[ -h $(prefix)/include/odp/api/abi ] || ln -s a b
?

Or just:
-ln -s a b

-- 
With best wishes
Dmitry

Reply via email to