Created new jam variable JAMJOBS, which is set by the -jx flag.

This commit is contained in:
Matt Madia 2011-12-22 21:54:22 +00:00
parent ed5b974772
commit 9ceedecc39
2 changed files with 4 additions and 0 deletions

View File

@ -1134,6 +1134,7 @@ jam [ -a ] [ -g ] [ -n ] [ -q ] [ -v ]
<TABLE WIDTH=75% ALIGN=CENTER> <TABLE WIDTH=75% ALIGN=CENTER>
<TR><TD>JAMDATE<TD>Time and date at <b>jam</b> start-up. <TR><TD>JAMDATE<TD>Time and date at <b>jam</b> start-up.
<TR><TD>JAMJOBS<TD>Number of shell commands to run concurrently, as specified by jam -jx.
<TR><TD>JAMUNAME<TD>Ouput of <b>uname</b>(1) command (Unix only) <TR><TD>JAMUNAME<TD>Ouput of <b>uname</b>(1) command (Unix only)
<TR><TD>JAMVERSION<TD><b>jam</b> version, as reported by jam -v. <TR><TD>JAMVERSION<TD><b>jam</b> version, as reported by jam -v.

View File

@ -229,7 +229,10 @@ main( int argc, char **argv, char **arg_environ )
anyhow++; anyhow++;
if( ( s = getoptval( optv, 'j', 0 ) ) ) if( ( s = getoptval( optv, 'j', 0 ) ) )
{
globs.jobs = atoi( s ); globs.jobs = atoi( s );
var_set( "JAMJOBS", list_new( L0, s, 0 ), VAR_SET );
}
if( ( s = getoptval( optv, 'g', 0 ) ) ) if( ( s = getoptval( optv, 'g', 0 ) ) )
globs.newestfirst = 1; globs.newestfirst = 1;