Ken, Here's a linux "find" statement we use to remove empty trees. Maybe bjam can call it.
find $path -depth -type d -empty -exec rmdir {} \; Tom On Mon, 05 Dec 2011 11:21:06 +0000, Kenneth Heafield <mo...@kheafield.com> wrote: > On 12/05/11 02:31, Jehan Pages wrote: >> 1/ It won't remove the empty directories. For instance Moses scripts >> exist in a complex directory try (training/, recaser/, tokenizer/, >> etc. and sub-directories…), and the --clean will leave all this >> tree, >> empty but present. Would be nicer to clean them when empty. > Hmm this one is difficult since bjam handles directory creation > implicitly and --clean is mostly internal too. > >> >> 2/ I still need --with-boost (and others --with-*) when not in the >> system PATH, while --clean should not care about dependencies, I >> would >> say. > I've updated this so that it will bypass Boost checks and will always > delete train-model.perl when you pass --clean. But, in general, the > expectation is that you'll pass the same arguments each time. I > admit, > this is annoying. We could write a shell script that stores its > arguments in a file then have bjam read from this file. The shell > script could be called ./configure. > >> >> That's just details, and otherwise it works fine. Just to say.;-) >> >> Also I just made a small pull request with a fix to this new bjam >> system, as I got this error during installation: >> « >> failed to write output file >> '/opt/kotobot/src/mosesdecoder-git/moses/src/LM/bin/lm.log'! >> » >> error. I went with the assumption that it was not outputting in the >> right directory (but wanted to do so in the root of the sources, >> which >> has a bin/ directory). > Fixed, as you saw. The build system creates bin in the root > directory > so I didn't want to put it there either. Checking for the path works > too. > _______________________________________________ > Moses-support mailing list > Moses-support@mit.edu > http://mailman.mit.edu/mailman/listinfo/moses-support _______________________________________________ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support