haikuwebkit/Source/JavaScriptCore/Scripts
Kimmo Kinnunen adb7a45761 Scripts/generate-derived-sources.sh: line 19: [: binary operator expected while building Source/WebKit
https://bugs.webkit.org/show_bug.cgi?id=228908

Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2021-08-10
Reviewed by Per Arne Vollan.

Source/JavaScriptCore:

* Scripts/generate-derived-sources.sh:
Quote the use of CC so that future copy-paste does not make the same mistake
as this bug.

Source/WebCore:

* Scripts/generate-derived-sources.sh:
Quote the use of CC so that future copy-paste does not make the same mistake
as this bug.

Source/WebKit:

Change variable references in the sh script to quoted "$VAR".
[ -z $VAR ] with VAR="a b" would mean
[ -z a b ].
 -z is unary operator, so the expression b would be in position
where test would expect an operator.
The correct form is [ -z "a b" ].

In general, sh scripts usually refer to variables using quotes.

* Scripts/generate-derived-sources.sh:
Fix a bug where multiple space separated paths in
WEBKITADDITIONS_HEADER_SEARCH_PATHS would cause
test expression to receive arguments after the -z arg.

Quote the use of CC so future copy-paste does not make the same mistake
as this bug.

Tools:

* DumpRenderTree/Scripts/generate-derived-sources.sh:
* WebKitTestRunner/Scripts/generate-derived-sources.sh:
Quote the use of CC so that future copy-paste does not make the same mistake
as this bug.

Canonical link: https://commits.webkit.org/240397@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@280854 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-08-10 17:35:35 +00:00
..
tests/builtins Regenerate builtins generator expectations after optional changes 2021-05-28 18:11:33 +00:00
wkbuiltins Next step toward using std::optional directly instead of through WTF::Optional typedef 2021-05-28 01:26:23 +00:00
UpdateContents.py
check-xcfilelists.sh
cssmin.py
generate-combined-inspector-json.py
generate-derived-sources.sh Scripts/generate-derived-sources.sh: line 19: [: binary operator expected while building Source/WebKit 2021-08-10 17:35:35 +00:00
generate-js-builtins.py
generate-unified-sources.sh Add 10 more unified source cpp files for JSC 2021-07-02 22:40:19 +00:00
inline-and-minify-stylesheets-and-scripts.py
jsmin.py
lazywriter.py
make-js-file-arrays.py REGRESSION(r274607): media controls script is visible in Web Inspector even without the engineering "Show WebKit-internal scripts" enabled 2021-03-31 03:01:11 +00:00
postprocess-asm
postprocess-header-rule
process-entitlements.sh [macOS] Add new entitlement to limit process to a single JIT region 2021-07-14 22:37:18 +00:00
resolve-asm-file-conflicts.rb postprocess-asm/resolve-asm-file-conflicts.rb build failure after upgrading to F34 2021-03-15 17:38:42 +00:00
xxd.pl