Catch exceptions from broken config.w32 files

This commit is contained in:
Wez Furlong 2004-08-03 01:23:35 +00:00
parent bfbd57905e
commit 93cdab8b96

View File

@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
/* $Id: buildconf.js,v 1.11 2004-02-12 12:30:41 wez Exp $ */
/* $Id: buildconf.js,v 1.12 2004-08-03 01:23:35 wez Exp $ */
// This generates a configure script for win32 build
WScript.StdOut.WriteLine("Rebuilding configure.js");
@ -209,7 +209,11 @@ re = new RegExp("(ARG_(ENABLE|WITH)\([^;]+\);)", "gm");
calls = modules.match(re);
for (i = 0; i < calls.length; i++) {
item = calls[i];
C.WriteLine("try {");
C.WriteLine(item);
C.WriteLine("} catch (e) {");
C.WriteLine('\tSTDOUT.WriteLine("problem: " + e);');
C.WriteLine("}");
}
C.WriteBlankLines(1);