I need to do this with "make", not with bash.

-Philip

Jonathan GF wrote:
> Answering myself with a very easy example:
>
> *DIRECTORY="/path/to/Philip/solution/"*
> *echo ${DIRECTORY%/}          *                # The trailing slash 
> was removed at this point, check it :)
>
> Internally is exactly what i said, but externally is very nice 
> function to use in makes and so forth...... ;)
>
> Regards,
>
> Jonathan GF
>
>
>
> On Jan 20, 2008 12:09 PM, Jonathan GF < [EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     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]
>     <mailto:[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]
>         <mailto:[email protected]>
>         https://lists.sourceforge.net/lists/listinfo/astlinux-users
>         <https://lists.sourceforge.net/lists/listinfo/astlinux-users>
>
>         Donations to support AstLinux are graciously accepted via
>         PayPal to [EMAIL PROTECTED] <mailto:[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]


-------------------------------------------------------------------------
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]

Reply via email to