Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 2053a0d9eaaf755b990f80ce4df504a7 > files > 313

waf-1.5.9-1mdv2010.0.noarch.rpm

#! /usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2008 (ita)

VERSION='0.0.1'
APPNAME='cpp_test'
srcdir = '.'
blddir = 'build'

def set_options(opt):
	opt.add_option('--exe', action='store_true', default=False,
		help='Execute the program after it is compiled')

def configure(conf):
	pass

def build(bld):
	pass

def shutdown(ctx):
	import Options
	print "shutdown called with --exe command-line", Options.options.exe

	if Options.is_install:
		print "shutdown when running install or uninstall!!!"

	# import os
	# os.popen("./build/default/foo --help").read()