From 5f310e5b9e7afbd5badb17178349fefaaabfacce Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Thu, 30 Jun 2016 23:32:40 -0400 Subject: Bug 1283930 - Add Makefile.PL & local/lib/perl5 support to bmo/master + local symlink to data/ directory --- sentry.pl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'sentry.pl') diff --git a/sentry.pl b/sentry.pl index 95cd1846f..8d8b878e9 100755 --- a/sentry.pl +++ b/sentry.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this @@ -13,15 +13,17 @@ # called by Bugzilla::Sentry # +use 5.10.1; use strict; use warnings; +# exit early if there's nothing to send +use FindBin qw($RealBin); +use lib ("$RealBin/.", "$RealBin/lib", "$RealBin/local/lib/perl5"); + BEGIN { delete $ENV{SERVER_SOFTWARE}; - # exit early if there's nothing to send - use FindBin qw($Bin); - use lib $Bin, "$Bin/lib"; use Bugzilla::Constants; exit(0) unless glob(bz_locations()->{error_reports} . '/*.dump'); } -- cgit v1.2.3-24-g4f1b