My company is switching from make to scons. Part of our make process is to call xmllint on a number of xml files to validate them against a schema.
I've got the following in my SConstruct:
import os;
Env = DefaultEnvironment()
pwd = Dir('.').path
xmlValidator = Builder(action = 'xmllint --noout --schema '+pwd+'/path/schema.xsd '+pwd+'file.xml')
Env.Append(BUILDERS = {'ValidateXML' : xmlValidator})
Env.ValidateXML()
When I run:
scons -Q
I get:
scons: `.' is up to date.
But no validation is run.
What am I doing wrong?
I'm completely new to scons, and moderately familiar with Python.