https://bugs.webkit.org/show_bug.cgi?id=181040
Patch by Ting-Wei Lan <lantw44@gmail.com> on 2018-01-03
Reviewed by Alex Christensen.
.:
* Source/cmake/tools/scripts/auto-version.pl:
* Source/cmake/tools/scripts/feature-defines.pl:
* Source/cmake/tools/scripts/version-stamp.pl:
Source/JavaScriptCore:
* Scripts/UpdateContents.py:
* Scripts/cssmin.py:
* Scripts/generate-combined-inspector-json.py:
* Scripts/xxd.pl:
* create_hash_table:
* generate-bytecode-files:
* wasm/generateWasm.py:
* wasm/generateWasmOpsHeader.py:
* yarr/generateYarrCanonicalizeUnicode:
Source/WebCore:
* bindings/scripts/InFilesCompiler.pm:
* bindings/scripts/InFilesParser.pm:
* bindings/scripts/generate-bindings-all.pl:
* bindings/scripts/generate-bindings.pl:
* bindings/scripts/preprocess-idls.pl:
* css/make-css-file-arrays.pl:
* css/makeprop.pl:
* css/makevalues.pl:
* dom/make_event_factory.pl:
* dom/make_names.pl:
* extract-localizable-strings.pl:
* make-hash-tools.pl:
Source/WebCore/PAL:
* AVFoundationSupport.py:
Source/WebInspectorUI:
* Scripts/combine-resources.pl:
* Scripts/copy-user-interface-resources-dryrun.rb:
* Scripts/copy-user-interface-resources.pl:
* Scripts/fix-worker-imports-for-optimized-builds.pl:
* Scripts/remove-console-asserts-dryrun.rb:
* Scripts/remove-console-asserts.pl:
* Scripts/update-LegacyInspectorBackendCommands.rb:
* Scripts/update-codemirror-resources.rb:
* WebInspectorUI.vcxproj/build-webinspectorui.pl:
Source/WebKit:
* Scripts/generate-forwarding-headers.pl:
Source/WebKitLegacy:
* scripts/generate-webkitversion.pl:
Tools:
* BuildSlaveSupport/build-launcher-app:
* BuildSlaveSupport/build-launcher-dmg:
* BuildSlaveSupport/build.webkit.org-config/steps_unittest.py:
* BuildSlaveSupport/built-product-archive:
* BuildSlaveSupport/clean-build:
* BuildSlaveSupport/delete-stale-build-files:
* BuildSlaveSupport/download-built-product:
* BuildSlaveSupport/gtk/buildbot/log/run:
* BuildSlaveSupport/gtk/buildbot/run:
* BuildSlaveSupport/gtk/pulseaudio/run:
* BuildSlaveSupport/kill-old-processes:
* BuildSlaveSupport/test-result-archive:
* BuildSlaveSupport/win/kill-old-processes:
* Scripts/SpacingHeuristics.pm:
* Scripts/add-include:
* Scripts/build-api-tests:
* Scripts/build-dumprendertree:
* Scripts/build-imagediff:
* Scripts/build-jsc:
* Scripts/build-webkit:
* Scripts/build-webkittestrunner:
* Scripts/check-Xcode-source-file-types:
* Scripts/check-dom-results:
* Scripts/check-for-exit-time-destructors:
* Scripts/check-for-global-initializers:
* Scripts/check-for-inappropriate-objc-class-names:
* Scripts/check-for-weak-vtables-and-externals:
* Scripts/clean-header-guards:
* Scripts/compare-timing-files:
* Scripts/configure-xcode-for-ios-development:
* Scripts/copy-webkitlibraries-to-product-directory:
* Scripts/create-exports:
* Scripts/debug-minibrowser:
* Scripts/debug-safari:
* Scripts/debug-test-runner:
* Scripts/do-file-rename:
* Scripts/do-webcore-rename:
* Scripts/dump-webkit-tests-run:
* Scripts/ensure-valid-python:
* Scripts/execAppWithEnv:
* Scripts/extract-localizable-js-strings:
* Scripts/filter-build-webkit:
* Scripts/find-extra-includes:
* Scripts/fix-blink-patch:
* Scripts/generate-coverage-data:
* Scripts/git-add-reviewer:
* Scripts/jsc-stress-test-helpers/js-exception-fuzz:
* Scripts/jsc-stress-test-helpers/js-executable-allocation-fuzz:
* Scripts/jsc-stress-test-helpers/js-osr-exit-fuzz:
* Scripts/make-new-script-test:
* Scripts/make-script-test-wrappers:
* Scripts/package-root:
* Scripts/parse-malloc-history:
* Scripts/report-include-statistics:
* Scripts/resolve-ChangeLogs:
* Scripts/run-api-tests:
* Scripts/run-bindings-tests:
* Scripts/run-content-extension-tester:
* Scripts/run-iexploder-tests:
* Scripts/run-javascriptcore-tests:
* Scripts/run-jsc:
* Scripts/run-leaks:
* Scripts/run-mangleme-tests:
* Scripts/run-minibrowser:
* Scripts/run-pageloadtest:
* Scripts/run-regexp-tests:
* Scripts/run-safari:
* Scripts/run-sunspider:
* Scripts/run-test-runner:
* Scripts/run-webkit-app:
* Scripts/run-webkit-httpd:
* Scripts/run-webkit-websocketserver:
* Scripts/set-webkit-configuration:
* Scripts/show-pretty-diff:
* Scripts/sort-Xcode-project-file:
* Scripts/split-file-by-class:
* Scripts/sunspider-compare-results:
* Scripts/svn-apply:
* Scripts/svn-unapply:
* Scripts/test-webkit-scripts:
* Scripts/test-webkitperl:
* Scripts/update-iexploder-cssproperties:
* Scripts/update-javascriptcore-test-results:
* Scripts/update-webkit:
* Scripts/update-webkit-auxiliary-libs:
* Scripts/update-webkit-dependency:
* Scripts/update-webkit-libs-jhbuild:
* Scripts/update-webkit-localizable-strings:
* Scripts/update-webkit-support-libs:
* Scripts/update-webkitgtk-libs:
* Scripts/update-webkitwpe-libs:
* Scripts/webkit-build-directory:
* Scripts/webkitperl/LoadAsModule.pm:
* Scripts/webkitperl/VCSUtils_unittest/decodeGitBinaryPatch.pl:
* Scripts/webkitperl/VCSUtils_unittest/fixChangeLogPatch.pl:
* Scripts/webkitperl/VCSUtils_unittest/fixChangeLogPatchThenSetChangeLogDateAndReviewer.pl:
* Scripts/webkitperl/VCSUtils_unittest/fixSVNPatchForAdditionWithHistory.pl:
* Scripts/webkitperl/VCSUtils_unittest/generatePatchCommand.pl:
* Scripts/webkitperl/VCSUtils_unittest/mergeChangeLogs.pl:
* Scripts/webkitperl/VCSUtils_unittest/parseChunkRange.pl:
* Scripts/webkitperl/VCSUtils_unittest/parseDiff.pl:
* Scripts/webkitperl/VCSUtils_unittest/parseDiffHeader.pl:
* Scripts/webkitperl/VCSUtils_unittest/parseDiffWithMockFiles.pl:
* Scripts/webkitperl/VCSUtils_unittest/parseFirstEOL.pl:
* Scripts/webkitperl/VCSUtils_unittest/parseGitDiffHeader.pl:
* Scripts/webkitperl/VCSUtils_unittest/parsePatch.pl:
* Scripts/webkitperl/VCSUtils_unittest/parseSvnDiffFooter.pl:
* Scripts/webkitperl/VCSUtils_unittest/parseSvnDiffHeader.pl:
* Scripts/webkitperl/VCSUtils_unittest/parseSvnProperty.pl:
* Scripts/webkitperl/VCSUtils_unittest/parseSvnPropertyValue.pl:
* Scripts/webkitperl/VCSUtils_unittest/parseUnifiedDiffHeader.pl:
* Scripts/webkitperl/VCSUtils_unittest/prepareParsedPatch.pl:
* Scripts/webkitperl/VCSUtils_unittest/removeEOL.pl:
* Scripts/webkitperl/VCSUtils_unittest/runCommand.pl:
* Scripts/webkitperl/VCSUtils_unittest/runPatchCommand.pl:
* Scripts/webkitperl/VCSUtils_unittest/setChangeLogDateAndReviewer.pl:
* Scripts/webkitperl/auto-version_unittest/autoVersionTests.pl:
* Scripts/webkitperl/auto-version_unittest/versionStampTests.pl:
* Scripts/webkitperl/filter-build-webkit_unittest/shouldIgnoreLine_unittests.pl:
* Scripts/webkitperl/prepare-ChangeLog_unittest/extractLineRangeBeforeAndAfterChange.pl:
* Scripts/webkitperl/prepare-ChangeLog_unittest/fetchRadarURLFromBugXMLData.pl:
* Scripts/webkitperl/prepare-ChangeLog_unittest/generateFunctionLists.pl:
* Scripts/webkitperl/prepare-ChangeLog_unittest/parser_unittests.pl:
* Scripts/webkitperl/prepare-ChangeLog_unittest/resources/perl_unittests.pl:
* Scripts/webkitperl/run-leaks_unittest/run-leaks-report-v1.0.pl:
* Scripts/webkitperl/run-leaks_unittest/run-leaks-report-v2.0-new.pl:
* Scripts/webkitperl/run-leaks_unittest/run-leaks-report-v2.0-old.pl:
* Scripts/webkitperl/webkitdirs_unittest/appendToEnvironmentVariableList.pl:
* Scripts/webkitperl/webkitdirs_unittest/checkForArgumentAndRemoveFromArrayRef.pl:
* Scripts/webkitperl/webkitdirs_unittest/checkForArgumentAndRemoveFromArrayRefGettingValue.pl:
* Scripts/webkitperl/webkitdirs_unittest/extractNonMacOSHostConfiguration.pl:
* Scripts/webkitperl/webkitdirs_unittest/prependToEnvironmentVariableList.pl:
* Scripts/webkitpy/layout_tests/servers/run_webkit_httpd.py:
* ccache/ccache-clang:
* ccache/ccache-clang++:
* ccache/ccache-wrapper:
* gtk/install-dependencies:
* iExploder/iexploder-1.3.2/htdocs/iexploder.cgi:
* iExploder/iexploder-1.3.2/htdocs/webserver.rb:
* iExploder/iexploder-1.3.2/tools/lasthit.rb:
* iExploder/iexploder-1.3.2/tools/osx_last_crash.rb:
* iExploder/iexploder-1.3.2/tools/showtest.rb:
* iExploder/iexploder-1.7.2/src/browser_harness.rb:
* iExploder/iexploder-1.7.2/src/iexploder.cgi:
* iExploder/iexploder-1.7.2/src/webserver.rb:
* iExploder/iexploder-1.7.2/tools/lasthit.rb:
* iExploder/iexploder-1.7.2/tools/osx_last_crash.rb:
* wpe/install-dependencies:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@226395
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2018-01-03 Ting-Wei Lan <lantw44@gmail.com>
+
+ Replace hard-coded paths in shebangs with #!/usr/bin/env
+ https://bugs.webkit.org/show_bug.cgi?id=181040
+
+ Reviewed by Alex Christensen.
+
+ * Source/cmake/tools/scripts/auto-version.pl:
+ * Source/cmake/tools/scripts/feature-defines.pl:
+ * Source/cmake/tools/scripts/version-stamp.pl:
+
== Rolled over to ChangeLog-2018-01-01 ==
+2018-01-03 Ting-Wei Lan <lantw44@gmail.com>
+
+ Replace hard-coded paths in shebangs with #!/usr/bin/env
+ https://bugs.webkit.org/show_bug.cgi?id=181040
+
+ Reviewed by Alex Christensen.
+
+ * Scripts/UpdateContents.py:
+ * Scripts/cssmin.py:
+ * Scripts/generate-combined-inspector-json.py:
+ * Scripts/xxd.pl:
+ * create_hash_table:
+ * generate-bytecode-files:
+ * wasm/generateWasm.py:
+ * wasm/generateWasmOpsHeader.py:
+ * yarr/generateYarrCanonicalizeUnicode:
+
2018-01-03 Michael Saboff <msaboff@apple.com>
Disable SharedArrayBuffers from Web API
-#!/usr/bin/python
+#!/usr/bin/env python
# Copyright (C) 2015 Apple Inc. All rights reserved.
#
-#!/usr/bin/python
+#!/usr/bin/env python
# Copyright (C) 2013 Apple Inc. All rights reserved.
#
-#!/usr/bin/python
+#!/usr/bin/env python
# Copyright (C) 2013 Apple Inc. All rights reserved.
#
-#! /usr/bin/perl
+#! /usr/bin/env perl
# Copyright (C) 2010-2011 Google Inc. All rights reserved.
#
-#! /usr/bin/perl -w
+#! /usr/bin/env perl
#
# Static Hashtable Generator
#
#
use strict;
+use warnings;
use Getopt::Long qw(:config pass_through);
my $file = shift @ARGV or die("Must provide source file as final argument.");
-#! /usr/bin/python
+#! /usr/bin/env python
# Copyright (C) 2014-2017 Apple Inc. All rights reserved.
#
-#! /usr/bin/python
+#! /usr/bin/env python
# Copyright (C) 2016-2017 Apple Inc. All rights reserved.
#
-#! /usr/bin/python
+#! /usr/bin/env python
# Copyright (C) 2016-2017 Apple Inc. All rights reserved.
#
-#! /usr/bin/python
+#! /usr/bin/env python
# Copyright (C) 2016 Apple Inc. All rights reserved.
#
+2018-01-03 Ting-Wei Lan <lantw44@gmail.com>
+
+ Replace hard-coded paths in shebangs with #!/usr/bin/env
+ https://bugs.webkit.org/show_bug.cgi?id=181040
+
+ Reviewed by Alex Christensen.
+
+ * bindings/scripts/InFilesCompiler.pm:
+ * bindings/scripts/InFilesParser.pm:
+ * bindings/scripts/generate-bindings-all.pl:
+ * bindings/scripts/generate-bindings.pl:
+ * bindings/scripts/preprocess-idls.pl:
+ * css/make-css-file-arrays.pl:
+ * css/makeprop.pl:
+ * css/makevalues.pl:
+ * dom/make_event_factory.pl:
+ * dom/make_names.pl:
+ * extract-localizable-strings.pl:
+ * make-hash-tools.pl:
+
2018-01-03 Wenson Hsieh <wenson_hsieh@apple.com>
[Attachment Support] Add plumbing for starting a drag with promised blob data
-#!/usr/bin/python
+#!/usr/bin/env python
# Copyright (C) 2015 Apple Inc. All rights reserved.
#
+2018-01-03 Ting-Wei Lan <lantw44@gmail.com>
+
+ Replace hard-coded paths in shebangs with #!/usr/bin/env
+ https://bugs.webkit.org/show_bug.cgi?id=181040
+
+ Reviewed by Alex Christensen.
+
+ * AVFoundationSupport.py:
+
2018-01-03 Per Arne Vollan <pvollan@apple.com>
[Win] WebKitLegacy compile error.
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2011 Adam Barth <abarth@webkit.org>
#
#
use strict;
+use warnings;
use Config;
use Getopt::Long;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2008 Julien Chaffraix <jchaffraix@webkit.org>
#
#
use strict;
+use warnings;
package InFilesParser;
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright (C) 2016 Sony Interactive Entertainment Inc.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2005 Apple Inc.
# Copyright (C) 2006 Anders Carlsson <andersca@mac.com>
# <rdar://problems/4251781&4251785>
use strict;
+use warnings;
use FindBin;
use lib '.', $FindBin::Bin;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2011 Google Inc. All rights reserved.
#
#
use strict;
+use warnings;
use FindBin;
use lib $FindBin::Bin;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2006 Apple Inc.
#
# Usage: make-css-file-arrays.pl <header> <output> <input> ...
use strict;
+use warnings;
use FindBin;
use lib "$FindBin::Bin/../bindings/scripts";
-#! /usr/bin/perl
+#! /usr/bin/env perl
#
# This file is part of the WebKit project
#
-#! /usr/bin/perl
+#! /usr/bin/env perl
#
# This file is part of the WebKit project
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2005, 2006, 2007, 2009 Apple Inc. All rights reserved.
# Copyright (C) 2009, Julien Chaffraix <jchaffraix@webkit.org>
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
use strict;
+use warnings;
use FindBin;
use lib "$FindBin::Bin/../bindings/scripts";
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2005-2007, 2009, 2013-2014 Apple Inc. All rights reserved.
# Copyright (C) 2009, Julien Chaffraix <jchaffraix@webkit.org>
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
use strict;
+use warnings;
use FindBin;
use lib "$FindBin::Bin/../bindings/scripts";
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2006, 2007, 2009, 2010, 2013 Apple Inc. All rights reserved.
#
# The exceptions file has a list of strings in quotes, filenames, and filename/string pairs separated by :.
use strict;
+use warnings;
use File::Compare;
use File::Copy;
use FindBin;
-#! /usr/bin/perl
+#! /usr/bin/env perl
#
# This file is part of the WebKit project
#
+2018-01-03 Ting-Wei Lan <lantw44@gmail.com>
+
+ Replace hard-coded paths in shebangs with #!/usr/bin/env
+ https://bugs.webkit.org/show_bug.cgi?id=181040
+
+ Reviewed by Alex Christensen.
+
+ * Scripts/combine-resources.pl:
+ * Scripts/copy-user-interface-resources-dryrun.rb:
+ * Scripts/copy-user-interface-resources.pl:
+ * Scripts/fix-worker-imports-for-optimized-builds.pl:
+ * Scripts/remove-console-asserts-dryrun.rb:
+ * Scripts/remove-console-asserts.pl:
+ * Scripts/update-LegacyInspectorBackendCommands.rb:
+ * Scripts/update-codemirror-resources.rb:
+ * WebInspectorUI.vcxproj/build-webinspectorui.pl:
+
2018-01-03 Joseph Pecoraro <pecoraro@apple.com>
Web Inspector: "Log Value" context menu is sometimes unavailable
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2015 Apple Inc. All rights reserved.
#
# THE POSSIBILITY OF SUCH DAMAGE.
use strict;
+use warnings;
use Getopt::Long;
use File::Basename;
use File::Path;
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
# Copyright (C) 2015 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2015 Apple Inc. All rights reserved.
#
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
# THE POSSIBILITY OF SUCH DAMAGE.
+use warnings;
use English;
use File::Copy qw(copy);
use File::Path qw(make_path remove_tree);
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
use strict;
+use warnings;
use Getopt::Long;
use File::Copy qw/move/;
use File::Temp qw/tempfile/;
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require "find"
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
use strict;
+use warnings;
use Getopt::Long;
use File::Copy qw/move/;
use File::Temp qw/tempfile/;
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'fileutils'
require 'tmpdir'
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'fileutils'
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2014, 2015 Apple Inc. All rights reserved.
#
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
use strict;
+use warnings;
use Cwd;
use File::Path qw(make_path);
use File::Spec;
+2018-01-03 Ting-Wei Lan <lantw44@gmail.com>
+
+ Replace hard-coded paths in shebangs with #!/usr/bin/env
+ https://bugs.webkit.org/show_bug.cgi?id=181040
+
+ Reviewed by Alex Christensen.
+
+ * Scripts/generate-forwarding-headers.pl:
+
2018-01-03 Wenson Hsieh <wenson_hsieh@apple.com>
[Attachment Support] Add plumbing for starting a drag with promised blob data
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2010 Andras Becsi (abecsi@inf.u-szeged.hu), University of Szeged
# All rights reserved.
#
# and generates forwarding headers for these headers.
use strict;
+use warnings;
use Cwd qw(abs_path realpath);
use File::Find;
use File::Basename;
+2018-01-03 Ting-Wei Lan <lantw44@gmail.com>
+
+ Replace hard-coded paths in shebangs with #!/usr/bin/env
+ https://bugs.webkit.org/show_bug.cgi?id=181040
+
+ Reviewed by Alex Christensen.
+
+ * scripts/generate-webkitversion.pl:
+
2017-12-28 Yusuke Suzuki <utatane.tea@gmail.com>
Remove std::chrono completely
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Based on make_names.pl
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
use strict;
+use warnings;
use File::Path qw(make_path);
use File::Spec;
use File::Basename;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2013-2014 Apple Inc. All rights reserved.
#
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
use strict;
+use warnings;
use File::Spec;
my $FeatureDefines = ($ARGV[1] eq 'cairo') ? 'FeatureDefinesCairo.props' : 'FeatureDefines.props';
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
use strict;
+use warnings;
use Cwd 'abs_path';
use File::Basename;
use File::Spec;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2006 Apple Inc. All rights reserved.
# Copyright (C) 2006 Mark Rowe <opendarwin.org@bdash.net.nz>. All rights reserved.
# Creates the launcher WebKit.app with bundled frameworks.
use strict;
+use warnings;
use FindBin;
use lib "$FindBin::Bin/../Scripts";
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2006 Apple Inc. All rights reserved.
# Copyright (C) 2006 Mark Rowe <opendarwin.org@bdash.net.nz>. All rights reserved.
# Script used by build slaves to create a disk-image containing WebKit.app.
use strict;
+use warnings;
use File::Basename;
use Getopt::Long;
-#! /usr/bin/python
+#! /usr/bin/env python
import sys
import os
-#!/usr/bin/python
+#!/usr/bin/env python
# Copyright (C) 2009, 2015 Apple Inc. All rights reserved.
# Copyright (C) 2012 Google Inc. All rights reserved.
-#!/usr/bin/python
+#!/usr/bin/env python
# Copyright (C) 2013, 2015 Apple Inc. All rights reserved.
# Copyright (C) 2012 Google Inc. All rights reserved.
#
-#!/usr/bin/python
+#!/usr/bin/env python
# Copyright (C) 2013, 2015 Apple Inc. All rights reserved.
# Copyright (C) 2012 Google Inc. All rights reserved.
#
-#!/usr/bin/python
+#!/usr/bin/env python
#
# Copyright (C) 2009 Apple Inc. All rights reserved.
# Copyright (C) 2012 Google Inc. All rights reserved.
-#! /bin/bash
+#! /usr/bin/env bash
#
# Copyright (C) 2010 Igalia S.L. All rights reserved.
#
-#! /bin/bash
+#! /usr/bin/env bash
#
# Copyright (C) 2010 Igalia S.L. All rights reserved.
#
-#! /bin/bash
+#! /usr/bin/env bash
#
# Copyright (C) 2010 Igalia S.L. All rights reserved.
#
-#!/usr/bin/python
+#!/usr/bin/env python
# Copyright (C) 2010 Apple Inc. All rights reserved.
# Copyright (C) 2011 Google Inc. All rights reserved.
#
-#!/usr/bin/python
+#!/usr/bin/env python
# Copyright (C) 2009, 2015 Apple Inc. All rights reserved.
#
-#!/usr/bin/python\r
+#!/usr/bin/env python\r
\r
# Copyright (C) 2010 Apple Inc. All rights reserved.\r
#\r
+2018-01-03 Ting-Wei Lan <lantw44@gmail.com>
+
+ Replace hard-coded paths in shebangs with #!/usr/bin/env
+ https://bugs.webkit.org/show_bug.cgi?id=181040
+
+ Reviewed by Alex Christensen.
+
+ * BuildSlaveSupport/build-launcher-app:
+ * BuildSlaveSupport/build-launcher-dmg:
+ * BuildSlaveSupport/build.webkit.org-config/steps_unittest.py:
+ * BuildSlaveSupport/built-product-archive:
+ * BuildSlaveSupport/clean-build:
+ * BuildSlaveSupport/delete-stale-build-files:
+ * BuildSlaveSupport/download-built-product:
+ * BuildSlaveSupport/gtk/buildbot/log/run:
+ * BuildSlaveSupport/gtk/buildbot/run:
+ * BuildSlaveSupport/gtk/pulseaudio/run:
+ * BuildSlaveSupport/kill-old-processes:
+ * BuildSlaveSupport/test-result-archive:
+ * BuildSlaveSupport/win/kill-old-processes:
+ * Scripts/SpacingHeuristics.pm:
+ * Scripts/add-include:
+ * Scripts/build-api-tests:
+ * Scripts/build-dumprendertree:
+ * Scripts/build-imagediff:
+ * Scripts/build-jsc:
+ * Scripts/build-webkit:
+ * Scripts/build-webkittestrunner:
+ * Scripts/check-Xcode-source-file-types:
+ * Scripts/check-dom-results:
+ * Scripts/check-for-exit-time-destructors:
+ * Scripts/check-for-global-initializers:
+ * Scripts/check-for-inappropriate-objc-class-names:
+ * Scripts/check-for-weak-vtables-and-externals:
+ * Scripts/clean-header-guards:
+ * Scripts/compare-timing-files:
+ * Scripts/configure-xcode-for-ios-development:
+ * Scripts/copy-webkitlibraries-to-product-directory:
+ * Scripts/create-exports:
+ * Scripts/debug-minibrowser:
+ * Scripts/debug-safari:
+ * Scripts/debug-test-runner:
+ * Scripts/do-file-rename:
+ * Scripts/do-webcore-rename:
+ * Scripts/dump-webkit-tests-run:
+ * Scripts/ensure-valid-python:
+ * Scripts/execAppWithEnv:
+ * Scripts/extract-localizable-js-strings:
+ * Scripts/filter-build-webkit:
+ * Scripts/find-extra-includes:
+ * Scripts/fix-blink-patch:
+ * Scripts/generate-coverage-data:
+ * Scripts/git-add-reviewer:
+ * Scripts/jsc-stress-test-helpers/js-exception-fuzz:
+ * Scripts/jsc-stress-test-helpers/js-executable-allocation-fuzz:
+ * Scripts/jsc-stress-test-helpers/js-osr-exit-fuzz:
+ * Scripts/make-new-script-test:
+ * Scripts/make-script-test-wrappers:
+ * Scripts/package-root:
+ * Scripts/parse-malloc-history:
+ * Scripts/report-include-statistics:
+ * Scripts/resolve-ChangeLogs:
+ * Scripts/run-api-tests:
+ * Scripts/run-bindings-tests:
+ * Scripts/run-content-extension-tester:
+ * Scripts/run-iexploder-tests:
+ * Scripts/run-javascriptcore-tests:
+ * Scripts/run-jsc:
+ * Scripts/run-leaks:
+ * Scripts/run-mangleme-tests:
+ * Scripts/run-minibrowser:
+ * Scripts/run-pageloadtest:
+ * Scripts/run-regexp-tests:
+ * Scripts/run-safari:
+ * Scripts/run-sunspider:
+ * Scripts/run-test-runner:
+ * Scripts/run-webkit-app:
+ * Scripts/run-webkit-httpd:
+ * Scripts/run-webkit-websocketserver:
+ * Scripts/set-webkit-configuration:
+ * Scripts/show-pretty-diff:
+ * Scripts/sort-Xcode-project-file:
+ * Scripts/split-file-by-class:
+ * Scripts/sunspider-compare-results:
+ * Scripts/svn-apply:
+ * Scripts/svn-unapply:
+ * Scripts/test-webkit-scripts:
+ * Scripts/test-webkitperl:
+ * Scripts/update-iexploder-cssproperties:
+ * Scripts/update-javascriptcore-test-results:
+ * Scripts/update-webkit:
+ * Scripts/update-webkit-auxiliary-libs:
+ * Scripts/update-webkit-dependency:
+ * Scripts/update-webkit-libs-jhbuild:
+ * Scripts/update-webkit-localizable-strings:
+ * Scripts/update-webkit-support-libs:
+ * Scripts/update-webkitgtk-libs:
+ * Scripts/update-webkitwpe-libs:
+ * Scripts/webkit-build-directory:
+ * Scripts/webkitperl/LoadAsModule.pm:
+ * Scripts/webkitperl/VCSUtils_unittest/decodeGitBinaryPatch.pl:
+ * Scripts/webkitperl/VCSUtils_unittest/fixChangeLogPatch.pl:
+ * Scripts/webkitperl/VCSUtils_unittest/fixChangeLogPatchThenSetChangeLogDateAndReviewer.pl:
+ * Scripts/webkitperl/VCSUtils_unittest/fixSVNPatchForAdditionWithHistory.pl:
+ * Scripts/webkitperl/VCSUtils_unittest/generatePatchCommand.pl:
+ * Scripts/webkitperl/VCSUtils_unittest/mergeChangeLogs.pl:
+ * Scripts/webkitperl/VCSUtils_unittest/parseChunkRange.pl:
+ * Scripts/webkitperl/VCSUtils_unittest/parseDiff.pl:
+ * Scripts/webkitperl/VCSUtils_unittest/parseDiffHeader.pl:
+ * Scripts/webkitperl/VCSUtils_unittest/parseDiffWithMockFiles.pl:
+ * Scripts/webkitperl/VCSUtils_unittest/parseFirstEOL.pl:
+ * Scripts/webkitperl/VCSUtils_unittest/parseGitDiffHeader.pl:
+ * Scripts/webkitperl/VCSUtils_unittest/parsePatch.pl:
+ * Scripts/webkitperl/VCSUtils_unittest/parseSvnDiffFooter.pl:
+ * Scripts/webkitperl/VCSUtils_unittest/parseSvnDiffHeader.pl:
+ * Scripts/webkitperl/VCSUtils_unittest/parseSvnProperty.pl:
+ * Scripts/webkitperl/VCSUtils_unittest/parseSvnPropertyValue.pl:
+ * Scripts/webkitperl/VCSUtils_unittest/parseUnifiedDiffHeader.pl:
+ * Scripts/webkitperl/VCSUtils_unittest/prepareParsedPatch.pl:
+ * Scripts/webkitperl/VCSUtils_unittest/removeEOL.pl:
+ * Scripts/webkitperl/VCSUtils_unittest/runCommand.pl:
+ * Scripts/webkitperl/VCSUtils_unittest/runPatchCommand.pl:
+ * Scripts/webkitperl/VCSUtils_unittest/setChangeLogDateAndReviewer.pl:
+ * Scripts/webkitperl/auto-version_unittest/autoVersionTests.pl:
+ * Scripts/webkitperl/auto-version_unittest/versionStampTests.pl:
+ * Scripts/webkitperl/filter-build-webkit_unittest/shouldIgnoreLine_unittests.pl:
+ * Scripts/webkitperl/prepare-ChangeLog_unittest/extractLineRangeBeforeAndAfterChange.pl:
+ * Scripts/webkitperl/prepare-ChangeLog_unittest/fetchRadarURLFromBugXMLData.pl:
+ * Scripts/webkitperl/prepare-ChangeLog_unittest/generateFunctionLists.pl:
+ * Scripts/webkitperl/prepare-ChangeLog_unittest/parser_unittests.pl:
+ * Scripts/webkitperl/prepare-ChangeLog_unittest/resources/perl_unittests.pl:
+ * Scripts/webkitperl/run-leaks_unittest/run-leaks-report-v1.0.pl:
+ * Scripts/webkitperl/run-leaks_unittest/run-leaks-report-v2.0-new.pl:
+ * Scripts/webkitperl/run-leaks_unittest/run-leaks-report-v2.0-old.pl:
+ * Scripts/webkitperl/webkitdirs_unittest/appendToEnvironmentVariableList.pl:
+ * Scripts/webkitperl/webkitdirs_unittest/checkForArgumentAndRemoveFromArrayRef.pl:
+ * Scripts/webkitperl/webkitdirs_unittest/checkForArgumentAndRemoveFromArrayRefGettingValue.pl:
+ * Scripts/webkitperl/webkitdirs_unittest/extractNonMacOSHostConfiguration.pl:
+ * Scripts/webkitperl/webkitdirs_unittest/prependToEnvironmentVariableList.pl:
+ * Scripts/webkitpy/layout_tests/servers/run_webkit_httpd.py:
+ * ccache/ccache-clang:
+ * ccache/ccache-clang++:
+ * ccache/ccache-wrapper:
+ * gtk/install-dependencies:
+ * iExploder/iexploder-1.3.2/htdocs/iexploder.cgi:
+ * iExploder/iexploder-1.3.2/htdocs/webserver.rb:
+ * iExploder/iexploder-1.3.2/tools/lasthit.rb:
+ * iExploder/iexploder-1.3.2/tools/osx_last_crash.rb:
+ * iExploder/iexploder-1.3.2/tools/showtest.rb:
+ * iExploder/iexploder-1.7.2/src/browser_harness.rb:
+ * iExploder/iexploder-1.7.2/src/iexploder.cgi:
+ * iExploder/iexploder-1.7.2/src/webserver.rb:
+ * iExploder/iexploder-1.7.2/tools/lasthit.rb:
+ * iExploder/iexploder-1.7.2/tools/osx_last_crash.rb:
+ * wpe/install-dependencies:
+
2018-01-03 Simon Fraser <simon.fraser@apple.com>
filter-build-webkit filters out useful compiler error lines
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2006 Apple Inc. All rights reserved.
#
# Used for helping remove extra blank lines from files when processing.
# see split-class for an example usage (or other scripts in bugzilla)
+use warnings;
+
BEGIN {
use Exporter ();
our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS);
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright 2009 Apple Inc. All rights reserved.
#
# Helper script to add includes to source files.
use strict;
+use warnings;
my $headerPattern = '[\"<][A-Za-z][A-Za-z0-9_/]+(\.h)?[\">]'; # " Make Xcode formatter happy.
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2010 Apple Inc. All rights reserved.
#
# THE POSSIBILITY OF SUCH DAMAGE.
use strict;
+use warnings;
use File::Basename;
use FindBin;
use Getopt::Long qw(:config pass_through);
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2005-2009, 2013, 2015 Apple Inc. All rights reserved.
#
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
use strict;
+use warnings;
use File::Basename;
use FindBin;
use Getopt::Long qw(:config pass_through);
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2014 Apple Inc. All rights reserved.
#
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
use strict;
+use warnings;
use File::Basename;
use FindBin;
use Getopt::Long qw(:config pass_through);
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2005, 2013 Apple Inc. All rights reserved.
# Copyright (C) 2007 Eric Seidel <eric@webkit.org>
use strict;
+use warnings;
use FindBin;
use Getopt::Long qw(:config pass_through);
use lib $FindBin::Bin;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Apple Inc. All rights reserved.
# Copyright (C) 2009 Google Inc. All rights reserved.
# Build script wrapper for the WebKit Open Source Project.
use strict;
+use warnings;
use File::Basename;
use File::Find;
use File::Spec;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2010, 2013 Apple Inc. All rights reserved.
#
# THE POSSIBILITY OF SUCH DAMAGE.
use strict;
+use warnings;
use File::Basename;
use FindBin;
use Getopt::Long qw(:config pass_through);
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
#
# take time to check each header using gcc, so make it a switch.)
use strict;
+use warnings;
use File::Basename;
use File::Spec;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2005 Apple Inc. All rights reserved.
#
# Script to check status of W3C DOM tests that are part of the WebKit tests.
use strict;
+use warnings;
use FindBin;
use Cwd;
use lib $FindBin::Bin;
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright (C) 2006-2008, 2016 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright (C) 2006, 2007, 2008, 2010, 2011 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright (C) 2006-2008, 2010, 2013, 2015 Apple Inc. All rights reserved.
#
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
require 'find'
require 'optparse'
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright (C) 2006 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2014, 2015 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2005-2017 Apple Inc. All rights reserved.
#
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
use strict;
+use warnings;
use File::Spec;
use FindBin;
use Getopt::Long qw(:config pass_through);
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
+
+use warnings;
while (<>) {
print "$1\n" if /^\s*\"(.+)\", referenced from:$/;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2005, 2007 Apple Inc. All rights reserved.
#
# Simplified "debug" script for debugging the WebKit2 MiniBrowser.
use strict;
+use warnings;
use FindBin;
use lib $FindBin::Bin;
use webkitdirs;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2007 Apple Inc. All rights reserved.
#
# Script to run Safari in the platform's debugger for the WebKit Open Source Project.
use strict;
+use warnings;
use FindBin;
use lib $FindBin::Bin;
use webkitdirs;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2010 Apple Inc. All rights reserved.
#
# Simplified "debug" script for debugging the WebKitTestRunner.
use strict;
+use warnings;
use FindBin;
use lib $FindBin::Bin;
use webkitdirs;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
#
# Script to do file renaming.
use strict;
+use warnings;
use File::Find;
use FindBin;
use lib $FindBin::Bin;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
#
# Script to do a rename in JavaScriptCore, WebCore, and WebKit.
use strict;
+use warnings;
use File::Find;
use FindBin;
-#!/usr/bin/python
+#!/usr/bin/env python
import json
import optparse
import os
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
use strict;
+use warnings;
use FindBin;
use Getopt::Long;
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright (C) 2009 Google Inc. All rights reserved.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2013 Apple Inc. All rights reserved.
#
# THE POSSIBILITY OF SUCH DAMAGE.
use strict;
+use warnings;
use Getopt::Long;
my $utf8 = 0;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2011, 2012, 2013, 2014 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2005 Apple Inc. All rights reserved.
#
# "find-extra-includes" script for WebKit Open Source Project
use strict;
+use warnings;
use File::Find;
find(\&wanted, @ARGV ? @ARGV : ".");
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2014 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2005, 2006, 2013 Apple Inc. All rights reserved.
# Copyright (C) 2007 Holger Hans Peter Freyther. All rights reserved.
# Script to build, run and visualize coverage information
use strict;
+use warnings;
use File::Basename;
use File::Spec;
use FindBin;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2011 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright (C) 2014 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright (C) 2014, 2015 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright (C) 2014-2015 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2011 Apple Inc. All rights reserved.
#
# Script to create a new HTML file using js-test machinery.
use strict;
+use warnings;
use FindBin;
use lib $FindBin::Bin;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
#
# Script to generate HTML wrappers for JavaScript tests from templates
use strict;
+use warnings;
use FindBin;
use lib $FindBin::Bin;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
use strict;
+use warnings;
use English;
use File::Copy qw/ move /;
use File::Temp qw/ tempdir tempfile /;
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright (C) 2007 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2005, 2006 Apple Inc. All rights reserved.
#
# "report-include-statistics" script for WebKit Open Source Project
use strict;
+use warnings;
use File::Find;
find(\&wanted, @ARGV ? @ARGV : ".");
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved.
#
# Merge and resolve ChangeLog conflicts for svn and git repositories
use strict;
+use warnings;
use FindBin;
use lib $FindBin::Bin;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2010-2012, 2014-2015 Apple Inc. All rights reserved.
#
-#!/usr/bin/python
+#!/usr/bin/env python
# Copyright (C) 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2015 Apple Inc. All rights reserved.
#
# THE POSSIBILITY OF SUCH DAMAGE.
use strict;
+use warnings;
use FindBin;
use lib $FindBin::Bin;
use webkitdirs;
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com)
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2005-2017 Apple Inc. All rights reserved.
# Copyright (C) 2007 Eric Seidel <eric@webkit.org>
# as well as other tests: testapi on Mac and LayoutTests/js.
use strict;
+use warnings;
use File::Spec;
use FindBin;
use Getopt::Long qw(:config pass_through);
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright (C) 2006 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright (C) 2007 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com)
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2005, 2007, 2013 Apple Inc. All rights reserved.
# Copyright (C) 2007 Staikos Computing Services, Inc. <info@staikos.net>
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright (C) 2006 Eric Seidel (eric@webkit.org)
# Copyright (C) 2014 Apple Inc. All rights reserved.
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2011 Apple Inc. All rights reserved.
#
# Script to run the WebKit Open Source Project Regular Expression functional tests.
use strict;
+use warnings;
use FindBin;
use Getopt::Long qw(:config pass_through);
use lib $FindBin::Bin;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2005, 2007 Apple Inc. All rights reserved.
#
# Simplified "run" script for WebKit Open Source Project.
use strict;
+use warnings;
use FindBin;
use lib $FindBin::Bin;
use webkitdirs;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2007 Apple Inc. All rights reserved.
# Copyright (C) 2007 Eric Seidel <eric@webkit.org>
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
use strict;
+use warnings;
use FindBin;
use Getopt::Long qw(:config pass_through);
use lib $FindBin::Bin;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2010 Apple Inc. All rights reserved.
#
# Simplified "run" script for launching the WebKit2 WebKitTestRunner.
use strict;
+use warnings;
use FindBin;
use lib $FindBin::Bin;
use webkitdirs;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2005 Apple Inc. All rights reserved.
#
# Simplified "run" script for WebKit Open Source Project.
use strict;
+use warnings;
use FindBin;
use lib $FindBin::Bin;
use webkitdirs;
-#!/usr/bin/python
+#!/usr/bin/env python
# Copyright (C) 2005, 2006, 2007, 2015 Apple Inc. All rights reserved.
# Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright (C) 2009 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2005 Apple Inc. All rights reserved.
#
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
use strict;
+use warnings;
use FindBin;
use lib $FindBin::Bin;
use webkitdirs;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2011 Apple Inc. All rights reserved.
#
# THE POSSIBILITY OF SUCH DAMAGE.
use strict;
+use warnings;
use FindBin;
use File::Temp qw(tempfile);
use lib $FindBin::Bin;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
#
# Script to sort "children" and "files" sections in Xcode project.pbxproj files
use strict;
+use warnings;
use File::Basename;
use File::Spec;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2006 Apple Inc. All rights reserved.
#
# Usage: split-class <header file>
use strict;
+use warnings;
use File::Copy;
use FindBin;
use lib $FindBin::Bin;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2007 Apple Inc. All rights reserved.
# Copyright (C) 2007 Eric Seidel <eric@webkit.org>
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
use strict;
+use warnings;
use File::Spec;
use FindBin;
use Getopt::Long qw(:config pass_through);
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2005, 2006, 2007 Apple Inc. All rights reserved.
# Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2005, 2006, 2007 Apple Inc. All rights reserved.
# Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
-#!/usr/bin/python
+#!/usr/bin/env python
#
# Copyright (C) 2009, 2010 Chris Jerdonek (chris.jerdonek@gmail.com)
#
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright (C) 2009 Chris Jerdonek (chris.jerdonek@gmail.com)
#
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright (C) 2007 Apple Inc. All rights reserved.
# Copyright (C) 2010 Holger Hans Peter Freyther
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2005, 2007 Apple Inc. All rights reserved.
#
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
use strict;
+use warnings;
use FindBin;
use Getopt::Long;
use lib $FindBin::Bin;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2005-2009, 2013, 2014 Apple Inc. All rights reserved.
# Copyright (C) 2009 Google Inc. All rights reserved.
# Update script for WebKit Open Source Project.
use strict;
+use warnings;
use FindBin;
use lib $FindBin::Bin;
use File::Basename;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2005, 2006, 2007 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2005, 2006, 2007 Apple Inc. All rights reserved.
# Copyright (C) 2011 Carl Lobo. All rights reserved.
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2011 Igalia S.L.
# Copyright (C) 2012 Intel Corporation
# Copyright (C) 2013 Nokia Corporation and/or its subsidiary(-ies).
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+use warnings;
use FindBin;
use lib $FindBin::Bin;
use webkitdirs;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2006, 2007, 2013 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2005, 2006, 2007 Apple Inc. All rights reserved.
# Copyright (C) Research In Motion Limited 2010. All rights reserved.
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2011 Igalia S.L.
# Copyright (C) 2012 Intel Corporation
#
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+use warnings;
use FindBin;
use lib $FindBin::Bin;
use webkitdirs;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2011 Igalia S.L.
# Copyright (C) 2012 Intel Corporation
#
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+use warnings;
use FindBin;
use lib $FindBin::Bin;
use webkitdirs;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2010 Google Inc. All rights reserved.
# Copyright (C) 2013, 2015 Apple Inc. All rights reserved.
# A script to expose WebKit's build directory detection logic to non-perl scripts.
+use warnings;
use FindBin;
use Getopt::Long;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2011 Apple Inc. All rights reserved.
# Copyright (C) 2011 Google Inc. All rights reserved.
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2015 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright (C) 2009, 2010 Chris Jerdonek (chris.jerdonek@gmail.com)
# Copyright (C) Research In Motion 2010. All rights reserved.
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org)
# Copyright (C) 2010 Research In Motion Limited. All rights reserved.
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright (C) 2017 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright (C) 2009, 2010 Chris Jerdonek (chris.jerdonek@gmail.com)
#
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright (C) 2010 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2011 Research In Motion Limited. All rights reserved.
# Copyright (C) 2010 Chris Jerdonek (chris.jerdonek@gmail.com)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2010 Chris Jerdonek (chris.jerdonek@gmail.com)
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2010 Chris Jerdonek (chris.jerdonek@gmail.com)
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2011 Research In Motion Limited. All rights reserved.
# Copyright (C) 2013 Apple Inc. All rights reserved.
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2011 Research In Motion Limited. All rights reserved.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org)
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2010 Chris Jerdonek (chris.jerdonek@gmail.com)
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) Research in Motion Limited 2010. All Rights Reserved.
# Copyright (C) 2010 Chris Jerdonek (chris.jerdonek@gmail.com)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2010 Chris Jerdonek (chris.jerdonek@gmail.com)
# Copyright (C) 2012 Daniel Bates (dbates@intudata.com)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) Research in Motion Limited 2010. All Rights Reserved.
# Copyright (C) 2010 Chris Jerdonek (chris.jerdonek@gmail.com)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) Research in Motion Limited 2010. All Rights Reserved.
# Copyright (C) 2010 Chris Jerdonek (chris.jerdonek@gmail.com)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2015 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org)
#
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright (C) Research In Motion Limited 2010. All rights reserved.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2012 Daniel Bates (dbates@intudata.com). All rights reserved.
#
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright (C) 2009, 2010 Chris Jerdonek (chris.jerdonek@gmail.com)
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org)
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2014 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2014 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2013 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2015 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2016 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright (C) 2016 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2011 Google Inc. All rights reserved.
# Copyright (C) 2015-2016 Apple Inc. All rights reserved.
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2011 Google Inc. All rights reserved.
#
# Boston, MA 02110-1301, USA.
#
+use warnings;
+
sub func1
{
}
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2011 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2011 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2011 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2015 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2013 Nokia Corporation and/or its subsidiary(-ies).
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Copyright (C) 2014 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2017 Apple Inc. All rights reserved.
#
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 2015 Apple Inc. All rights reserved.
#
-#!/usr/bin/python
+#!/usr/bin/env python
# Copyright (C) 2005, 2006, 2007, 2015 Apple Inc. All rights reserved.
# Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com)
-#!/bin/bash
+#!/usr/bin/env bash
# Copyright (C) 2017 Apple Inc. All rights reserved.
#
-#!/bin/bash
+#!/usr/bin/env bash
# Copyright (C) 2017 Apple Inc. All rights reserved.
#
-#!/bin/bash
+#!/usr/bin/env bash
# Copyright (C) 2017 Apple Inc. All rights reserved.
#
-#!/bin/bash
+#!/usr/bin/env bash
# This script needs to be run with root rights.
if [ $UID -ne 0 ]; then
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
# iExploder - Generates bad HTML files to perform QA for web browsers.
# Developed for the Mozilla Foundation.
#####################
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
# iExploder - Generates bad HTML files to perform QA for web browsers.
# Developed for the Mozilla Foundation.
#####################
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
# lasthit, part of iExploder
#
# Shows statistics about recent agents that have tested with iExploder.
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
# Gives you information about the most recent crash for each application
# that has crashed within the last 2 days
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
# showtest.rb - simple CLI interface to grab a testcase
#####################
#
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
# iExploder browser Harness (test a single web browser)
#
# Copyright 2010 Thomas Stromberg - All Rights Reserved.
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
# iExploder - Generates bad HTML files to perform QA for web browsers.
#
# Copyright 2010 Thomas Stromberg - All Rights Reserved.
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
# iExploder Web Server (using webrick)
#
# Copyright 2010 Thomas Stromberg - All Rights Reserved.
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
# Copyright 2010 Thomas Stromberg - All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
# Copyright 2010 Thomas Stromberg - All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
-#!/bin/bash
+#!/usr/bin/env bash
# This script needs to be run with root rights.
if [ $UID -ne 0 ]; then