added -vv

This commit is contained in:
Dave Schuyler 2003-08-06 23:53:53 +00:00
parent 533a7976f7
commit 2596764324
3 changed files with 6 additions and 3 deletions

View File

@ -1500,6 +1500,7 @@ handle_defer_command() {
def = _scope->expand_self_reference(def, varname); def = _scope->expand_self_reference(def, varname);
_scope->define_variable(varname, def); _scope->define_variable(varname, def);
if (verbose>=2) cerr<<"#defer "<<varname<<" = "<<_params.substr(p)<<endl;
return true; return true;
} }
@ -1529,6 +1530,7 @@ handle_define_command() {
string def = _scope->expand_string(_params.substr(p)); string def = _scope->expand_string(_params.substr(p));
_scope->define_variable(varname, def); _scope->define_variable(varname, def);
if (verbose>=2) cerr<<"#define "<<varname<<" = "<<_params.substr(p)<<"\n \""<<def<<"\""<<endl;
return true; return true;
} }

View File

@ -30,7 +30,7 @@ bool unix_platform = false;
bool windows_platform = false; bool windows_platform = false;
bool dry_run = false; bool dry_run = false;
bool verbose_dry_run = false; bool verbose_dry_run = false;
bool verbose = false; int verbose = 0;
static void static void
usage() { usage() {
@ -70,6 +70,7 @@ usage() {
" -h Display this page.\n" " -h Display this page.\n"
" -V Report the version of ppremake, and exit.\n" " -V Report the version of ppremake, and exit.\n"
" -v Turn on verbose output (may help in debugging .pp files).\n" " -v Turn on verbose output (may help in debugging .pp files).\n"
" -vv Be very verbose (if you're getting desperate).\n"
" -P Report the current platform name, and exit.\n\n" " -P Report the current platform name, and exit.\n\n"
" -D pp.dep Examine the given dependency file, and re-run ppremake\n" " -D pp.dep Examine the given dependency file, and re-run ppremake\n"
" only if the dependency file is stale.\n\n" " only if the dependency file is stale.\n\n"
@ -251,7 +252,7 @@ main(int argc, char *argv[]) {
break; break;
case 'v': case 'v':
verbose=true; ++verbose;
break; break;
case 'P': case 'P':

View File

@ -91,7 +91,7 @@ extern bool windows_platform;
/* This is a command-line global parameter. */ /* This is a command-line global parameter. */
extern bool dry_run; extern bool dry_run;
extern bool verbose_dry_run; extern bool verbose_dry_run;
extern bool verbose; extern int verbose; // 0..9 to set verbose level. 0 == off.
#endif #endif
/* These are defined so that we may build Filename, DSearchPath, and /* These are defined so that we may build Filename, DSearchPath, and