Boost logo

Boost-Build :

From: Chris Weed (chrisweed_at_[hidden])
Date: 2007-07-02 20:24:21


Hi,
I want to
1. call a glob command on the current directory
2. run an executable that outputs a text file
3. call a glob command on the current directory
4. get the list of new files (should be output text file name)

Here is what I have so far.

import testing ;
import set ;

project myproj : build-dir .bin ;

# executable that outputs a text file
exe main : main.cpp ;

rule reg ( sources + : args * : input-files * : requirements * :
target-name ? : default-build * : regression-dir + )
{
  current_dir_files = [ glob * : .* ] ;
  run $(sources) : $(args) : $(input-files) : $(requirements) :
$(target-name) : $(default-build) ;
  after_dir_files = [ glob * : .* ] ;
  ECHO $(current_dir_files) ;
  ECHO $(after_dir_files) ;
  before_after_diff = [ set.difference $(after_dir_files) :
$(current_dir_files) ] ;
  ECHO $(before_after_diff) ;

# regression_dir_files = [ glob $(regression-dir)/* ] ;
# before_after_diff = [ set.difference $(after_dir_files) :
$(current_dir_files) ] ;
# ECHO $(diff) ;
}

alias regression :
  [ reg main : : : : m : : ../test2 ] ;

This currently seems to skip the run target call. How do I get it to call run?
Thanks,
Chris


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk