allow overriding the start-up script from the command line.

This commit is contained in:
espie 2012-12-31 09:50:55 +00:00
parent a87833e6a9
commit f86dbb772a
2 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
# $OpenBSD: Core.pm,v 1.22 2012/12/29 19:14:51 espie Exp $
# $OpenBSD: Core.pm,v 1.23 2012/12/31 09:50:55 espie Exp $
#
# Copyright (c) 2010 Marc Espie <espie@openbsd.org>
#
@ -773,6 +773,9 @@ sub parse_hosts_file
$state->heuristics->calibrate(DPB::Core::Factory->new($host,
$prop));
}
if ($state->define_present("STARTUP")) {
$state->{startup_script} = $override->{startup_script};
}
}
sub start_pipe

View File

@ -1,4 +1,4 @@
.\" $OpenBSD: dpb.1,v 1.51 2012/12/31 08:29:31 espie Exp $
.\" $OpenBSD: dpb.1,v 1.52 2012/12/31 09:50:55 espie Exp $
.\"
.\" Copyright (c) 2010 Marc Espie <espie@openbsd.org>
.\"
@ -198,6 +198,8 @@ Avoids flickering on slow graphics cards.
.It Ar NO_BUILD_STATS
Disable reading/saving of default build stats under
.Pa ${DISTDIR}/build-stats/${ARCH} .
.It Ar STARTUP
Define a start-up script on the command-line, override any host file contents.
.It Ar STUCK_TIMEOUT
Timeout (in seconds * speed factor) after which tasks that don't show
any progress will be killed.