help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

subst and patsubst


From: Joerg Krautwurst-Schmid
Subject: subst and patsubst
Date: Fri, 23 Mar 2001 10:54:19 +0100

Hello,
 
I have a problem with subst and/or patsubst in gmake.
Imagine the following:
I want to cut of a pice of the current directory to get only a spcific part:
eg.
pwd is /home/jks/playpen/branch_one/xyz/scr/bin
 
now I want to have to root '/home/jks/playpen/branch_one/xyz' without
src/bin.
 
I tried subst and patsubst but this doesn't help.
 
osroot = $(patsubst %xyz%,%xyz, $(CURDIR))
 
OK I can use sed but we have developers on NT which don't have any sed
installed on their machines.
Is there a way to do this, or is it better to give all the non UNIX
developers a copy of sed on NT.
 
Thank for your help
 
Joerg
 
        
CoCreate Software GmbH & Co.KG    http://www.cocreate.com
<http://www.cocreate.com/>   
Joerg Krautwurst-Schmid    Phone: +49 7031 951 2218  
Posener Strasse 1                 Fax:   +49 7031 951 2318
D-71065 Sindelfingen, Germany      joerg_krautwurst-schmid
<mailto:address@hidden> @cocreate.com
 
 
E-Mail Disclaimer
 
Der Inhalt dieser E-Mail ist ausschliesslich fuer den bezeichneten
Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail
oder dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form
der Kenntnisnahme,  Veroeffentlichung, Vervielfaeltigung oder Weitergabe des
Inhalts dieser E-Mail unzulaessig ist. Wir bitten Sie, sich in diesem Fall
mit dem Absender der E-Mail in Verbindung zu setzen. 
 
The information contained in this email is intended solely for the
addressee. Access to this email by anyone else is unauthorized. If you are
not the intended recipient, any form of disclosure, reproduction,
distribution or any action taken or refrained from in reliance on it, is
prohibited and may be unlawful. Please notify the sender immediately.
____________________________________________________________________________
____________________________________________________________________________
____

 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]