author | Tom Henderson <tomh@tomh.org> |
Mon, 03 Sep 2018 21:41:12 -0700 | |
changeset 423 | 0eb3789eef50 |
parent 268 | fa12f30fc8fb |
permissions | -rwxr-xr-x |
4 | 1 |
#!/usr/bin/env python |
2 |
||
268 | 3 |
############################################################################### |
4 |
# Copyright (c) 2013 INRIA |
|
5 |
# |
|
6 |
# This program is free software; you can redistribute it and/or modify |
|
7 |
# it under the terms of the GNU General Public License version 2 as |
|
8 |
# published by the Free Software Foundation; |
|
9 |
# |
|
10 |
# This program is distributed in the hope that it will be useful, |
|
11 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
# GNU General Public License for more details. |
|
14 |
# |
|
15 |
# You should have received a copy of the GNU General Public License |
|
16 |
# along with this program; if not, write to the Free Software |
|
17 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
18 |
# |
|
19 |
# Authors: Daniel Camara <daniel.camara@inria.fr> |
|
20 |
# Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
|
21 |
############################################################################### |
|
97
ea8a50671cc4
Main changes are related to formmating for the review. What was added:
daniel
parents:
4
diff
changeset
|
22 |
# bake.py |
ea8a50671cc4
Main changes are related to formmating for the review. What was added:
daniel
parents:
4
diff
changeset
|
23 |
# |
ea8a50671cc4
Main changes are related to formmating for the review. What was added:
daniel
parents:
4
diff
changeset
|
24 |
# Bake executable, in fact it is just a wrapper for the main Bake class. |
ea8a50671cc4
Main changes are related to formmating for the review. What was added:
daniel
parents:
4
diff
changeset
|
25 |
|
4 | 26 |
import sys |
27 |
import bake |
|
28 |
||
153 | 29 |
try: |
30 |
b = bake.Bake() |
|
31 |
b.main(sys.argv) |
|
169 | 32 |
except SystemExit as e: |
33 |
sys.exit(e) |
|
153 | 34 |
except: |
241 | 35 |
print(" > Unexpected exception!\n" |
36 |
" Please register the error at https://www.nsnam.org/bugzilla, \n" |
|
37 |
" with a copy of the trace below and, if possible, a list of steps to reproduce the error!<") |
|
38 |
sys.stdout.flush() |
|
39 |
bake.Utils.print_backtrace() |