i don't know what do you want to do, but you can count the number of chars
using a LEN() function, treat the path as an array, run along the array and
stop 1 char before end, assigning the result to a new variable.
Just an idea ;)
Regards,
Jonathan GF
On Jan 20, 2008 3:43 AM, Philip Prindeville <
[EMAIL PROTECTED]> wrote:
> Silly make question for you all...
>
> I've got a variable, $(FOO), and I need to take the dirname part of it,
> and create a symlink, but if:
>
> FOO := /a/b/c/d.e
>
> then $(dir $(FOO)) will be /a/b/c/ and of course, the "ln -s" will crap
> out because of the trailing slash.
>
> Any idea how to peel away the trailing slash? I could "$(shell echo
> $(FOO) | sed ...)" but that's too ugly.
>
> Thanks,
>
> -Philip
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Astlinux-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/astlinux-users
>
> Donations to support AstLinux are graciously accepted via PayPal to
> [EMAIL PROTECTED]
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users
Donations to support AstLinux are graciously accepted via PayPal to [EMAIL
PROTECTED]