On 5/4/21 3:26 AM, Waldek Hebisch wrote:
> On Thu, Mar 18, 2021 at 07:49:49PM +0800, Qian Yun wrote:
>> +     if test $(uname -s) != "Darwin" ; then \
>                ^^
>                 $$(uname -s)
>> +          echo
>> FRICAS='"$${exec_prefix}/$(fricas_lib)/fricas/target/$(target)"' >>
>> '${COMMAND}'.tmp ; \
>> +     else \
>> +          echo FRICAS='"`dirname
>> $$0`/../$(fricas_lib)/fricas/target/$(target)"' >> '${COMMAND}'.tmp ; \
>> +     fi \
>>      else \
>>         echo FRICAS='"$(libdir)/fricas/target/$(target)"' \
>>                 >> '${COMMAND}'.tmp ; \
> 
> Hi Qian, I wonder why you wanted the 'dirname $$0' part?  It breaks
> internal 'fricas' script for its intended uses, in particular
> it causes problem reported by Gregory Vanuxem, that is failure
> of 'efricas'.  AFAICS you intended 'dirname $$0' part to be
> used only on Mac OS, but you need to double '$' for this.
> Doubling '$' fixes problem on other systems, but there remain
> question what 'dirname $$0' solves?  I think that even on
> Mac OS it does not work for internal 'fricas' script.
> 


Yes, you are right about the double '$' error.

About 'dirname $$0', that was intended to be used by DMG packaging.
Indeed it breaks traditional "make install" installation.  Let me find a
better solution.

- Qian

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/e7cbfbb5-2f0b-f99a-2a32-69876b2ccb55%40gmail.com.

Reply via email to