Skip to content
GitLab
Menu
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
9e260729
Commit
9e260729
authored
Oct 12, 2013
by
Mike Hibler
Browse files
Reflect change in where FreeBSD perl port installs things.
parent
574c6e94
Changes
2
Hide whitespace changes
Inline
Side-by-side
clientside/lib/event/perlvers.pl
View file @
9e260729
#!/usr/bin/perl -w
#
# Copyright (c) 2006 University of Utah and the Flux Group.
# Copyright (c) 2006
, 2013
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -34,4 +34,13 @@ foreach my $p (@INC) {
exit
(
0
);
}
}
#
# Around mid-2013 FreeBSD started installing into X.X rather than X.X.X
#
foreach
my
$p
(
@INC
)
{
if
(
$p
=~
/perl5\/(\d+\.\d+)\//
)
{
print
"
$1
";
exit
(
0
);
}
}
exit
(
1
);
clientside/lib/event/perlvers.pl.orig
0 → 100755
View file @
9e260729
#!/usr/bin/perl -w
#
# Copyright (c) 2006 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
# This file is part of the Emulab network testbed software.
#
# This file is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at
# your option) any later version.
#
# This file is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
# License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this file. If not, see <http://www.gnu.org/licenses/>.
#
# }}}
#
use
English
;
#
# A silly little script to figure out what version of perl is running
# so we can find headers for the swig generated goo.
#
foreach
my
$p
(
@INC
)
{
if
(
$p
=~
/perl5\/(\d+\.\d+\.\d+)\//
)
{
print
"
$1
";
exit
(
0
);
}
}
exit
(
1
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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