comparison scripts/build.py @ 8:45d7bfe64d00

Slightly improved implementation of the python tools.
author cmlenz
date Thu, 09 Jun 2005 22:20:35 +0000
parents 738a0ae251f6
children 055a6c666fa8
comparison
equal deleted inserted replaced
7:8442bcb47a03 8:45d7bfe64d00
38 function(recipe.basedir, **kw) 38 function(recipe.basedir, **kw)
39 print 39 print
40 steps_run.append(step.id) 40 steps_run.append(step.id)
41 41
42 if step_id and not step_id in steps_run: 42 if step_id and not step_id in steps_run:
43 raise BuildError, "Recipe has no step named '%s'" % step_id 43 raise BuildError, 'Recipe has no step named "%s"' % step_id
44 44
45 if __name__ == '__main__': 45 if __name__ == '__main__':
46 try: 46 try:
47 build() 47 build()
48 except BuildError, e: 48 except BuildError, e:
49 print>>sys.stderr, "FAILED: %s" % e 49 print>>sys.stderr, 'FAILED: %s' % e
50 sys.exit(-1) 50 sys.exit(-1)
51 print 'SUCCESS'
Copyright (C) 2012-2017 Edgewall Software