Boost logo

Boost-Build :

From: Richard Hadsell (hadsell_at_[hidden])
Date: 2002-03-27 12:57:55

David Abrahams wrote:
> Can you describe what that code does?

Meanwhile, I have come a bit closer:

for i in $(shell ls -1 $(LOCATE)/cxx_repository) {
ar -cq $(<) $(LOCATE)/cxx_repository/$(i) ;

You may recall that the original problem was that the action asked 'ar' to add all of the files in
the repository in one command, and the shell complained that there were too many arguments.

The intention in the above action is to use a shell command ('ls -1' ...) to list all of the files
in $(LOCATE)/cxx_repository and return the result as a string. The 'for' loop then just sets 'i' to
each of the file names, and 'ar' adds each file one at a time to the target archive library.

I don't know how to generate that list of file names with Jam. If I had that part of the solution,
I think the problem would be fixed.

However, it would be better to use a piecemeal rule or action (whatever) to persuade 'ar' to add as
many files at one time as the shell allows. (I think I noticed that kind of thing in the Jam docs

Dick Hadsell	914-259-6320 Fax: 914-259-6499
Reply-to:	hadsell_at_[hidden]
Blue Sky Studios
44 South Broadway, White Plains, NY 10601

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at