Replace hard-coded paths in shebangs with #!/usr/bin/env
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Jan 2018 07:18:18 +0000 (07:18 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Jan 2018 07:18:18 +0000 (07:18 +0000)
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

192 files changed:
ChangeLog
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/Scripts/UpdateContents.py
Source/JavaScriptCore/Scripts/cssmin.py
Source/JavaScriptCore/Scripts/generate-combined-inspector-json.py
Source/JavaScriptCore/Scripts/xxd.pl
Source/JavaScriptCore/create_hash_table
Source/JavaScriptCore/generate-bytecode-files
Source/JavaScriptCore/wasm/generateWasm.py
Source/JavaScriptCore/wasm/generateWasmOpsHeader.py
Source/JavaScriptCore/yarr/generateYarrCanonicalizeUnicode
Source/WebCore/ChangeLog
Source/WebCore/PAL/AVFoundationSupport.py
Source/WebCore/PAL/ChangeLog
Source/WebCore/bindings/scripts/InFilesCompiler.pm
Source/WebCore/bindings/scripts/InFilesParser.pm
Source/WebCore/bindings/scripts/generate-bindings-all.pl
Source/WebCore/bindings/scripts/generate-bindings.pl
Source/WebCore/bindings/scripts/preprocess-idls.pl
Source/WebCore/css/make-css-file-arrays.pl
Source/WebCore/css/makeprop.pl
Source/WebCore/css/makevalues.pl
Source/WebCore/dom/make_event_factory.pl
Source/WebCore/dom/make_names.pl
Source/WebCore/extract-localizable-strings.pl
Source/WebCore/make-hash-tools.pl
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/Scripts/combine-resources.pl
Source/WebInspectorUI/Scripts/copy-user-interface-resources-dryrun.rb
Source/WebInspectorUI/Scripts/copy-user-interface-resources.pl
Source/WebInspectorUI/Scripts/fix-worker-imports-for-optimized-builds.pl
Source/WebInspectorUI/Scripts/remove-console-asserts-dryrun.rb
Source/WebInspectorUI/Scripts/remove-console-asserts.pl
Source/WebInspectorUI/Scripts/update-LegacyInspectorBackendCommands.rb
Source/WebInspectorUI/Scripts/update-codemirror-resources.rb
Source/WebInspectorUI/WebInspectorUI.vcxproj/build-webinspectorui.pl
Source/WebKit/ChangeLog
Source/WebKit/Scripts/generate-forwarding-headers.pl
Source/WebKitLegacy/ChangeLog
Source/WebKitLegacy/scripts/generate-webkitversion.pl
Source/cmake/tools/scripts/auto-version.pl
Source/cmake/tools/scripts/feature-defines.pl
Source/cmake/tools/scripts/version-stamp.pl
Tools/BuildSlaveSupport/build-launcher-app
Tools/BuildSlaveSupport/build-launcher-dmg
Tools/BuildSlaveSupport/build.webkit.org-config/steps_unittest.py
Tools/BuildSlaveSupport/built-product-archive
Tools/BuildSlaveSupport/clean-build
Tools/BuildSlaveSupport/delete-stale-build-files
Tools/BuildSlaveSupport/download-built-product
Tools/BuildSlaveSupport/gtk/buildbot/log/run
Tools/BuildSlaveSupport/gtk/buildbot/run
Tools/BuildSlaveSupport/gtk/pulseaudio/run
Tools/BuildSlaveSupport/kill-old-processes
Tools/BuildSlaveSupport/test-result-archive
Tools/BuildSlaveSupport/win/kill-old-processes
Tools/ChangeLog
Tools/Scripts/SpacingHeuristics.pm
Tools/Scripts/add-include
Tools/Scripts/build-api-tests
Tools/Scripts/build-dumprendertree
Tools/Scripts/build-imagediff
Tools/Scripts/build-jsc
Tools/Scripts/build-webkit
Tools/Scripts/build-webkittestrunner
Tools/Scripts/check-Xcode-source-file-types
Tools/Scripts/check-dom-results
Tools/Scripts/check-for-exit-time-destructors
Tools/Scripts/check-for-global-initializers
Tools/Scripts/check-for-inappropriate-objc-class-names
Tools/Scripts/check-for-weak-vtables-and-externals
Tools/Scripts/clean-header-guards
Tools/Scripts/compare-timing-files
Tools/Scripts/configure-xcode-for-ios-development
Tools/Scripts/copy-webkitlibraries-to-product-directory
Tools/Scripts/create-exports
Tools/Scripts/debug-minibrowser
Tools/Scripts/debug-safari
Tools/Scripts/debug-test-runner
Tools/Scripts/do-file-rename
Tools/Scripts/do-webcore-rename
Tools/Scripts/dump-webkit-tests-run
Tools/Scripts/ensure-valid-python
Tools/Scripts/execAppWithEnv
Tools/Scripts/extract-localizable-js-strings
Tools/Scripts/filter-build-webkit
Tools/Scripts/find-extra-includes
Tools/Scripts/fix-blink-patch
Tools/Scripts/generate-coverage-data
Tools/Scripts/git-add-reviewer
Tools/Scripts/jsc-stress-test-helpers/js-exception-fuzz
Tools/Scripts/jsc-stress-test-helpers/js-executable-allocation-fuzz
Tools/Scripts/jsc-stress-test-helpers/js-osr-exit-fuzz
Tools/Scripts/make-new-script-test
Tools/Scripts/make-script-test-wrappers
Tools/Scripts/package-root
Tools/Scripts/parse-malloc-history
Tools/Scripts/report-include-statistics
Tools/Scripts/resolve-ChangeLogs
Tools/Scripts/run-api-tests
Tools/Scripts/run-bindings-tests
Tools/Scripts/run-content-extension-tester
Tools/Scripts/run-iexploder-tests
Tools/Scripts/run-javascriptcore-tests
Tools/Scripts/run-jsc
Tools/Scripts/run-leaks
Tools/Scripts/run-mangleme-tests
Tools/Scripts/run-minibrowser
Tools/Scripts/run-pageloadtest
Tools/Scripts/run-regexp-tests
Tools/Scripts/run-safari
Tools/Scripts/run-sunspider
Tools/Scripts/run-test-runner
Tools/Scripts/run-webkit-app
Tools/Scripts/run-webkit-httpd
Tools/Scripts/run-webkit-websocketserver
Tools/Scripts/set-webkit-configuration
Tools/Scripts/show-pretty-diff
Tools/Scripts/sort-Xcode-project-file
Tools/Scripts/split-file-by-class
Tools/Scripts/sunspider-compare-results
Tools/Scripts/svn-apply
Tools/Scripts/svn-unapply
Tools/Scripts/test-webkit-scripts
Tools/Scripts/test-webkitperl
Tools/Scripts/update-iexploder-cssproperties
Tools/Scripts/update-javascriptcore-test-results
Tools/Scripts/update-webkit
Tools/Scripts/update-webkit-auxiliary-libs
Tools/Scripts/update-webkit-dependency
Tools/Scripts/update-webkit-libs-jhbuild
Tools/Scripts/update-webkit-localizable-strings
Tools/Scripts/update-webkit-support-libs
Tools/Scripts/update-webkitgtk-libs
Tools/Scripts/update-webkitwpe-libs
Tools/Scripts/webkit-build-directory
Tools/Scripts/webkitperl/LoadAsModule.pm
Tools/Scripts/webkitperl/VCSUtils_unittest/decodeGitBinaryPatch.pl
Tools/Scripts/webkitperl/VCSUtils_unittest/fixChangeLogPatch.pl
Tools/Scripts/webkitperl/VCSUtils_unittest/fixChangeLogPatchThenSetChangeLogDateAndReviewer.pl
Tools/Scripts/webkitperl/VCSUtils_unittest/fixSVNPatchForAdditionWithHistory.pl
Tools/Scripts/webkitperl/VCSUtils_unittest/generatePatchCommand.pl
Tools/Scripts/webkitperl/VCSUtils_unittest/mergeChangeLogs.pl
Tools/Scripts/webkitperl/VCSUtils_unittest/parseChunkRange.pl
Tools/Scripts/webkitperl/VCSUtils_unittest/parseDiff.pl
Tools/Scripts/webkitperl/VCSUtils_unittest/parseDiffHeader.pl
Tools/Scripts/webkitperl/VCSUtils_unittest/parseDiffWithMockFiles.pl
Tools/Scripts/webkitperl/VCSUtils_unittest/parseFirstEOL.pl
Tools/Scripts/webkitperl/VCSUtils_unittest/parseGitDiffHeader.pl
Tools/Scripts/webkitperl/VCSUtils_unittest/parsePatch.pl
Tools/Scripts/webkitperl/VCSUtils_unittest/parseSvnDiffFooter.pl
Tools/Scripts/webkitperl/VCSUtils_unittest/parseSvnDiffHeader.pl
Tools/Scripts/webkitperl/VCSUtils_unittest/parseSvnProperty.pl
Tools/Scripts/webkitperl/VCSUtils_unittest/parseSvnPropertyValue.pl
Tools/Scripts/webkitperl/VCSUtils_unittest/parseUnifiedDiffHeader.pl
Tools/Scripts/webkitperl/VCSUtils_unittest/prepareParsedPatch.pl
Tools/Scripts/webkitperl/VCSUtils_unittest/removeEOL.pl
Tools/Scripts/webkitperl/VCSUtils_unittest/runCommand.pl
Tools/Scripts/webkitperl/VCSUtils_unittest/runPatchCommand.pl
Tools/Scripts/webkitperl/VCSUtils_unittest/setChangeLogDateAndReviewer.pl
Tools/Scripts/webkitperl/auto-version_unittest/autoVersionTests.pl
Tools/Scripts/webkitperl/auto-version_unittest/versionStampTests.pl
Tools/Scripts/webkitperl/filter-build-webkit_unittest/shouldIgnoreLine_unittests.pl
Tools/Scripts/webkitperl/prepare-ChangeLog_unittest/extractLineRangeBeforeAndAfterChange.pl
Tools/Scripts/webkitperl/prepare-ChangeLog_unittest/fetchRadarURLFromBugXMLData.pl
Tools/Scripts/webkitperl/prepare-ChangeLog_unittest/generateFunctionLists.pl
Tools/Scripts/webkitperl/prepare-ChangeLog_unittest/parser_unittests.pl
Tools/Scripts/webkitperl/prepare-ChangeLog_unittest/resources/perl_unittests.pl
Tools/Scripts/webkitperl/run-leaks_unittest/run-leaks-report-v1.0.pl
Tools/Scripts/webkitperl/run-leaks_unittest/run-leaks-report-v2.0-new.pl
Tools/Scripts/webkitperl/run-leaks_unittest/run-leaks-report-v2.0-old.pl
Tools/Scripts/webkitperl/webkitdirs_unittest/appendToEnvironmentVariableList.pl
Tools/Scripts/webkitperl/webkitdirs_unittest/checkForArgumentAndRemoveFromArrayRef.pl
Tools/Scripts/webkitperl/webkitdirs_unittest/checkForArgumentAndRemoveFromArrayRefGettingValue.pl
Tools/Scripts/webkitperl/webkitdirs_unittest/extractNonMacOSHostConfiguration.pl
Tools/Scripts/webkitperl/webkitdirs_unittest/prependToEnvironmentVariableList.pl
Tools/Scripts/webkitpy/layout_tests/servers/run_webkit_httpd.py
Tools/ccache/ccache-clang
Tools/ccache/ccache-clang++
Tools/ccache/ccache-wrapper
Tools/gtk/install-dependencies
Tools/iExploder/iexploder-1.3.2/htdocs/iexploder.cgi
Tools/iExploder/iexploder-1.3.2/htdocs/webserver.rb
Tools/iExploder/iexploder-1.3.2/tools/lasthit.rb
Tools/iExploder/iexploder-1.3.2/tools/osx_last_crash.rb
Tools/iExploder/iexploder-1.3.2/tools/showtest.rb
Tools/iExploder/iexploder-1.7.2/src/browser_harness.rb
Tools/iExploder/iexploder-1.7.2/src/iexploder.cgi
Tools/iExploder/iexploder-1.7.2/src/webserver.rb
Tools/iExploder/iexploder-1.7.2/tools/lasthit.rb
Tools/iExploder/iexploder-1.7.2/tools/osx_last_crash.rb
Tools/wpe/install-dependencies

index 19f953695f138730403ffee9f11b3f9dadef0446..a592c4c8bdaf8a66d423393478e7c13c41c9e70b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1 +1,12 @@
+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 ==
index 05a931489631cca188c704480cf76e1b9b7f9af8..b31c197a5a0960e3de73641235bec92a65d7466d 100644 (file)
@@ -1,3 +1,20 @@
+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
index 776d46fb4c42302b85ff10c851eb34c1e27894c3..062c5e2571d07c7a58fb18c8ead6ea37da8bb3d2 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 # Copyright (C) 2015 Apple Inc.  All rights reserved.
 #
index 186327a2f46e77695359b61ce9aff7513db48ebf..c34cd081b94daecadbc28c7a2816b0c0bd23c156 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 # Copyright (C) 2013 Apple Inc. All rights reserved.
 #
index 53660318ddce3ba78cbb0696a217581960f91012..67ad4a3f0193949bcd69798d6848a91c0d71456b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 # Copyright (C) 2013 Apple Inc. All rights reserved.
 #
index 5ee08a52d8e66cfda3c083f7adb15f96c08a9b0c..5ff262f9ced09d2f3450bcb667883ded14852f40 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/perl
+#! /usr/bin/env perl
 
 # Copyright (C) 2010-2011 Google Inc. All rights reserved.
 #
index 346473c2a867f545b047fd4488e2157d0d057bb2..598c909212e7bbe29e619e20d68f4a8afddaae1b 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/perl -w
+#! /usr/bin/env perl
 #
 # Static Hashtable Generator
 #
@@ -23,6 +23,7 @@
 #
  
 use strict;
+use warnings;
 use Getopt::Long qw(:config pass_through);
 
 my $file = shift @ARGV or die("Must provide source file as final argument.");
index e1128f8e306d26c53af3a82f0ed2731e840927fc..8300bd080fec55a186c42e572fb985efaa5d4dfb 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/env python
 
 # Copyright (C) 2014-2017 Apple Inc. All rights reserved.
 #
index 4de398fd715a17704146501cc021e9fe8ce0ff1b..16887ecf95efddf6bf54feb5b7e78558ed2a37a3 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/env python
 
 # Copyright (C) 2016-2017 Apple Inc. All rights reserved.
 #
index 624e3eb64783070304c5d54dd4c7955b73cd2ef3..0b8d7b0264480af32d9b81c0e2222db7e07b8715 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/env python
 
 # Copyright (C) 2016-2017 Apple Inc. All rights reserved.
 #
index b55d892964eb010b92cfe7d0c98127eb7fabdb00..a103bcdf16d21316932437f20ad341d8e08da024 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/env python
 
 # Copyright (C) 2016 Apple Inc. All rights reserved.
 #
index 8ad51d92330ae0bcbea685fecc92a8b6f4e7dfcc..b2ce02f74df2ca73dafdfeba557672bfe328cb5e 100644 (file)
@@ -1,3 +1,23 @@
+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
index d52093c7cb8d0c4a8fb2dd5f381945ca92d88de1..94d0e6238a8ce41cca4ee336c14227d0b66e4d8b 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 # Copyright (C) 2015 Apple Inc.  All rights reserved.
 #
index 0f2486c26028b6cf8536183ba6e4ecbc86466cc4..2294aa9f9adf986f537d4d846f55af4a7f1c20f2 100644 (file)
@@ -1,3 +1,12 @@
+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.
index 0780d945679f5c1819bab1c131eae2a333554764..f42bdd3af1472efc7b5c6148fe5e6ea73edce696 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2011 Adam Barth <abarth@webkit.org>
 #
@@ -25,6 +25,7 @@
 #
 
 use strict;
+use warnings;
 
 use Config;
 use Getopt::Long;
index 75db119998d53831d201c2c699fe2f5c04e7212c..653a2c3412599fcb34bdac8fc9d2a63f43483000 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2008 Julien Chaffraix <jchaffraix@webkit.org>
 #
@@ -25,6 +25,7 @@
 #
 
 use strict;
+use warnings;
 
 package InFilesParser;
 
index d08ff125a4fac694e2ee2332a6b4a2efcdbf0f6c..afa02102090bc68333a5e0a9109bb4e54a84ef7b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # Copyright (C) 2016 Sony Interactive Entertainment Inc.
 #
index 5e4dc2aaee4cbf141d42c3684ed7887cb8ecac9b..340e11d12ad29004a2581440464400b377fac004 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 #
 # Copyright (C) 2005 Apple Inc.
 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com>
@@ -29,6 +29,7 @@
 # <rdar://problems/4251781&4251785>
 
 use strict;
+use warnings;
 use FindBin;
 use lib '.', $FindBin::Bin;
 
index 0cd5ac13abb1c70523d4f564748d8cf39d1c5324..a19d37b9d0ce8a8f342317a3c1a2c9695c7a0313 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 #
 # Copyright (C) 2011 Google Inc.  All rights reserved.
 #
@@ -19,6 +19,7 @@
 #
 
 use strict;
+use warnings;
 use FindBin;
 use lib $FindBin::Bin;
 
index 2770cf376562fe2aafbf05ada40a90d66ef700c1..ba69b08f2c1548b9ef34f99228004d389832396e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 #
 #  Copyright (C) 2006 Apple Inc.
 #
@@ -21,6 +21,7 @@
 # Usage: make-css-file-arrays.pl <header> <output> <input> ...
 
 use strict;
+use warnings;
 use FindBin;
 use lib "$FindBin::Bin/../bindings/scripts";
 
index f66e179b8a844a4b99e80e760dfa62411f54236d..138385380935d1ba5676ec577216e55b3aa8a550 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/perl
+#! /usr/bin/env perl
 #
 #   This file is part of the WebKit project
 #
index c0b11e498642fda873e8185b431415d79a6fa7c3..b1b144fd11770388ec62f0ca374293f1d6cb6fdb 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/perl
+#! /usr/bin/env perl
 #
 #   This file is part of the WebKit project
 #
index 4f0792249abda35817b998255d6710d4611e790b..065934e15ab9ba3b1bc0ec3394d562924f23667b 100644 (file)
@@ -1,4 +1,4 @@
-#!/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>
@@ -31,6 +31,7 @@
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 use strict;
+use warnings;
 use FindBin;
 use lib "$FindBin::Bin/../bindings/scripts";
 
index af0d33de091d17ec29c88f8491c193e915c63c1a..1b30002ea795a3f13ea723debee002a274145337 100755 (executable)
@@ -1,4 +1,4 @@
-#!/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>
@@ -30,6 +30,7 @@
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 use strict;
+use warnings;
 use FindBin;
 use lib "$FindBin::Bin/../bindings/scripts";
 
index 822d293e8e08a8c8a68fc8d3ac4941a464ce5417..625f2020e025e082b8d8babbdd547a96c80c5e01 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2006, 2007, 2009, 2010, 2013 Apple Inc. All rights reserved.
 #
@@ -43,6 +43,7 @@
 # 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;
index 5f77d2bd6d524bd399a5f7c1f9303d6e57c0e0a7..7b7591df4154c8ae4237aa8310547b5c2850360d 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/perl
+#! /usr/bin/env perl
 #
 #   This file is part of the WebKit project
 #
index 040283330b637771b1e37f535de55866f924d45d..bb47a9ffaf971680427bee506f9a176a855fbf91 100644 (file)
@@ -1,3 +1,20 @@
+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
index 6d2cf4404d70bebb2db25fc8b488f6841c2acb84..612910f561ece45f36423ff7165c4009bdcb55f3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2015 Apple Inc. All rights reserved.
 #
@@ -24,6 +24,7 @@
 # THE POSSIBILITY OF SUCH DAMAGE.
 
 use strict;
+use warnings;
 use Getopt::Long;
 use File::Basename;
 use File::Path;
index 22f9cb60ea376f6937e63cffaec97dc99683300a..b72ecd8bc2976c456f44ba874512b9741a21a1fe 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
 
 # Copyright (C) 2015 Apple Inc. All rights reserved.
 #
index 510719978a7fed5ccb1ba009ed42c925cecf26e5..0b16b6836745b276418c64057889d72b12c37d8c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2015 Apple Inc. All rights reserved.
 #
@@ -23,6 +23,7 @@
 # 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);
index 8a8d25a2cf16aec91233b4ac57145f3a63a1f299..a5a2db663da6376393468c68e6faf6d6308ea534 100755 (executable)
@@ -1,6 +1,7 @@
-#!/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/;
index 3ecff58ce7a218c28c87ff440f13578eac706652..41e07354af4900bad80349ce1b89aa0bfc192b07 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
 
 require "find"
 
index 6d011b8a927c5be301c3d95b0db0539b74369f71..cb20608d6859ab2d044ef4c07337e6e46df83cff 100755 (executable)
@@ -1,6 +1,7 @@
-#!/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/;
index 21d306e2c488f8b06840826a4767116c079371a9..94c36432cb6c21dd26e49dab45ee711a52da654b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
 
 require 'fileutils'
 require 'tmpdir'
index 995f184efc908210a16ec3232b1108f7abc2e670..baab8be70c8e3d52f0a8606c57ff41eed3eba5e3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
 
 require 'fileutils'
 
index 1b421c335501bcbf4263913ccf580828b06376a1..f4a419b8fdf2fd4bc339d253ac355aedc09ee847 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2014, 2015 Apple Inc.  All rights reserved.
 #
@@ -27,6 +27,7 @@
 # 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;
index 0582254d1046c7c06e2c53e691ea62a78375a732..54d6ac1e965b6c592726a51ec6fbcdb3dd05c005 100644 (file)
@@ -1,3 +1,12 @@
+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
index 50d0829dfd6944f1b660fe88dc96a5b0d593f6e9..edc3c03489a671483a4b7f6909dd9ad499611b95 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 # Copyright (C) 2010 Andras Becsi (abecsi@inf.u-szeged.hu), University of Szeged
 # All rights reserved.
 #
@@ -27,6 +27,7 @@
 # and generates forwarding headers for these headers.
 
 use strict;
+use warnings;
 use Cwd qw(abs_path realpath);
 use File::Find;
 use File::Basename;
index 1ab580eb4a01a73d7729813d4432ac2f3ec3ed28..b0e564a5455b31546b478ea467876ca4aa5e2b42 100644 (file)
@@ -1,3 +1,12 @@
+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
index 3321de174b55ac2e0ca735a181b2cdd928d42682..133aa0fca6a4353074a4092f13cd831444eb9930 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Based on make_names.pl
 #
index 0a8e7dca18a80ac67cd11e4ab5a47cf1f827e407..c27b3b2c649ba1a27f02392ceaae5b0f681b2809 100755 (executable)
@@ -1,6 +1,7 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 use strict;
+use warnings;
 use File::Path qw(make_path);
 use File::Spec;
 use File::Basename;
index 71c0b565f5b5e3e1b07dc18fd542928d039e011d..29a39bdd22398bacd63942335523dd05c6ad8406 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2013-2014 Apple Inc. All rights reserved.
 #
@@ -23,6 +23,7 @@
 # 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';
index b0627f0043b664fd56493497f212da5a8471fad3..888a4502e2ebf4187151069e6b38cba92cb64ffb 100644 (file)
@@ -1,6 +1,7 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 use strict;
+use warnings;
 use Cwd 'abs_path';
 use File::Basename;
 use File::Spec;
index 25d25ea42439df56e3bde2358bf5e5d70973bb08..2c941c6da7144c51b418499ac9b79a3c21c55d08 100755 (executable)
@@ -1,4 +1,4 @@
-#!/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.
@@ -30,6 +30,7 @@
 # Creates the launcher WebKit.app with bundled frameworks.
 
 use strict;
+use warnings;
 
 use FindBin;
 use lib "$FindBin::Bin/../Scripts";
index 64fcee78e330a99dd1fd4a7ee9e6b1e2aabfa9b7..234beab9c9980404504ae65908d5345c7651036e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/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.
@@ -30,6 +30,7 @@
 # Script used by build slaves to create a disk-image containing WebKit.app.
 
 use strict;
+use warnings;
 
 use File::Basename;
 use Getopt::Long;
index dd5fd6fbd134887af80b239579a79fc04bead9b2..f0dad6537584fec50cd8dd9e83e2d079d4d171ad 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/env python
 
 import sys
 import os
index d62a79d2d358b482dd67e30774359dff7dfb044b..ec3b616df964adf5fb269bf69286943fb89aee9d 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 # Copyright (C) 2009, 2015 Apple Inc.  All rights reserved.
 # Copyright (C) 2012 Google Inc. All rights reserved.
index 2ca1df1eadb5d093e5a26deeb3b3f3bd4f10fb18..fd5c7f97e9295c665bb64828578939c8e291477b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 # Copyright (C) 2013, 2015 Apple Inc.  All rights reserved.
 # Copyright (C) 2012 Google Inc. All rights reserved.
 #
index bb31c0f1d12eda02a021f27872d9ba109a26d711..3745c681c38446f6592af52eeb8c9e094cb9441d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 # Copyright (C) 2013, 2015 Apple Inc.  All rights reserved.
 # Copyright (C) 2012 Google Inc. All rights reserved.
 #
index 4be30a11a18c3352da49b080668adb093ee90632..8bb68ea613c81d73fee0f76b73eff8f97a339722 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 #
 # Copyright (C) 2009 Apple Inc.  All rights reserved.
 # Copyright (C) 2012 Google Inc. All rights reserved.
index cc2c87e20f27292d4187f5cb40bb95d88b69e36b..f6c744c6dda45cbe2b5d0fa8c4f25bab51f6a4dd 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#! /usr/bin/env bash
 #
 # Copyright (C) 2010 Igalia S.L. All rights reserved.
 #
index b26fe58881e9e053486ef640e4ce4cd961ad0aa3..166c383ea8e6c10fcc05ef07ed4f4889bbbb9eaa 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#! /usr/bin/env bash
 #
 # Copyright (C) 2010 Igalia S.L. All rights reserved.
 #
index 37ba0de08a7ba5cdb20d18c7a980362fac29c817..7c117ad9d207398d86f02738e5931895917d5678 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#! /usr/bin/env bash
 #
 # Copyright (C) 2010 Igalia S.L. All rights reserved.
 #
index 0f81c16111a5e152cc7c85abc623beaf270fcea9..d8effaecb0df97ddee5777c94fda048c6ccbba35 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 # Copyright (C) 2010 Apple Inc.  All rights reserved.
 # Copyright (C) 2011 Google Inc.  All rights reserved.
 #
index 6857d374c98af2cb2de9d4c29f5ba487a5f68854..c1ae70933f406873bc2176e441b507ce95394740 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 # Copyright (C) 2009, 2015 Apple Inc.  All rights reserved.
 #
index d04b990cffdac9af5066511dfc6f6f3357582a83..23da668af72868347abe90f6bf51445d3ae27b65 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python\r
+#!/usr/bin/env python\r
 \r
 # Copyright (C) 2010 Apple Inc.  All rights reserved.\r
 #\r
index 53f9bab9ea613f90f7d84a71c245d297361cff5a..19c9a18d4e242d12310125ee6d88e9dbefc75291 100644 (file)
@@ -1,3 +1,159 @@
+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
index 7b023a94a07d6c2cb64a3277c6e26e0315270bbf..36622a715c601f646c73856042c30789045193be 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2006 Apple Inc.  All rights reserved.
 #
@@ -29,6 +29,8 @@
 # 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);
index d0525eb85584ad94562611438dc73adb7b2dbe25..d1256b6fa16ba3082d36b4188df03942a8dae479 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright 2009 Apple Inc. All rights reserved.
 #
@@ -26,6 +26,7 @@
 # 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.
 
index 542a24ca3913a9afd0889700a117b85197754b43..b8e16d462839c3dcf4eeb96e034a10afc0b3360d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2010 Apple Inc. All rights reserved.
 #
@@ -24,6 +24,7 @@
 # THE POSSIBILITY OF SUCH DAMAGE.
 
 use strict;
+use warnings;
 use File::Basename;
 use FindBin;
 use Getopt::Long qw(:config pass_through);
index 17dd8208b21fbfeaa84a5134ecb37373ac0278d7..a7a656928104718fb25ba65d853277a759bfa96b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2005-2009, 2013, 2015 Apple Inc. All rights reserved.
 #
@@ -27,6 +27,7 @@
 # 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);
index f0013794c88d948da1c2bf24695a115a8e3d5531..7cb963e76b3c771a7180b4f9ea045253b6d2f400 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2014 Apple Inc. All rights reserved.
 #
@@ -27,6 +27,7 @@
 # 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);
index 396bcacc7a2e3c7d7c731dd07955e68711526cee..27e8b1326c8d5884f2f17dcc6e159b66b6fd88aa 100755 (executable)
@@ -1,4 +1,4 @@
-#!/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>
@@ -29,6 +29,7 @@
 
 
 use strict;
+use warnings;
 use FindBin;
 use Getopt::Long qw(:config pass_through);
 use lib $FindBin::Bin;
index 1e32e1519dae18056980840aec0ee02b99ee056c..3bfed1ee289bde0b7ec736d7865e0af30f82b608 100755 (executable)
@@ -1,4 +1,4 @@
-#!/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.
@@ -33,6 +33,7 @@
 # Build script wrapper for the WebKit Open Source Project.
 
 use strict;
+use warnings;
 use File::Basename;
 use File::Find;
 use File::Spec;
index 9707f64463ad960e84e1716071412d6035cf7cb1..e87c56c53d405930ef4e0bec8ab48c767dcbab52 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2010, 2013 Apple Inc. All rights reserved.
 #
@@ -24,6 +24,7 @@
 # THE POSSIBILITY OF SUCH DAMAGE.
 
 use strict;
+use warnings;
 use File::Basename;
 use FindBin;
 use Getopt::Long qw(:config pass_through);
index 57a70b928ecba7d70d98e5fba81ae6bd2f44ee8d..d3a6854e629ce44de9a265a90adfd64bde6cedc5 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2007, 2008, 2009, 2010 Apple Inc.  All rights reserved.
 #
@@ -32,6 +32,7 @@
 #   take time to check each header using gcc, so make it a switch.)
 
 use strict;
+use warnings;
 
 use File::Basename;
 use File::Spec;
index 47e66f37fb05c992ea53e0b9414331da1788abf3..8d7449ebfd4a5ce4cabc0963ed18ab63391becec 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2005 Apple Inc.  All rights reserved.
 #
@@ -29,6 +29,7 @@
 # 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;
index b95aec0364af8e4a013a308d36380291b4b75eba..d869d1bf31800133105a837d8f0843c20e32e422 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright (C) 2006-2008, 2016 Apple Inc. All rights reserved.
 #
index 28b777241cac77af110fa0a25937f1d866d25f65..dca3491c19cf68fb9306e7f86dbc9df2e1007c47 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
 #
index 2d11dbe8845531b5f77de8b018a4ea1d0cdcd9db..ea66f300e7ffa945e0aafcff59232beffe0e4344 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright (C) 2006, 2007, 2008, 2010, 2011 Apple Inc. All rights reserved.
 #
index 02fb2bb44b1bcc9a80679845bf784fbe62c79ee3..80d4dbe15f882134824986238c43bb9b17ae705d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright (C) 2006-2008, 2010, 2013, 2015 Apple Inc. All rights reserved.
 #
index 2bad046edf27b3097fe416eadccf9712d4d031bb..d2904bc59cbbd2cc37c92ce14adb99257685fe07 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
 
 require 'find'
 require 'optparse'
index f797cd33efcea9679d33b305efdaa2d986bd96ba..7acf5e512f205075d6b8bc5ce33351ad7eb564f1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright (C) 2006 Apple Inc.  All rights reserved.
 #
index d2b90e40a177594be1dad9ec458026bbfd4af2e5..14acdaaff1847925172dd5dfcf68572c411bbcd7 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2014, 2015 Apple Inc. All rights reserved.
 #
index 7ae153b0298a31477892c97260f8d379eaf0b248..fea32a69e2c34ee4a34d0da3c2c2155fbc8541b6 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2005-2017 Apple Inc. All rights reserved.
 #
@@ -24,6 +24,7 @@
 # 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);
index c645d55eb2f2a78bcf35b904a3a09a66d0d2440e..24a4b9050888c564e191001d9874aa89c8ffe287 100755 (executable)
@@ -1,4 +1,6 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
+
+use warnings;
 
 while (<>) {
     print "$1\n" if /^\s*\"(.+)\", referenced from:$/;
index 0212ab8ae7224bccdd4838b0f9bef32cd717cbd4..e174b30a84793d6c9c3ea3c0f5f065306365f4eb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2005, 2007 Apple Inc. All rights reserved.
 #
@@ -29,6 +29,7 @@
 # Simplified "debug" script for debugging the WebKit2 MiniBrowser.
 
 use strict;
+use warnings;
 use FindBin;
 use lib $FindBin::Bin;
 use webkitdirs;
index 44a8bc830685fb6d41ea10676716487b75636e49..bf2baf09a9cd3d31ce777a63ad64da226c3ac80c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2007 Apple Inc. All rights reserved.
 #
@@ -29,6 +29,7 @@
 # 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;
index d78a24cbeb8255feca940d5d6fb6872769dc2c12..731fed86fbea3f4b4e3896c00f2283e5c4947c1a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2010 Apple Inc. All rights reserved.
 #
@@ -26,6 +26,7 @@
 # Simplified "debug" script for debugging the WebKitTestRunner.
 
 use strict;
+use warnings;
 use FindBin;
 use lib $FindBin::Bin;
 use webkitdirs;
index 05377f0cf12883928d4732984319feefe893ea41..6fc5d345dbc1b3a0933292f9fbcf89f47b76a8b5 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
 #
@@ -29,6 +29,7 @@
 # Script to do file renaming.
 
 use strict;
+use warnings;
 use File::Find;
 use FindBin;
 use lib $FindBin::Bin;
index 33637b7d13ac17973ab834068157439edcc9d2d6..7b7ed396be2206c8fb4f1cff6c69e8dc03725c38 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
 #
@@ -29,6 +29,7 @@
 # Script to do a rename in JavaScriptCore, WebCore, and WebKit.
 
 use strict;
+use warnings;
 
 use File::Find;
 use FindBin;
index d2339dcca8c14e5981849e8b6be7e6c84aa0e298..b9aa181cd6c3d16b81e5693ba99f41d1e3101f84 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 import json
 import optparse
 import os
index 7f0ca90d80dbc6fee39ea7046e4c80089980843e..99ea1e4dccf85d81d38e70a7c20748b738aaba95 100755 (executable)
@@ -1,4 +1,4 @@
-#!/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
@@ -26,6 +26,7 @@
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 use strict;
+use warnings;
 
 use FindBin;
 use Getopt::Long;
index d185e2f62a469aeca80870b0bd1da0509c3c6067..3de6344f3970b67ff5bef702e5dcf6eb987f5c21 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright (C) 2009 Google Inc. All rights reserved.
 #
index 68c5839d445ffc33635b18b760c4b1c9e5b0fd92..b4200f6ef421f4bb94f9ad89f2d450fb82686984 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2013 Apple Inc. All rights reserved.
 #
@@ -24,6 +24,7 @@
 # THE POSSIBILITY OF SUCH DAMAGE.
 
 use strict;
+use warnings;
 use Getopt::Long;
 
 my $utf8 = 0;
index d0abed9a5aa544b706a4bd1f03886b85d897bda2..54fefeb7c7a81aeb0e98307dab8cb153eef66846 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2011, 2012, 2013, 2014 Apple Inc. All rights reserved.
 # 
index 379b10ef752a4eaa03c26ab27efc5e79367abaaf..f4a438a210a33036095588677bb3b9b941634517 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2005 Apple Inc.  All rights reserved.
 #
@@ -29,6 +29,7 @@
 # "find-extra-includes" script for WebKit Open Source Project
 
 use strict;
+use warnings;
 use File::Find;
 
 find(\&wanted, @ARGV ? @ARGV : ".");
index 3733ad1157f7d0e7b2c0ee01e62eba2ca83e4bb5..5b13b0f2239ba082b3a0fcd02968b921ede173cb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2014 Apple Inc. All rights reserved.
 #
index 3eab6ef44303ed6a7fc9d17422a3a94f1d1944a3..659a4ce9bf3ac15262f80ebbe26e42928a8f0387 100755 (executable)
@@ -1,4 +1,4 @@
-#!/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.
@@ -30,6 +30,7 @@
 # Script to build, run and visualize coverage information
 
 use strict;
+use warnings;
 use File::Basename;
 use File::Spec;
 use FindBin;
index 8cfc9f211e3b054308f86bb2556be80240265ef3..099be846c9f37a4f23a53960d78a7727390e6a81 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 #
 # Copyright (C) 2011 Apple Inc. All rights reserved.
 #
index 71da81cd7e6c68e9cd2d11cf95f90fbd41d774f9..4f30e8ccfd1d1635a45afaac1b67a20d5e6ffd0a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright (C) 2014 Apple Inc. All rights reserved.
 #
index ea36aa1407b10a4b55469fc6f812e323d2ff8d3e..19fa7e8e2ed1003823045431ac7e7cd77903edaa 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright (C) 2014, 2015 Apple Inc. All rights reserved.
 #
index bf66512c561a8665030bee3b1dee12d2e9ce002d..711fe03202bd3d6dc8844fe393558963808bd55b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright (C) 2014-2015 Apple Inc. All rights reserved.
 #
index 6c76aefbc3dc1eac428957ea28c2e748aa45699b..ea837ed5c8de20e06bc53593d93ace87f5ebd898 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2011 Apple Inc. All rights reserved.
 #
@@ -26,6 +26,7 @@
 # Script to create a new HTML file using js-test machinery.
 
 use strict;
+use warnings;
 
 use FindBin;
 use lib $FindBin::Bin;
index 49aa6910d05a3ae63725aebcf22d7dc3137fa875..53d90744069f9e6f7585adf38713a68b529a9820 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
 #
@@ -29,6 +29,7 @@
 # Script to generate HTML wrappers for JavaScript tests from templates
 
 use strict;
+use warnings;
 
 use FindBin;
 use lib $FindBin::Bin;
index 7be93a9a2fa5810d2a20faeca328fb91f0f8ba32..1d9e63f1ad1802faa451bb81f631dd54b8e4ebc7 100755 (executable)
@@ -1,4 +1,4 @@
-#!/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
@@ -22,6 +22,7 @@
 # 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 /;
index 043fd602348e89f322eefd3daf91a6274d160c9b..d93688cbb68306a74009bbaffe1a002f914eb93a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright (C) 2007 Apple Inc. All rights reserved.
 #
index 1eb0cae060f443f2ee5673e378ba92f1c94d4517..7e998de6cfc273c93bd971658e813f3fdc5cd139 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2005, 2006 Apple Inc.  All rights reserved.
 #
@@ -29,6 +29,7 @@
 # "report-include-statistics" script for WebKit Open Source Project
 
 use strict;
+use warnings;
 use File::Find;
 
 find(\&wanted, @ARGV ? @ARGV : ".");
index 65ae5e04a51ce44fc61d27e17206e27a0042aa9f..87517322a7f9c7077a93fd1754af9dd767efd6ce 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2007, 2008, 2009 Apple Inc.  All rights reserved.
 #
@@ -29,6 +29,7 @@
 # Merge and resolve ChangeLog conflicts for svn and git repositories
 
 use strict;
+use warnings;
 
 use FindBin;
 use lib $FindBin::Bin;
index ec101fdbbf71ee7c500759ae6e32d5e819040b21..cf0b92cbf11d3660ade8a293ee2ecf43d767b01e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2010-2012, 2014-2015 Apple Inc. All rights reserved.
 #
index c08b63cfbfb47a3b6c2d24714fb5edaba67dd4be..f6e4477250f9e19e3958efcb7d6e81e2ac28c9ab 100755 (executable)
@@ -1,4 +1,4 @@
-#!/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
index efb6112c1596fedb6667a8a401c3791b1c99b940..e2711ab55c157d54412dacceaef56da098ed2dc1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2015 Apple Inc. All rights reserved.
 #
@@ -24,6 +24,7 @@
 # THE POSSIBILITY OF SUCH DAMAGE.
 
 use strict;
+use warnings;
 use FindBin;
 use lib $FindBin::Bin;
 use webkitdirs;
index cb3427cb42d6d29c6fe3fb289807b3051a574bea..bccf5e543a502076bdfbfcf04ec36ed54abe3c6b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com)
 #
index 918ab450465354cc34fa1eb062e74e3583f503c5..c5ba1c1ca9134b451e743d93453e86b6e9185276 100755 (executable)
@@ -1,4 +1,4 @@
-#!/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>
@@ -31,6 +31,7 @@
 # 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);
index 3a054b4318ad7c71c29a829451bcac337d585a25..69aff13fc3d0a07e894faf910fe6f6b92c3ae55a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright (C) 2006 Apple Inc.  All rights reserved.
 #
index 6ea82ea1dd727a83b92ddbe55526755f085e4fe6..af4b0233ccdb9c13809876ebe8b52423a7791740 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright (C) 2007 Apple Inc. All rights reserved.
 #
index 4df78318764a851decc057914f191e28104429cf..0fceaf704aeb61cfd3aed2e048322510164e3721 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com)
 #
index 4051372f5a34cb264e0c335ea7d4fb8432d3449f..13c6ea7669fbe0c61edc62a5257667a28f81f0a3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/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>
index 631c22b97ce56c53216222543459757d4ffab0d1..b19a2b7963a0714d608a9fe8fd3f6a7a3a1f93c2 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright (C) 2006 Eric Seidel (eric@webkit.org)
 # Copyright (C) 2014 Apple Inc. All rights reserved.
index dea54f2c3afc135971d1cd2bf88bf96ee74ef897..376d729bdf63986ec33680e1e74144a4ee51f2f9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2011 Apple Inc.  All rights reserved.
 #
@@ -29,6 +29,7 @@
 # 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;
index 51d1bd12cd3abc66cf1de58ef2a2e7058a2d9b45..9549a20dc20fc633f845a09754f72b19eb963826 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2005, 2007 Apple Inc. All rights reserved.
 #
@@ -29,6 +29,7 @@
 # Simplified "run" script for WebKit Open Source Project.
 
 use strict;
+use warnings;
 use FindBin;
 use lib $FindBin::Bin;
 use webkitdirs;
index 79b6228b90a83b2f83dcb20e96bc3093e865c6ae..4326fa50ac2b93d2987669ffc498e51492d7ab05 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2007 Apple Inc. All rights reserved.
 # Copyright (C) 2007 Eric Seidel <eric@webkit.org>
@@ -25,6 +25,7 @@
 # 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;
index b474eb593adbb77bc77bb230a5d0301041187045..259037c8e29367f89f8ae938afb5a4c747d25bde 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2010 Apple Inc. All rights reserved.
 #
@@ -26,6 +26,7 @@
 # Simplified "run" script for launching the WebKit2 WebKitTestRunner.
 
 use strict;
+use warnings;
 use FindBin;
 use lib $FindBin::Bin;
 use webkitdirs;
index f275b9bdcdbd67aca682164585f5ae95dbb122f7..7704d7c7b833dd2a304fd227736a4df8a9c25190 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2005 Apple Inc.  All rights reserved.
 #
@@ -29,6 +29,7 @@
 # Simplified "run" script for WebKit Open Source Project.
 
 use strict;
+use warnings;
 use FindBin;
 use lib $FindBin::Bin;
 use webkitdirs;
index 4c53d5e321f066fe82f33f234ee230886a85743d..7b148d36ac547a65f1f848778b75a90743bc8d63 100755 (executable)
@@ -1,4 +1,4 @@
-#!/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)
index d030951726791c4569b45b901ccb14af8fc8f8f2..66767ad3893dfc996abc7f99a500529489b22b09 100755 (executable)
@@ -1,4 +1,4 @@
-#!/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
index dc8358e815e3f19a2215af8f44b0cab964aa1e69..c484fb80db976136fa2a969de05fbce8d963c4b6 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2005 Apple Inc.  All rights reserved.
 #
@@ -27,6 +27,7 @@
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 use strict;
+use warnings;
 use FindBin;
 use lib $FindBin::Bin;
 use webkitdirs;
index 49b39da0ea73b4477a1a68dbf170a29722a1cfea..0aaa7c591fe43dc81e6650701b195c43b3f17440 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2011 Apple Inc. All rights reserved.
 #
@@ -24,6 +24,7 @@
 # THE POSSIBILITY OF SUCH DAMAGE.
 
 use strict;
+use warnings;
 use FindBin;
 use File::Temp qw(tempfile);
 use lib $FindBin::Bin;
index e6234f447ac41b066debeea00c5462fb772e4cde..fce21279dc90203f6b90686b752afeaea4fe86f0 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2007, 2008, 2009, 2010 Apple Inc.  All rights reserved.
 #
@@ -29,6 +29,7 @@
 # Script to sort "children" and "files" sections in Xcode project.pbxproj files
 
 use strict;
+use warnings;
 
 use File::Basename;
 use File::Spec;
index edfabcc8b4a0db5b199172af6e2cfa6a9dae0cfb..045b404e80865b44ec7c2eefce406f23d1a1c0c8 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2006 Apple Inc.  All rights reserved.
 #
@@ -30,6 +30,7 @@
 # Usage: split-class <header file>
 
 use strict;
+use warnings;
 use File::Copy;
 use FindBin;
 use lib $FindBin::Bin;
index 9273714132e49ef8410b681b5d52a3f41ce59758..5f79ccbf486cfd1281d3fb1046aece2936cc446b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2007 Apple Inc. All rights reserved.
 # Copyright (C) 2007 Eric Seidel <eric@webkit.org>
@@ -25,6 +25,7 @@
 # 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);
index df91297a9cbc243a71698c67f85b6146096a1f1e..c3c972f56178fae92b68742370e79d4a5b24b3ed 100755 (executable)
@@ -1,4 +1,4 @@
-#!/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>
index 41c39a02b9f7eb8f121cc71f05c859786458da32..36df8892b3bc1b363c9f5f38da67b4947a77762e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/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>
index d0e54e97fb96cc517460f801aa6f9b44ff778ddc..8f62377f1581e46dbc60ee093e536f2d4709ed5d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 #
 # Copyright (C) 2009, 2010 Chris Jerdonek (chris.jerdonek@gmail.com)
 #
index 6faa47ca27ec7192ddf83e093e00b9bd711502f6..64956960ffc67ae7df93364136d91a5d88ea9943 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # Copyright (C) 2009 Chris Jerdonek (chris.jerdonek@gmail.com)
 #
index 65e559f0215fffe626066447537cea34903a0905..e12563f9ad52f883322b1cf3c07f1eae931bba94 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 # Copyright (C) 2007 Apple Inc.  All rights reserved.
 # Copyright (C) 2010 Holger Hans Peter Freyther
index ab7a96cd0fad9354bffdc30ba321046baf5718b6..b9d16bee4b93cfaa7f6817e6ea19fbad695b7158 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2005, 2007 Apple Inc. All rights reserved.
 #
@@ -27,6 +27,7 @@
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 use strict;
+use warnings;
 use FindBin;
 use Getopt::Long;
 use lib $FindBin::Bin;
index 9024331c6db2349b95e3e794d28cf93f5953ec84..ac5b3d761376e4f00128d0944decf1dd4dde4d8d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/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.
@@ -31,6 +31,7 @@
 # Update script for WebKit Open Source Project.
 
 use strict;
+use warnings;
 use FindBin;
 use lib $FindBin::Bin;
 use File::Basename;
index 537b4bdc78a8d955b740d63d40afd3cbc9355b93..f71eab673df8153a446a9a2d22bf385f2a08074c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2005, 2006, 2007 Apple Inc.  All rights reserved.
 #
index e366daf284bfa073d591962b4dfb344383588cd4..c2b0e9d00fea9a843022222194b7953dd0f00601 100755 (executable)
@@ -1,4 +1,4 @@
-#!/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.
index 716819918f8f6a3062778475baaaee0fef95ba8c..075917ace30e39682a750076e7352634e899f6da 100755 (executable)
@@ -1,4 +1,4 @@
-#!/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).
@@ -18,6 +18,7 @@
 # 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;
index 8b6a2c5279bfbf9efdc92532f22791faf30e14f9..ab6a3f1d13bf7891543558a902db1e4d7c3d677c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2006, 2007, 2013 Apple Inc.  All rights reserved.
 #
index 0fe528bd2634d800de0056c2032277387719049e..6ad8be34269f7b98254eecb29a77d13a6071038e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/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.
index 792cc28abcb4691db61c459f296565ba60e480cf..2e1c02ffd70560080e36bc74b4658ffef5decd8e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 # Copyright (C) 2011 Igalia S.L.
 # Copyright (C) 2012 Intel Corporation
 #
@@ -16,6 +16,7 @@
 # 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;
index b23fbde6b831ef0008080e821605725b085791f8..6b4b46f2b7eb8a9e6807757bca2b9e684707a023 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 # Copyright (C) 2011 Igalia S.L.
 # Copyright (C) 2012 Intel Corporation
 #
@@ -16,6 +16,7 @@
 # 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;
index 5b457426d5c7b15a7285211e026610002902b79f..7934575df3aff8c3c63a7557a94fa9027b4cfe28 100755 (executable)
@@ -1,4 +1,4 @@
-#!/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.
@@ -29,6 +29,7 @@
 
 # A script to expose WebKit's build directory detection logic to non-perl scripts.
 
+use warnings;
 use FindBin;
 use Getopt::Long;
 
index 5c78c0e568935519bc8b3db53f6638275fd77e9a..954ee8bd835195fa1845ee3911daa800c4983ae5 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 #
 # Copyright (C) 2011 Apple Inc. All rights reserved.
 # Copyright (C) 2011 Google Inc. All rights reserved.
index ab844939974f90704b1148547757a53940d6ad73..41802da30b98c42f17df262a13eebd9dd80d9b61 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 #
 # Copyright (C) 2015 Apple Inc.  All rights reserved.
 #
index 261592d8e4790677f493553f0856f23d5ef949f4..738dd5116c64343917f82671ea5ab7fb6aea7361 100644 (file)
@@ -1,4 +1,4 @@
-#!/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.
index bbf7df3da02d7018cbea1b564f00e49007081f30..8fbef536397a98d3b70e4edfc29cbc517fe69df8 100644 (file)
@@ -1,4 +1,4 @@
-#!/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.
index ca915572977cbd16a90d73489695ef0c64798183..616aaca00a75a28a69b11d362d9c05f3c42626db 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # Copyright (C) 2017 Apple Inc.  All rights reserved.
 #
index 483a0a8ed01d4c8e72980dce0fa18f55f7b44d80..436ec230e94a4eb6a0783881ec48ac8522a7d036 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # Copyright (C) 2009, 2010 Chris Jerdonek (chris.jerdonek@gmail.com)
 #
index 0c8c89c7a6b7473e614a1dc0a61cf8e05e2cd13f..2489dfb69d699990959f9241a3fe2a3e5aedbbca 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # Copyright (C) 2010 Apple Inc. All rights reserved.
 #
index cdae448d2ada02573024c56e07e535af07cd4499..95b9f9fc5ca716141e6474f55754b01714667776 100644 (file)
@@ -1,4 +1,4 @@
-#!/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)
index 5b30fcbb8942530a54ef65768bf0470b116051a0..077e44ac99e50b793bb02e1cb48d39de3a923f33 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 #
 # Copyright (C) 2010 Chris Jerdonek (chris.jerdonek@gmail.com)
 #
index c23e000b33f1c121b7cd1c97b0fd5fed6bf5fcbe..f66551fccf9a8ccd175691fd148b039ec1c23ddf 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 #
 # Copyright (C) 2010 Chris Jerdonek (chris.jerdonek@gmail.com)
 #
index aba39196e22e6c7cabdfe4181d5adfa040cfe4da..2cb4d07041e5b9940024feea7c72ce47afd3ab83 100644 (file)
@@ -1,4 +1,4 @@
-#!/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.
index 367ad1d4996ee8a6384a6818f754f2f604b94064..6208783b6edeac3a607b0f1c04d86202e02aa46d 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 #
 # Copyright (C) 2011 Research In Motion Limited. All rights reserved.
 #
index 841e28387498d0465bc99b402d0bc32360d8721f..6f4d4c639776817fe1495871392e975b3c9f7b66 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 #
 # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org)
 #
index 8aae3d4bb4525a2eb4a7593c067cb5b59fd7c1df..20e07103b1bfccecfd12aa7b5cb61dce367ab2ba 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 #
 # Copyright (C) 2010 Chris Jerdonek (chris.jerdonek@gmail.com)
 #
index 3237a39b061715b1fe49d4b80820bbc68ff32f27..283e1009e58ebc2442bd4c5bea53cef2481d6677 100644 (file)
@@ -1,4 +1,4 @@
-#!/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)
index ca1819e6965baabc02a2eabbea54cb2ed2e93258..5fc901e5b27f7cb027356c5e823684b5a1021287 100644 (file)
@@ -1,4 +1,4 @@
-#!/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)
index 267375bd00362ca99138325d08da06a577f828a5..50f5fdb2632f80fa6de017c67024bc43f06658e8 100644 (file)
@@ -1,4 +1,4 @@
-#!/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)
index 469ce53ba2002e5f2bf13c3394cb8eb4c8ff689b..4ba216ef28db7ed3249d5223388c0d710fe39bed 100644 (file)
@@ -1,4 +1,4 @@
-#!/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)
index c2322d2cfae9f90cef6b274474a4087634d164ed..1549d2ef46caa0182c7502d25c000ceba2e204e2 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 #
 # Copyright (C) 2015 Apple Inc.  All rights reserved.
 #
index a7ae807759c07d5d3d0493ab874b6f315d19b403..fbb2bcc95ea63e29a80872617aaed46a886eb78e 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 #
 # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org)
 #
index 688021438d0a13ea28ee593ca41bb6fa542d56c6..5969aa02364e14b102ec8859cd5c53d1909a8322 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # Copyright (C) Research In Motion Limited 2010. All rights reserved.
 #
index 45140746df15f2bec147f73980153b3ba3c90acd..2ef8f10594f34729ada11b56fb75b5cb2e74a8ae 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 #
 # Copyright (C) 2012 Daniel Bates (dbates@intudata.com). All rights reserved.
 #
index 5acc517d7fdb0e44196a0a5f018c6c725731b669..dfc7e3e330f76e2e4e6d2d0f982c38d8d9222749 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # Copyright (C) 2009, 2010 Chris Jerdonek (chris.jerdonek@gmail.com)
 #
index 076d88c7f5bd9f08a6010fb8c847cfb0156ed11c..3f68e1a54da770a766670b1cf1a46e9c8c1c7e46 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 #
 # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org)
 #
index 0b3ad94ee081ffa5508dfc8e37f06d1e8c66404a..96e99ef1a6d8e537744e7131e1b9745624364b98 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2014 Apple Inc. All rights reserved.
 #
index 1e332db8724ce0f5e307217f3c461bb8499eb3b9..0ed983779d35031d1c9adb90d201a998af71322f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2014 Apple Inc. All rights reserved.
 #
index e50cbcdc97f8b8de4029a6e52e09e94e4dc42e96..c38303ccbce550d438e05f2ca6bfd513ffe859a0 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 #
 # Copyright (C) 2013 Apple Inc. All rights reserved.
 #
index 5a9a2d9ad5c54f961d215f12999df246432ccfe0..a792e3b21969fb11de2334bed524e4fdcbe888d6 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 #
 # Copyright (C) 2015 Apple Inc. All rights reserved.
 #
index a15d8174b40449767e71ee790d4d85a7d183a2fc..6f875116560f6c82a3eaeabe714053b90e08e958 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 #
 # Copyright (C) 2016 Apple Inc. All rights reserved.
 #
index 080f92a0b624f89ed8dad76bb405c85ee5370aa9..5e55937253c42543255a51cb3fc07a251464cbed 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # Copyright (C) 2016 Apple Inc. All rights reserved.
 #
index dcd827de16049381fa887d04de433979fe6de266..02663de3c73ba4fb116ca77b738dbc1eade8f602 100644 (file)
@@ -1,4 +1,4 @@
-#!/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.
index ed869f3d2dc813da4c380e7158de5526a37ef559..7c5b138da2ce43d406773780d84184707c4fe2ca 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 #
 # Copyright (C) 2011 Google Inc.  All rights reserved.
 #
@@ -18,6 +18,8 @@
 # Boston, MA 02110-1301, USA.
 #
 
+use warnings;
+
 sub func1
 {
 }
index 27c1c7f62f5ef2038428b7980668c43590b4e8c6..3f3f5e83d1c70d32a9437fdbadcc3849a60e3bb1 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2011 Apple Inc. All rights reserved.
 #
index 9877c0d8f81359ab64936952dd541fc751e340d8..06bc58d0e09c31a90dc991f89127bf1d4f8d8776 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2011 Apple Inc. All rights reserved.
 #
index 035cde8231fa58c0c709ae98a28739677496e57c..66f9ad35631e170299444a6c79bcf98d8cf5ceec 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2011 Apple Inc. All rights reserved.
 #
index bbb412bf05d3942bd5ecae7629e182cfe4ac274b..668143301011fdc9e0af8f50ed535b679549d9ce 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2015 Apple Inc. All rights reserved.
 #
index 356a00cc2ca070bc5ff309183f81293411998230..1033b4707845aec2a88006499cce3e7ad9197068 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 #
 # Copyright (C) 2013 Nokia Corporation and/or its subsidiary(-ies).
 #
index e9c09a3ea2bc5d84853e637a02ad102a8e02bcaf..3575f21cdb473cd4386ed03c8a0cca9aab7772a2 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2017 Apple Inc. All rights reserved.
 #
index d1cfa7362f2b8cc25e7ecf6e6007edb326ca1fc2..c4e11b60d8af1b39c966b3f01d700ec160ad8ab4 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # Copyright (C) 2015 Apple Inc. All rights reserved.
 #
index 4e7e945f3ba01605acd46c8939398c2c4fdb901d..66d4e15bd74e594ea35178bc04601a867ea3dd47 100755 (executable)
@@ -1,4 +1,4 @@
-#!/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)
index 018063ab26a82da931afefdedf6d0f114a8071e9..3838af2a4af87a5c0a176127c77ba3aee231b65b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Copyright (C) 2017 Apple Inc. All rights reserved.
 #
index e315185133858cec29a1bef8cef152bb02f4de26..2e9561714616e7bbb1a382f4dfc1df2ab375aa94 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Copyright (C) 2017 Apple Inc. All rights reserved.
 #
index 72b2137bbda13d6dbc80f6214cc49f755eeb9856..ffd2de6d3c37e2fa20aee4f8738c4dafa734dece 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Copyright (C) 2017 Apple Inc. All rights reserved.
 #
index 9ec007894d53317fefed188a1c0654e0f27c405c..944e57abc6cea20e9fedb3321ae54d97f8cd8446 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # This script needs to be run with root rights.
 if [ $UID -ne 0 ]; then
index 89e099cc5fb5ef23308ef6453ae4ea6ce90a0cd4..a6db820527d2de05506b5a4302a26aad0ad9c924 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
 # iExploder - Generates bad HTML files to perform QA for web browsers.
 # Developed for the Mozilla Foundation.
 #####################
index 5176172425280d6d9a29d7c11e97c92fea43fef8..dd13bab8d4db99fb6ed1bf5fd387478b1bc62a25 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
 # iExploder - Generates bad HTML files to perform QA for web browsers.
 # Developed for the Mozilla Foundation.
 #####################
index b569deb96fd7e5b257e1a56a6d2d6ad73a406397..da1eff1eb790d7c5e7d9165e43ed4a4c071884e3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
 # lasthit, part of iExploder
 # 
 # Shows statistics about recent agents that have tested with iExploder. 
index 5b62c6ddff516c59c0d3bd744966d97c953e1369..ed77f6a157c4ae36553c18703a6718290886f7d4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/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
 
index af6b10197a82764ed3ca027dad3dbdc8ec1bbd2f..d7eae344cb5268e9e362cfb370e25975dc2c2f8a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
 # showtest.rb - simple CLI interface to grab a testcase
 #####################
 #
index c5bec805f1aad0ccd071404a11eb953dacf61077..a0ad07fe2cc2ccc4f4c44285130185187f3afe03 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
 # iExploder browser Harness  (test a single web browser)
 #
 # Copyright 2010 Thomas Stromberg - All Rights Reserved.
index c1a86c421840c85f072d722222cd9d296d598584..63ccba7b43a64026591730cc342c10af19923a84 100755 (executable)
@@ -1,4 +1,4 @@
-#!/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.
index 7076fef3a440e5a35a14319862ac6fc94f4a9973..14dc974dbb30eccfb75146ac1eb844727e04883b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
 # iExploder Web Server (using webrick)
 #
 # Copyright 2010 Thomas Stromberg - All Rights Reserved.
index d792d1b9989213d20d207bb11e67e54f91b5d400..0e9060f8cbea1fbaf7d2b40fff3106edecf4d47e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
 # Copyright 2010 Thomas Stromberg - All Rights Reserved.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
index d95296d2fe601185d99824bc03df5d1d3049c535..bbee897820f2f224f19578654ff16fa4eaee3bc9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
 # Copyright 2010 Thomas Stromberg - All Rights Reserved.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
index db815b9091b7f8fb295d880545da4842b39112b2..89bddaf6634f105071c8899277827d47d08530b2 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # This script needs to be run with root rights.
 if [ $UID -ne 0 ]; then