Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
1d6c5823
Commit
1d6c5823
authored
Feb 02, 2011
by
Leigh B Stoller
Browse files
Look for existing @INC set, before use the installed testbed libs, as
for running from update-testbed.
parent
50574693
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/scripts/update.in
View file @
1d6c5823
#!/usr/bin/perl -w
#
# GENIPUBLIC-COPYRIGHT
# Copyright (c) 2008-201
0
University of Utah and the Flux Group.
# Copyright (c) 2008-201
1
University of Utah and the Flux Group.
# All rights reserved.
#
use
strict
;
...
...
@@ -53,8 +53,18 @@ sub OneShot();
#
$|
=
1
;
#
# Do not modify the include path if it was specified when invoked.
# This allows update to run from the build tree.
#
BEGIN
{
eval
"
require emutil
";
if
(
$@
)
{
unshift
(
@INC
,
"
@prefix
@/lib
");
}
}
# Load the Testbed support stuff.
use
lib
"
@prefix
@/lib
";
use
libtestbed
;
use
libdb
qw(TBSetSiteVar TBSiteVarExists TBGetSiteVar)
;
use
Experiment
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment