[jamming] How to retrieve parent directory

Klaus Meier winstonkl at hotmail.com
Wed Jun 21 23:51:27 PDT 2006

Okay, thanks.
But I need the absolute path to my Jamfile.
I have another solution.
I set a Batch-variable with the absolute path to the current directory and 
evaluate this variable.

Best regards,


>From: "Andic, Svetozar" <Svetozar.Andic at NBNZ.CO.NZ>
>To: Klaus Meier <winstonkl at hotmail.com>, jamming at perforce.com
>Subject: RE: [jamming] How to retrieve parent directory
>Date: Thu, 22 Jun 2006 12:14:07 +1200
>Obvious one is ..
>Or $(SEARCH_SOURCE:D) but these won't work as you expect if the TOP (or
>whatever your starting point) variable is not set. If the TOP is not set,
>than all you can see in $(SUBDIR) and $(SEARCH_SOURCE) is the portion of 
>directory name following the TOP.
>For example if your Jamfile starts with:
>SubDir TOP first_dir second_dir ;
>The $(SUBDIR) and $(SEARCH_SOURCE) will both give
>I am not sure what you are trying to do but you can't go wrong if you use
>relative paths in your rules.
>-----Original Message-----
>From: Klaus Meier [mailto:winstonkl at hotmail.com]
>Sent: Thursday, 22 June 2006 12:15 a.m.
>To: jamming at perforce.com
>Subject: [jamming] How to retrieve parent directory
>how can I retrieve the name of the parent directory where my Jamfile is?
>Best regards,
>Haben Spinnen Ohren? Finden Sie es heraus - mit dem MSN Suche Superquiz via
>http://www.msn-superquiz.de  Jetzt mitmachen und gewinnen!
>jamming mailing list  -  jamming at perforce.com

Sie suchen E-Mails, Dokumente oder Fotos? Die neue MSN Suche Toolbar mit 
Windows-Desktopsuche liefert in sekundenschnelle Ergebnisse. Jetzt neu! 
http://desktop.msn.de/ Jetzt gratis downloaden!

More information about the jamming mailing list