2009-06-01 09:55:11 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# Created By: Virgil Dupras
|
|
|
|
# Created On: 2009-05-22
|
|
|
|
# $Id$
|
|
|
|
# Copyright 2009 Hardcoded Software (http://www.hardcoded.net)
|
2009-08-05 08:59:46 +00:00
|
|
|
#
|
|
|
|
# This software is licensed under the "HS" License as described in the "LICENSE" file,
|
|
|
|
# which should be included with this package. The terms are also available at
|
|
|
|
# http://www.hardcoded.net/licenses/hs_license
|
2009-06-01 09:55:11 +00:00
|
|
|
|
|
|
|
import os
|
2009-08-31 12:04:43 +00:00
|
|
|
import sys
|
2009-06-01 09:55:11 +00:00
|
|
|
|
|
|
|
def print_and_do(cmd):
|
|
|
|
print cmd
|
|
|
|
os.system(cmd)
|
|
|
|
|
|
|
|
print_and_do("pyuic4 main_window.ui > main_window_ui.py")
|
|
|
|
print_and_do("pyuic4 directories_dialog.ui > directories_dialog_ui.py")
|
|
|
|
print_and_do("pyuic4 about_box.ui > about_box_ui.py")
|
|
|
|
print_and_do("pyuic4 reg_submit_dialog.ui > reg_submit_dialog_ui.py")
|
|
|
|
print_and_do("pyuic4 reg_demo_dialog.ui > reg_demo_dialog_ui.py")
|
|
|
|
print_and_do("pyuic4 error_report_dialog.ui > error_report_dialog_ui.py")
|
2009-08-31 12:04:43 +00:00
|
|
|
print_and_do("pyrcc4 dg.qrc > dg_rc.py")
|
|
|
|
|
|
|
|
if sys.platform == 'darwin':
|
|
|
|
os.chdir('osx/SendToTrashProject')
|
|
|
|
print_and_do('xcodebuild')
|
|
|
|
print_and_do('cp build/Release/SendToTrash ../')
|
|
|
|
os.chdir('../..')
|