diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-08-06 19:42:22 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-08-06 19:42:22 +0000 |
commit | 71c3c523aacb0f6986d50f4a7a2e5d604728a4c4 (patch) | |
tree | 9000ae982c9cb21d31ac3efa6ccf7100064f5bbb /src/main.cpp | |
parent | 2c0c23b75f563d0a1e68f6079a8eea73c40a877a (diff) | |
download | build-71c3c523aacb0f6986d50f4a7a2e5d604728a4c4.tar.gz build-71c3c523aacb0f6986d50f4a7a2e5d604728a4c4.tar.bz2 build-71c3c523aacb0f6986d50f4a7a2e5d604728a4c4.tar.xz build-71c3c523aacb0f6986d50f4a7a2e5d604728a4c4.zip |
A load of updates, most of these made me realize that I probably could do this
whole thing a lot better. We'll see how that works out later, once I figure out
how to do it better.
Diffstat (limited to '')
-rw-r--r-- | src/main.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 009aac5..3ea4411 100644 --- a/src/main.cpp +++ b/src/main.cpp | |||
@@ -9,7 +9,8 @@ class Param : public ParamProc | |||
9 | public: | 9 | public: |
10 | Param() : | 10 | Param() : |
11 | sFile("build.conf"), | 11 | sFile("build.conf"), |
12 | sCache("build.cache") | 12 | sCache("build.cache"), |
13 | bDebug( false ) | ||
13 | { | 14 | { |
14 | addHelpBanner("Build r?\n\n"); | 15 | addHelpBanner("Build r?\n\n"); |
15 | addParam("file", 'f', &sFile, | 16 | addParam("file", 'f', &sFile, |
@@ -64,7 +65,16 @@ int main( int argc, char *argv[] ) | |||
64 | Builder bld( *prm.pViewer ); | 65 | Builder bld( *prm.pViewer ); |
65 | 66 | ||
66 | bld.setCache( prm.sCache ); | 67 | bld.setCache( prm.sCache ); |
67 | bld.load( prm.sFile.c_str() ); | 68 | try |
69 | { | ||
70 | bld.load( prm.sFile.c_str() ); | ||
71 | } | ||
72 | catch( BuildException &e ) | ||
73 | { | ||
74 | fputs( e.what(), stderr ); | ||
75 | fputs( "\n", stderr ); | ||
76 | return 1; | ||
77 | } | ||
68 | 78 | ||
69 | if( prm.bDebug ) | 79 | if( prm.bDebug ) |
70 | { | 80 | { |