From 25149cef9d199654b5f33ba035251bc1a1222ff0 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Wed, 2 Jan 2019 15:13:43 -0500 Subject: [PATCH] no bug - Replace shebang on all scripts with /usr/bin/env perl --- Makefile.PL | 2 +- admin.cgi | 2 +- attachment.cgi | 2 +- auth.cgi | 2 +- buglist.cgi | 2 +- bugzilla.pl | 2 +- chart.cgi | 2 +- checksetup.pl | 2 +- clean-bug-user-last-visit.pl | 2 +- colchange.cgi | 2 +- collectstats.pl | 2 +- config.cgi | 2 +- contrib/clear-memcached.pl | 2 +- contrib/clear-templates.pl | 2 +- contrib/fixperms.pl | 2 +- createaccount.cgi | 2 +- describecomponents.cgi | 2 +- describekeywords.cgi | 2 +- docs/makedocs.pl | 2 +- duplicates.cgi | 2 +- editclassifications.cgi | 2 +- editcomponents.cgi | 2 +- editfields.cgi | 2 +- editflagtypes.cgi | 2 +- editgroups.cgi | 2 +- editkeywords.cgi | 2 +- editmilestones.cgi | 2 +- editparams.cgi | 2 +- editproducts.cgi | 2 +- editsettings.cgi | 2 +- editusers.cgi | 2 +- editvalues.cgi | 2 +- editversions.cgi | 2 +- editwhines.cgi | 2 +- editworkflow.cgi | 2 +- email_in.pl | 2 +- enter_bug.cgi | 2 +- extensions/BMO/bin/bug_1022707.pl | 2 +- extensions/BMO/bin/bug_1093952.pl | 2 +- .../BMO/bin/migrate-github-pull-requests.pl | 2 +- extensions/BMO/t/bounty_attachment.t | 2 +- extensions/BzAPI/bin/rest.cgi | 2 +- extensions/LastResolved/bin/bug-1509308.pl | 2 +- extensions/PhabBugz/bin/phabbugz_feed.pl | 2 +- extensions/PhabBugz/t/basic.t | 2 +- extensions/PhabBugz/t/feed-daemon-guts.t | 2 +- extensions/Push/bin/bugzilla-pushd.pl | 2 +- extensions/Push/bin/nagios_push_checker.pl | 2 +- .../RequestNagger/bin/send-request-nags.pl | 2 +- .../bin/migrate_mentor_from_whiteboard.pl | 2 +- .../Review/bin/review_requests_rebuild.pl | 2 +- extensions/TrackingFlags/bin/bug_825946.pl | 2 +- extensions/TrackingFlags/bin/bulk_flag_clear.pl | 2 +- .../TrackingFlags/bin/migrate_tracking_flags.pl | 2 +- extensions/UserProfile/bin/migrate.pl | 2 +- extensions/UserProfile/bin/update.pl | 2 +- extensions/create.pl | 2 +- gen-cpanfile.pl | 2 +- github.cgi | 2 +- heartbeat.cgi | 2 +- importxml.pl | 2 +- index.cgi | 2 +- jobqueue-worker.pl | 2 +- jobqueue.pl | 2 +- jsonrpc.cgi | 2 +- long_list.cgi | 2 +- migrate.pl | 2 +- new_bug.cgi | 2 +- page.cgi | 2 +- post_bug.cgi | 2 +- process_bug.cgi | 2 +- qa/config/generate_test_data.pl | 2 +- query.cgi | 2 +- quips.cgi | 2 +- relogin.cgi | 2 +- report.cgi | 2 +- reports.cgi | 2 +- request.cgi | 2 +- reset_password.cgi | 2 +- rest.cgi | 2 +- robots.cgi | 2 +- runtests.pl | 2 +- sanitycheck.cgi | 2 +- sanitycheck.pl | 2 +- scripts/1298978.pl | 2 +- scripts/addcustomfield.pl | 2 +- scripts/attachment-data.pl | 2 +- scripts/auth-test-app | 2 +- scripts/block-ip.pl | 2 +- scripts/bloomfilter-populate.pl | 2 +- scripts/build-bmo-push-data.pl | 2 +- scripts/bulk_index.pl | 2 +- scripts/cereal.pl | 2 +- scripts/clear-memcached.pl | 2 +- scripts/clear-templates.pl | 2 +- scripts/convert_datetime.pl | 2 +- scripts/create_app_id.pl | 2 +- scripts/delete_comments_csv.pl | 2 +- scripts/eject-users-from-groups.pl | 2 +- scripts/entrypoint.pl | 2 +- scripts/fix-attachment-sizes.pl | 2 +- scripts/fix_all_open_status_queries.pl | 2 +- scripts/fixgroupqueries.pl | 2 +- scripts/fixperms.pl | 2 +- scripts/fixqueries.pl | 2 +- scripts/generate_bmo_data.pl | 2 +- scripts/generate_conduit_data.pl | 2 +- scripts/group-set-members.pl | 2 +- scripts/issue-api-key.pl | 2 +- scripts/localconfig-as-json | 2 +- scripts/merge-users.pl | 2 +- scripts/migrate-attachments.pl | 2 +- scripts/migrate-cab-review.pl | 2 +- scripts/migrate_whiteboard_keyword.pl | 2 +- scripts/move_flag_types.pl | 2 +- scripts/move_os.pl | 2 +- scripts/movebugs.pl | 2 +- scripts/movecomponent.pl | 2 +- scripts/nagios_blocker_checker.pl | 2 +- scripts/nagios_push_checker.pl | 2 +- scripts/nuke-bugs.pl | 2 +- scripts/perl-fmt | 2 +- scripts/reassign_open_bugs.pl | 2 +- scripts/remove-non-public-data.pl | 2 +- scripts/remove_idle_group_members.pl | 2 +- scripts/reset_default_user.pl | 2 +- scripts/resolve_bugs.pl | 2 +- scripts/sanitizeme.pl | 2 +- scripts/search.pl | 2 +- scripts/secbugsreport.pl | 2 +- scripts/security_remove.pl | 2 +- scripts/sendmail.pl | 2 +- scripts/sendunsentbugmail.pl | 2 +- scripts/suggest-user.pl | 2 +- scripts/syncflags.pl | 2 +- scripts/syncmsandversions.pl | 2 +- scripts/triage_owners_csv.pl | 2 +- scripts/undo.pl | 2 +- scripts/update-bug-groups.pl | 2 +- scripts/update-crash-signatures.pl | 2 +- scripts/update_localconfig.pl | 2 +- scripts/update_params.pl | 2 +- scripts/user-prefs.pl | 2 +- search_plugin.cgi | 2 +- show_activity.cgi | 2 +- show_bug.cgi | 2 +- showattachment.cgi | 2 +- showdependencygraph.cgi | 2 +- showdependencytree.cgi | 2 +- summarize_time.cgi | 2 +- t/002goodperl.t | 17 +---------------- t/bmo/comments.t | 2 +- t/critic.t | 2 +- t/db-error-cleanup.pl | 2 +- t/docker.t | 2 +- t/mock-db.t | 2 +- t/mock-params.t | 2 +- t/mojo-example.t | 2 +- t/mojo-oauth2.t | 2 +- t/security-risk.t | 2 +- testserver.pl | 2 +- token.cgi | 2 +- userprefs.cgi | 2 +- view_job_queue.cgi | 2 +- votes.cgi | 2 +- whine.pl | 2 +- whineatnews.pl | 2 +- xml.cgi | 2 +- xmlrpc.cgi | 2 +- xt/search.t | 2 +- 170 files changed, 170 insertions(+), 185 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index 3171287ee3..17fb0f2d9d 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/admin.cgi b/admin.cgi index 91e1aec1f1..f389083ed9 100755 --- a/admin.cgi +++ b/admin.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/attachment.cgi b/attachment.cgi index 51c0f012d1..b165651e46 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/auth.cgi b/auth.cgi index dbb4629d90..66405fcb1c 100755 --- a/auth.cgi +++ b/auth.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/buglist.cgi b/buglist.cgi index 3954c4f256..b3011c16e8 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/bugzilla.pl b/bugzilla.pl index 34075d7894..ccc8f126e5 100755 --- a/bugzilla.pl +++ b/bugzilla.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use 5.10.1; use strict; use warnings; diff --git a/chart.cgi b/chart.cgi index 9ea747fcee..7652680e4d 100755 --- a/chart.cgi +++ b/chart.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/checksetup.pl b/checksetup.pl index 6ede39efb7..ec80b5b067 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/clean-bug-user-last-visit.pl b/clean-bug-user-last-visit.pl index e9b3badda6..0dd1c419d4 100755 --- a/clean-bug-user-last-visit.pl +++ b/clean-bug-user-last-visit.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/colchange.cgi b/colchange.cgi index 2e31207a5e..542d347190 100755 --- a/colchange.cgi +++ b/colchange.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/collectstats.pl b/collectstats.pl index 485e497cd0..aaeb2b2cc3 100755 --- a/collectstats.pl +++ b/collectstats.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/config.cgi b/config.cgi index 03d794f6e2..f4476a4768 100755 --- a/config.cgi +++ b/config.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/contrib/clear-memcached.pl b/contrib/clear-memcached.pl index 718fc0e98d..49faf46121 100755 --- a/contrib/clear-memcached.pl +++ b/contrib/clear-memcached.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 diff --git a/contrib/clear-templates.pl b/contrib/clear-templates.pl index 5569744f0d..91a25a1992 100755 --- a/contrib/clear-templates.pl +++ b/contrib/clear-templates.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env 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 diff --git a/contrib/fixperms.pl b/contrib/fixperms.pl index e92a311387..5307b14346 100755 --- a/contrib/fixperms.pl +++ b/contrib/fixperms.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl # # The contents of this file are subject to the Mozilla Public # License Version 1.1 (the "License"); you may not use this file diff --git a/createaccount.cgi b/createaccount.cgi index 128ce06c87..f0fd407305 100755 --- a/createaccount.cgi +++ b/createaccount.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/describecomponents.cgi b/describecomponents.cgi index 48b0c4bf69..9da7420cc0 100755 --- a/describecomponents.cgi +++ b/describecomponents.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env perl # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff --git a/describekeywords.cgi b/describekeywords.cgi index 1a047931d2..10d442d49a 100755 --- a/describekeywords.cgi +++ b/describekeywords.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env perl # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff --git a/docs/makedocs.pl b/docs/makedocs.pl index feec5f0f50..ebb6c50e5b 100755 --- a/docs/makedocs.pl +++ b/docs/makedocs.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/duplicates.cgi b/duplicates.cgi index 7a778c749e..b4692627aa 100755 --- a/duplicates.cgi +++ b/duplicates.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/editclassifications.cgi b/editclassifications.cgi index 1e7e3c27d7..b48e06c4c6 100755 --- a/editclassifications.cgi +++ b/editclassifications.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/editcomponents.cgi b/editcomponents.cgi index 5070b1d1fd..72fd7c679a 100755 --- a/editcomponents.cgi +++ b/editcomponents.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/editfields.cgi b/editfields.cgi index b62c632e88..9b3c1610cf 100755 --- a/editfields.cgi +++ b/editfields.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/editflagtypes.cgi b/editflagtypes.cgi index af26869384..c9c09cdcf6 100755 --- a/editflagtypes.cgi +++ b/editflagtypes.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/editgroups.cgi b/editgroups.cgi index 9e3ffc6bf7..9a059add48 100755 --- a/editgroups.cgi +++ b/editgroups.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/editkeywords.cgi b/editkeywords.cgi index 571e7412d1..c9a3937ded 100755 --- a/editkeywords.cgi +++ b/editkeywords.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/editmilestones.cgi b/editmilestones.cgi index e8db2586df..5c49e60493 100755 --- a/editmilestones.cgi +++ b/editmilestones.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/editparams.cgi b/editparams.cgi index 01e824d55d..8812148446 100755 --- a/editparams.cgi +++ b/editparams.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/editproducts.cgi b/editproducts.cgi index 80cf83da17..ad55a47fa1 100755 --- a/editproducts.cgi +++ b/editproducts.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/editsettings.cgi b/editsettings.cgi index 9993ef882e..eff7208f06 100755 --- a/editsettings.cgi +++ b/editsettings.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/editusers.cgi b/editusers.cgi index e6c078fc0c..a815a9512a 100755 --- a/editusers.cgi +++ b/editusers.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/editvalues.cgi b/editvalues.cgi index f5be52fc27..dfaf2f1e88 100755 --- a/editvalues.cgi +++ b/editvalues.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/editversions.cgi b/editversions.cgi index e7aa884f9b..9339728ed4 100755 --- a/editversions.cgi +++ b/editversions.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/editwhines.cgi b/editwhines.cgi index 1ad1292f5b..0ff0d88f84 100755 --- a/editwhines.cgi +++ b/editwhines.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/editworkflow.cgi b/editworkflow.cgi index f97a7e3888..a3d8846596 100755 --- a/editworkflow.cgi +++ b/editworkflow.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/email_in.pl b/email_in.pl index 382e60660c..47ee30547f 100755 --- a/email_in.pl +++ b/email_in.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/enter_bug.cgi b/enter_bug.cgi index a2d14e6b75..c721c048e6 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/extensions/BMO/bin/bug_1022707.pl b/extensions/BMO/bin/bug_1022707.pl index 31afa7d055..4c336cbff7 100755 --- a/extensions/BMO/bin/bug_1022707.pl +++ b/extensions/BMO/bin/bug_1022707.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 diff --git a/extensions/BMO/bin/bug_1093952.pl b/extensions/BMO/bin/bug_1093952.pl index 257994ef6e..20a9d10daa 100755 --- a/extensions/BMO/bin/bug_1093952.pl +++ b/extensions/BMO/bin/bug_1093952.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/extensions/BMO/bin/migrate-github-pull-requests.pl b/extensions/BMO/bin/migrate-github-pull-requests.pl index 6a421736f3..b7bdd0d680 100755 --- a/extensions/BMO/bin/migrate-github-pull-requests.pl +++ b/extensions/BMO/bin/migrate-github-pull-requests.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 diff --git a/extensions/BMO/t/bounty_attachment.t b/extensions/BMO/t/bounty_attachment.t index 61552c074c..21dbca9cab 100644 --- a/extensions/BMO/t/bounty_attachment.t +++ b/extensions/BMO/t/bounty_attachment.t @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/extensions/BzAPI/bin/rest.cgi b/extensions/BzAPI/bin/rest.cgi index 5a895bc1d0..c83b7906a5 100755 --- a/extensions/BzAPI/bin/rest.cgi +++ b/extensions/BzAPI/bin/rest.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -wT +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/extensions/LastResolved/bin/bug-1509308.pl b/extensions/LastResolved/bin/bug-1509308.pl index 425e0c25e7..198a03c0c9 100644 --- a/extensions/LastResolved/bin/bug-1509308.pl +++ b/extensions/LastResolved/bin/bug-1509308.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/extensions/PhabBugz/bin/phabbugz_feed.pl b/extensions/PhabBugz/bin/phabbugz_feed.pl index 2720c9104b..2a2ae4361c 100755 --- a/extensions/PhabBugz/bin/phabbugz_feed.pl +++ b/extensions/PhabBugz/bin/phabbugz_feed.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 diff --git a/extensions/PhabBugz/t/basic.t b/extensions/PhabBugz/t/basic.t index 161c58637a..761f5e24b7 100644 --- a/extensions/PhabBugz/t/basic.t +++ b/extensions/PhabBugz/t/basic.t @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/extensions/PhabBugz/t/feed-daemon-guts.t b/extensions/PhabBugz/t/feed-daemon-guts.t index 44d65eab41..4a0f1f7906 100644 --- a/extensions/PhabBugz/t/feed-daemon-guts.t +++ b/extensions/PhabBugz/t/feed-daemon-guts.t @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/extensions/Push/bin/bugzilla-pushd.pl b/extensions/Push/bin/bugzilla-pushd.pl index cc509aa456..358a1e69ba 100755 --- a/extensions/Push/bin/bugzilla-pushd.pl +++ b/extensions/Push/bin/bugzilla-pushd.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 diff --git a/extensions/Push/bin/nagios_push_checker.pl b/extensions/Push/bin/nagios_push_checker.pl index 4e6e941679..979cf22297 100755 --- a/extensions/Push/bin/nagios_push_checker.pl +++ b/extensions/Push/bin/nagios_push_checker.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 diff --git a/extensions/RequestNagger/bin/send-request-nags.pl b/extensions/RequestNagger/bin/send-request-nags.pl index 64b2411510..94742b6af9 100755 --- a/extensions/RequestNagger/bin/send-request-nags.pl +++ b/extensions/RequestNagger/bin/send-request-nags.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 diff --git a/extensions/Review/bin/migrate_mentor_from_whiteboard.pl b/extensions/Review/bin/migrate_mentor_from_whiteboard.pl index e7be24f2c9..e9a6230963 100755 --- a/extensions/Review/bin/migrate_mentor_from_whiteboard.pl +++ b/extensions/Review/bin/migrate_mentor_from_whiteboard.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 diff --git a/extensions/Review/bin/review_requests_rebuild.pl b/extensions/Review/bin/review_requests_rebuild.pl index 8bda4119c9..4d3ba72740 100755 --- a/extensions/Review/bin/review_requests_rebuild.pl +++ b/extensions/Review/bin/review_requests_rebuild.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 diff --git a/extensions/TrackingFlags/bin/bug_825946.pl b/extensions/TrackingFlags/bin/bug_825946.pl index 54dcaf1d81..055cec1938 100755 --- a/extensions/TrackingFlags/bin/bug_825946.pl +++ b/extensions/TrackingFlags/bin/bug_825946.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/extensions/TrackingFlags/bin/bulk_flag_clear.pl b/extensions/TrackingFlags/bin/bulk_flag_clear.pl index 3213463d90..72558a89b9 100755 --- a/extensions/TrackingFlags/bin/bulk_flag_clear.pl +++ b/extensions/TrackingFlags/bin/bulk_flag_clear.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/extensions/TrackingFlags/bin/migrate_tracking_flags.pl b/extensions/TrackingFlags/bin/migrate_tracking_flags.pl index 97b8eccd55..ed002b8c4d 100755 --- a/extensions/TrackingFlags/bin/migrate_tracking_flags.pl +++ b/extensions/TrackingFlags/bin/migrate_tracking_flags.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/extensions/UserProfile/bin/migrate.pl b/extensions/UserProfile/bin/migrate.pl index 08c9f54f4d..cb60c26f5c 100755 --- a/extensions/UserProfile/bin/migrate.pl +++ b/extensions/UserProfile/bin/migrate.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 diff --git a/extensions/UserProfile/bin/update.pl b/extensions/UserProfile/bin/update.pl index bdbcef3291..5158a8b3e8 100755 --- a/extensions/UserProfile/bin/update.pl +++ b/extensions/UserProfile/bin/update.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 diff --git a/extensions/create.pl b/extensions/create.pl index 3d3bfaa93a..89f6f170d6 100755 --- a/extensions/create.pl +++ b/extensions/create.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/gen-cpanfile.pl b/gen-cpanfile.pl index f773ddc995..664e0afd2c 100755 --- a/gen-cpanfile.pl +++ b/gen-cpanfile.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/github.cgi b/github.cgi index 7ad400c3d4..25b2a3b5a0 100755 --- a/github.cgi +++ b/github.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/heartbeat.cgi b/heartbeat.cgi index c36c734aea..afac48cebb 100755 --- a/heartbeat.cgi +++ b/heartbeat.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/importxml.pl b/importxml.pl index e815b638a5..61210f3ede 100755 --- a/importxml.pl +++ b/importxml.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/index.cgi b/index.cgi index 4452714e00..b32e673bb2 100755 --- a/index.cgi +++ b/index.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/jobqueue-worker.pl b/jobqueue-worker.pl index 566cfdeddb..298185d402 100755 --- a/jobqueue-worker.pl +++ b/jobqueue-worker.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/jobqueue.pl b/jobqueue.pl index 13acfd9bf8..730a3bc120 100755 --- a/jobqueue.pl +++ b/jobqueue.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/jsonrpc.cgi b/jsonrpc.cgi index 9485c1d870..1ba59a53d0 100755 --- a/jsonrpc.cgi +++ b/jsonrpc.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/long_list.cgi b/long_list.cgi index 8c166ae87b..6c72d4f1f4 100755 --- a/long_list.cgi +++ b/long_list.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env perl # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff --git a/migrate.pl b/migrate.pl index 907e0cab54..3607635e1f 100755 --- a/migrate.pl +++ b/migrate.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/new_bug.cgi b/new_bug.cgi index a7f3d74b89..b212293612 100755 --- a/new_bug.cgi +++ b/new_bug.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/page.cgi b/page.cgi index 82d8ce0641..494a16d421 100755 --- a/page.cgi +++ b/page.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/post_bug.cgi b/post_bug.cgi index bff0c8d554..ceef33c246 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/process_bug.cgi b/process_bug.cgi index bae5b17195..7e22a6ef1a 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/qa/config/generate_test_data.pl b/qa/config/generate_test_data.pl index 47e5834714..1af6499a21 100644 --- a/qa/config/generate_test_data.pl +++ b/qa/config/generate_test_data.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env 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 diff --git a/query.cgi b/query.cgi index d567e7ac22..f42e1ae9dd 100755 --- a/query.cgi +++ b/query.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/quips.cgi b/quips.cgi index 8a617045ad..33ad622460 100755 --- a/quips.cgi +++ b/quips.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/relogin.cgi b/relogin.cgi index b7c757626f..b7020b0989 100755 --- a/relogin.cgi +++ b/relogin.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/report.cgi b/report.cgi index 52b88109a3..ead37179c7 100755 --- a/report.cgi +++ b/report.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/reports.cgi b/reports.cgi index f713f615e0..c585ad6ab6 100755 --- a/reports.cgi +++ b/reports.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/request.cgi b/request.cgi index b88faeac7a..067ea2a730 100755 --- a/request.cgi +++ b/request.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/reset_password.cgi b/reset_password.cgi index ab2226f1e2..deae257fb5 100755 --- a/reset_password.cgi +++ b/reset_password.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 diff --git a/rest.cgi b/rest.cgi index 79ea04d16b..382729889d 100755 --- a/rest.cgi +++ b/rest.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/robots.cgi b/robots.cgi index 10401b4510..e974aef4b2 100755 --- a/robots.cgi +++ b/robots.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/runtests.pl b/runtests.pl index 2ef0145dad..6f87e3c916 100755 --- a/runtests.pl +++ b/runtests.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff --git a/sanitycheck.cgi b/sanitycheck.cgi index fda287c7a8..ffc9360213 100755 --- a/sanitycheck.cgi +++ b/sanitycheck.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/sanitycheck.pl b/sanitycheck.pl index d691481fa4..5518d84c8e 100755 --- a/sanitycheck.pl +++ b/sanitycheck.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/1298978.pl b/scripts/1298978.pl index 6b3fef2fa0..76cadfe589 100755 --- a/scripts/1298978.pl +++ b/scripts/1298978.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/addcustomfield.pl b/scripts/addcustomfield.pl index ff707b01c0..f641728481 100755 --- a/scripts/addcustomfield.pl +++ b/scripts/addcustomfield.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -wT +#!/usr/bin/env perl # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff --git a/scripts/attachment-data.pl b/scripts/attachment-data.pl index 3599ace91a..0e89618e64 100755 --- a/scripts/attachment-data.pl +++ b/scripts/attachment-data.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/auth-test-app b/scripts/auth-test-app index 3df56796c6..419565ca5b 100755 --- a/scripts/auth-test-app +++ b/scripts/auth-test-app @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/block-ip.pl b/scripts/block-ip.pl index c2b4b19299..5e5a26b170 100755 --- a/scripts/block-ip.pl +++ b/scripts/block-ip.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 diff --git a/scripts/bloomfilter-populate.pl b/scripts/bloomfilter-populate.pl index 780e98bd05..0859e1a1b9 100755 --- a/scripts/bloomfilter-populate.pl +++ b/scripts/bloomfilter-populate.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/build-bmo-push-data.pl b/scripts/build-bmo-push-data.pl index dcce29652b..62264b571e 100755 --- a/scripts/build-bmo-push-data.pl +++ b/scripts/build-bmo-push-data.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use 5.10.1; use strict; use warnings; diff --git a/scripts/bulk_index.pl b/scripts/bulk_index.pl index d9aedb3f93..89e9b29a32 100755 --- a/scripts/bulk_index.pl +++ b/scripts/bulk_index.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/cereal.pl b/scripts/cereal.pl index 4ca8df3518..ac4e2efb87 100755 --- a/scripts/cereal.pl +++ b/scripts/cereal.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/clear-memcached.pl b/scripts/clear-memcached.pl index cd1b02f24c..efdcb03147 100755 --- a/scripts/clear-memcached.pl +++ b/scripts/clear-memcached.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 diff --git a/scripts/clear-templates.pl b/scripts/clear-templates.pl index cab854abbc..36e69cb4a0 100755 --- a/scripts/clear-templates.pl +++ b/scripts/clear-templates.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env 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 diff --git a/scripts/convert_datetime.pl b/scripts/convert_datetime.pl index 8118ab6748..8cda770966 100755 --- a/scripts/convert_datetime.pl +++ b/scripts/convert_datetime.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/create_app_id.pl b/scripts/create_app_id.pl index 45ac224ae2..1ce2527d27 100755 --- a/scripts/create_app_id.pl +++ b/scripts/create_app_id.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/delete_comments_csv.pl b/scripts/delete_comments_csv.pl index 826c92d1d2..436dbdf005 100755 --- a/scripts/delete_comments_csv.pl +++ b/scripts/delete_comments_csv.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/eject-users-from-groups.pl b/scripts/eject-users-from-groups.pl index f12271d4f4..be41b87626 100755 --- a/scripts/eject-users-from-groups.pl +++ b/scripts/eject-users-from-groups.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/entrypoint.pl b/scripts/entrypoint.pl index 9e9f59573a..ca719e1a84 100755 --- a/scripts/entrypoint.pl +++ b/scripts/entrypoint.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use 5.10.1; use strict; use warnings; diff --git a/scripts/fix-attachment-sizes.pl b/scripts/fix-attachment-sizes.pl index c946d49cab..a5992a6ca3 100755 --- a/scripts/fix-attachment-sizes.pl +++ b/scripts/fix-attachment-sizes.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env 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 diff --git a/scripts/fix_all_open_status_queries.pl b/scripts/fix_all_open_status_queries.pl index 51f453fc4d..4240f4af28 100755 --- a/scripts/fix_all_open_status_queries.pl +++ b/scripts/fix_all_open_status_queries.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/fixgroupqueries.pl b/scripts/fixgroupqueries.pl index 23fcfb9f0a..2f9365d541 100755 --- a/scripts/fixgroupqueries.pl +++ b/scripts/fixgroupqueries.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff --git a/scripts/fixperms.pl b/scripts/fixperms.pl index 418bcd1ee2..3ed3939fbf 100755 --- a/scripts/fixperms.pl +++ b/scripts/fixperms.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl # # The contents of this file are subject to the Mozilla Public # License Version 1.1 (the "License"); you may not use this file diff --git a/scripts/fixqueries.pl b/scripts/fixqueries.pl index d29ba03a1c..edd096fd31 100755 --- a/scripts/fixqueries.pl +++ b/scripts/fixqueries.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff --git a/scripts/generate_bmo_data.pl b/scripts/generate_bmo_data.pl index f0f39d975e..d96613fb53 100755 --- a/scripts/generate_bmo_data.pl +++ b/scripts/generate_bmo_data.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/generate_conduit_data.pl b/scripts/generate_conduit_data.pl index 89668a6a32..2685cb4f6b 100755 --- a/scripts/generate_conduit_data.pl +++ b/scripts/generate_conduit_data.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/group-set-members.pl b/scripts/group-set-members.pl index c4d31b4354..e264f02094 100755 --- a/scripts/group-set-members.pl +++ b/scripts/group-set-members.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 diff --git a/scripts/issue-api-key.pl b/scripts/issue-api-key.pl index 25c3ba1a20..f21e3e04fe 100755 --- a/scripts/issue-api-key.pl +++ b/scripts/issue-api-key.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env 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 diff --git a/scripts/localconfig-as-json b/scripts/localconfig-as-json index f994e10c5f..9eddfb956c 100755 --- a/scripts/localconfig-as-json +++ b/scripts/localconfig-as-json @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/merge-users.pl b/scripts/merge-users.pl index 6195d84194..be8600a64d 100755 --- a/scripts/merge-users.pl +++ b/scripts/merge-users.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/migrate-attachments.pl b/scripts/migrate-attachments.pl index 2de7c602cd..478fe55322 100755 --- a/scripts/migrate-attachments.pl +++ b/scripts/migrate-attachments.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 diff --git a/scripts/migrate-cab-review.pl b/scripts/migrate-cab-review.pl index 5cfb0ca2d3..12094b9d17 100755 --- a/scripts/migrate-cab-review.pl +++ b/scripts/migrate-cab-review.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 diff --git a/scripts/migrate_whiteboard_keyword.pl b/scripts/migrate_whiteboard_keyword.pl index ce97455ce2..eb904481a4 100755 --- a/scripts/migrate_whiteboard_keyword.pl +++ b/scripts/migrate_whiteboard_keyword.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/move_flag_types.pl b/scripts/move_flag_types.pl index 659788a060..28ccb9d9d5 100755 --- a/scripts/move_flag_types.pl +++ b/scripts/move_flag_types.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff --git a/scripts/move_os.pl b/scripts/move_os.pl index 2ce98fed29..0117551cf8 100755 --- a/scripts/move_os.pl +++ b/scripts/move_os.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/movebugs.pl b/scripts/movebugs.pl index 804ab42a08..376e9a8fff 100755 --- a/scripts/movebugs.pl +++ b/scripts/movebugs.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env 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 diff --git a/scripts/movecomponent.pl b/scripts/movecomponent.pl index c22d937c1a..cbf43b4560 100755 --- a/scripts/movecomponent.pl +++ b/scripts/movecomponent.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/nagios_blocker_checker.pl b/scripts/nagios_blocker_checker.pl index 6777b76548..e2e0aa442f 100755 --- a/scripts/nagios_blocker_checker.pl +++ b/scripts/nagios_blocker_checker.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 diff --git a/scripts/nagios_push_checker.pl b/scripts/nagios_push_checker.pl index 4ff43f0da9..1f16ab0c15 100755 --- a/scripts/nagios_push_checker.pl +++ b/scripts/nagios_push_checker.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 diff --git a/scripts/nuke-bugs.pl b/scripts/nuke-bugs.pl index d48fe952b6..b226b2115b 100755 --- a/scripts/nuke-bugs.pl +++ b/scripts/nuke-bugs.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/perl-fmt b/scripts/perl-fmt index 4b5ea3565c..7ac47eeb80 100644 --- a/scripts/perl-fmt +++ b/scripts/perl-fmt @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/reassign_open_bugs.pl b/scripts/reassign_open_bugs.pl index bb21603810..9ccaac7d7e 100755 --- a/scripts/reassign_open_bugs.pl +++ b/scripts/reassign_open_bugs.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/remove-non-public-data.pl b/scripts/remove-non-public-data.pl index 265734d655..bca2440ea8 100755 --- a/scripts/remove-non-public-data.pl +++ b/scripts/remove-non-public-data.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/remove_idle_group_members.pl b/scripts/remove_idle_group_members.pl index 6d51b6d103..f7901a5d31 100755 --- a/scripts/remove_idle_group_members.pl +++ b/scripts/remove_idle_group_members.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 diff --git a/scripts/reset_default_user.pl b/scripts/reset_default_user.pl index dc2cc17288..7adb5b1878 100755 --- a/scripts/reset_default_user.pl +++ b/scripts/reset_default_user.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -wT +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/resolve_bugs.pl b/scripts/resolve_bugs.pl index 324dd06ac4..2b811157a6 100755 --- a/scripts/resolve_bugs.pl +++ b/scripts/resolve_bugs.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/sanitizeme.pl b/scripts/sanitizeme.pl index c8c569ce7a..963f271f99 100755 --- a/scripts/sanitizeme.pl +++ b/scripts/sanitizeme.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff --git a/scripts/search.pl b/scripts/search.pl index 3d2483f088..ea0a868512 100755 --- a/scripts/search.pl +++ b/scripts/search.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; use warnings; use Bugzilla; diff --git a/scripts/secbugsreport.pl b/scripts/secbugsreport.pl index 567510cd82..a23a6efe50 100644 --- a/scripts/secbugsreport.pl +++ b/scripts/secbugsreport.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 diff --git a/scripts/security_remove.pl b/scripts/security_remove.pl index 1187e10328..d916b2a134 100755 --- a/scripts/security_remove.pl +++ b/scripts/security_remove.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/sendmail.pl b/scripts/sendmail.pl index adf22a9072..81018d1aed 100755 --- a/scripts/sendmail.pl +++ b/scripts/sendmail.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/sendunsentbugmail.pl b/scripts/sendunsentbugmail.pl index 0f110d9969..e98d9986a4 100755 --- a/scripts/sendunsentbugmail.pl +++ b/scripts/sendunsentbugmail.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/suggest-user.pl b/scripts/suggest-user.pl index 18cec7da2e..388b6764e9 100755 --- a/scripts/suggest-user.pl +++ b/scripts/suggest-user.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; use warnings; use FindBin qw($RealBin); diff --git a/scripts/syncflags.pl b/scripts/syncflags.pl index 2d3d65b581..1a39ff9249 100755 --- a/scripts/syncflags.pl +++ b/scripts/syncflags.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff --git a/scripts/syncmsandversions.pl b/scripts/syncmsandversions.pl index 25434f5d40..da78cdb356 100755 --- a/scripts/syncmsandversions.pl +++ b/scripts/syncmsandversions.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff --git a/scripts/triage_owners_csv.pl b/scripts/triage_owners_csv.pl index 460b3cc110..76aea54341 100755 --- a/scripts/triage_owners_csv.pl +++ b/scripts/triage_owners_csv.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/undo.pl b/scripts/undo.pl index 20509cd559..9f2b16b807 100755 --- a/scripts/undo.pl +++ b/scripts/undo.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/update-bug-groups.pl b/scripts/update-bug-groups.pl index cb737bb234..1de7984658 100755 --- a/scripts/update-bug-groups.pl +++ b/scripts/update-bug-groups.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 diff --git a/scripts/update-crash-signatures.pl b/scripts/update-crash-signatures.pl index 324495f0ef..e5b13d72ec 100755 --- a/scripts/update-crash-signatures.pl +++ b/scripts/update-crash-signatures.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 diff --git a/scripts/update_localconfig.pl b/scripts/update_localconfig.pl index be9dc759c0..9987659a43 100755 --- a/scripts/update_localconfig.pl +++ b/scripts/update_localconfig.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/update_params.pl b/scripts/update_params.pl index a42313f429..9401f801ca 100755 --- a/scripts/update_params.pl +++ b/scripts/update_params.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/scripts/user-prefs.pl b/scripts/user-prefs.pl index f63eaf3d59..e0bcd3f868 100755 --- a/scripts/user-prefs.pl +++ b/scripts/user-prefs.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env 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 diff --git a/search_plugin.cgi b/search_plugin.cgi index 416d250f44..ba41cc5fe1 100755 --- a/search_plugin.cgi +++ b/search_plugin.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/show_activity.cgi b/show_activity.cgi index 1236ab40e2..a664fbe1ee 100755 --- a/show_activity.cgi +++ b/show_activity.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/show_bug.cgi b/show_bug.cgi index 16ed7e30c7..d77f91ae1c 100755 --- a/show_bug.cgi +++ b/show_bug.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/showattachment.cgi b/showattachment.cgi index 03fb49bb9a..b6bddbea68 100755 --- a/showattachment.cgi +++ b/showattachment.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env perl # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff --git a/showdependencygraph.cgi b/showdependencygraph.cgi index 3f3e3c1746..d4b9d63912 100755 --- a/showdependencygraph.cgi +++ b/showdependencygraph.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/showdependencytree.cgi b/showdependencytree.cgi index 37f8f267aa..08fee75b68 100755 --- a/showdependencytree.cgi +++ b/showdependencytree.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/summarize_time.cgi b/summarize_time.cgi index 899f003877..3948f71f60 100755 --- a/summarize_time.cgi +++ b/summarize_time.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/t/002goodperl.t b/t/002goodperl.t index b2a9d5751f..134309ccde 100644 --- a/t/002goodperl.t +++ b/t/002goodperl.t @@ -69,22 +69,7 @@ foreach my $file (@testitems) { next; } - if ($file_line1 =~ m#^\#\!/usr/bin/perl(?:\s-(\w+))?$#) { - my $file_flags = $1 || ''; - if ($flags eq $file_flags) { - ok(1, - "$file uses standard perl location" . ($flags ? " and -$flags flag" : "")); - } - elsif ($flags) { - ok(0, "$file is MISSING -$flags flag --WARNING"); - } - else { - ok(0, "$file has unexpected -$file_flags flag --WARNING"); - } - } - else { - ok(0, "$file uses non-standard perl location"); - } + ok($file_line1 =~ m{^#!/usr/bin/env perl$}, "$file uses proper shebang line"); } } diff --git a/t/bmo/comments.t b/t/bmo/comments.t index 2c06cb9f49..7f20ccf849 100644 --- a/t/bmo/comments.t +++ b/t/bmo/comments.t @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/t/critic.t b/t/critic.t index 182f8c8e6a..4d210f2058 100644 --- a/t/critic.t +++ b/t/critic.t @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/t/db-error-cleanup.pl b/t/db-error-cleanup.pl index 02ca1a22f7..cfbf8b7b26 100644 --- a/t/db-error-cleanup.pl +++ b/t/db-error-cleanup.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/t/docker.t b/t/docker.t index 6b361ae61f..6500e809a5 100644 --- a/t/docker.t +++ b/t/docker.t @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/t/mock-db.t b/t/mock-db.t index e031a749bf..119be94ca6 100644 --- a/t/mock-db.t +++ b/t/mock-db.t @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/t/mock-params.t b/t/mock-params.t index 4b8097c6a9..3a2c3d2984 100644 --- a/t/mock-params.t +++ b/t/mock-params.t @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/t/mojo-example.t b/t/mojo-example.t index e9ca7f56e1..0fa5a81fc5 100644 --- a/t/mojo-example.t +++ b/t/mojo-example.t @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/t/mojo-oauth2.t b/t/mojo-oauth2.t index b43ee8577c..575c7e8b6a 100644 --- a/t/mojo-oauth2.t +++ b/t/mojo-oauth2.t @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/t/security-risk.t b/t/security-risk.t index 926f032aff..2a688095ba 100644 --- a/t/security-risk.t +++ b/t/security-risk.t @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/testserver.pl b/testserver.pl index 4b993ef50f..05255adcfa 100755 --- a/testserver.pl +++ b/testserver.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/token.cgi b/token.cgi index d006d1b9f9..2a97f0859f 100755 --- a/token.cgi +++ b/token.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/userprefs.cgi b/userprefs.cgi index 45a1c51946..d772c0a53f 100755 --- a/userprefs.cgi +++ b/userprefs.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/view_job_queue.cgi b/view_job_queue.cgi index a8e585e1a8..275fc4e89a 100755 --- a/view_job_queue.cgi +++ b/view_job_queue.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/votes.cgi b/votes.cgi index 8bc8150f1e..6655146745 100755 --- a/votes.cgi +++ b/votes.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env perl # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff --git a/whine.pl b/whine.pl index bfa8df5e69..1eeda08d71 100755 --- a/whine.pl +++ b/whine.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/whineatnews.pl b/whineatnews.pl index e79d3cf191..6074f40aa4 100755 --- a/whineatnews.pl +++ b/whineatnews.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/xml.cgi b/xml.cgi index 4676383f8b..0642575596 100755 --- a/xml.cgi +++ b/xml.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env perl # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public diff --git a/xmlrpc.cgi b/xmlrpc.cgi index 435237ed58..98c9ab2b98 100755 --- a/xmlrpc.cgi +++ b/xmlrpc.cgi @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T +#!/usr/bin/env 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 # file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/xt/search.t b/xt/search.t index 5ae1a606ac..52dd2accde 100644 --- a/xt/search.t +++ b/xt/search.t @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl # -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public