1999-08-24 19:00:05 -04:00
|
|
|
#!/usr/bin/env python
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# Name: buildall.py
|
|
|
|
# Purpose: Invokes the build script for all modules defined in
|
|
|
|
# MODULELIST
|
|
|
|
#
|
|
|
|
# Author: Robin Dunn
|
|
|
|
#
|
|
|
|
# Created: 18-Aug-1999
|
|
|
|
# RCS-ID: $Id$
|
|
|
|
# Copyright: (c) 1999 by Total Control Software
|
|
|
|
# Licence: wxWindows license
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
import sys, os
|
|
|
|
sys.path.insert(0, '../distrib')
|
|
|
|
import build
|
|
|
|
|
2000-07-15 15:51:35 -04:00
|
|
|
MODULELIST = ['glcanvas', 'ogl', 'stc', ]
|
|
|
|
sys.argv[0] = '../../distrib/build.py'
|
1999-08-24 19:00:05 -04:00
|
|
|
|
|
|
|
|
|
|
|
for module in MODULELIST:
|
|
|
|
cwd = os.getcwd()
|
1999-09-30 03:11:20 -04:00
|
|
|
print "**** Building %s ****" % module
|
|
|
|
err = build.main([sys.argv[0], '-C', module] + sys.argv[1:])
|
1999-08-24 19:00:05 -04:00
|
|
|
os.chdir(cwd)
|
1999-09-30 03:11:20 -04:00
|
|
|
if err:
|
|
|
|
break
|
|
|
|
|
1999-10-19 01:01:36 -04:00
|
|
|
sys.exit(err)
|