DragonFly BSD
DragonFly users List (threaded) for 2005-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: programming: Makefile


From: "George Georgalis" <george@xxxxxxxxx>
Date: Sun, 5 Jun 2005 20:54:20 -0400

Is there a cleaner way to express this with Makefile
variable expansion syntax?

 sed -e 's,[^/]*/,../,g' -e 's,[^/]*$,..,'

eg

 ls `cat CVS/Repository | sed -e 's,[^/]*/,../,g' -e 's,[^/]*$,..,'`

for discovering the path to the top level Makefile in a cvs checkout,
for make -f, or maybe there is a better way to navigate there?

// George


-- 
George Georgalis, systems architect, administrator Linux BSD IXOYE
http://galis.org/george/ cell:646-331-2027 mailto:george@xxxxxxxxx



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