diff options
author | Cem Keylan <cem@ckyln.com> | 2021-07-24 01:33:23 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2021-07-24 01:33:23 +0300 |
commit | 97ef05a46c5d80b3b9e7c8bd6f63c84bf14df1ab (patch) | |
tree | eac82ed36113946a819cca94558578f4534bcb19 | |
parent | 511c05c648c1701ad4787efcf865849255c447b6 (diff) | |
download | repository-97ef05a46c5d80b3b9e7c8bd6f63c84bf14df1ab.tar.gz |
webkit2gtk: use clsed
-rwxr-xr-x | extra/webkit2gtk/build | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/extra/webkit2gtk/build b/extra/webkit2gtk/build index d00664e3..78e6312a 100755 --- a/extra/webkit2gtk/build +++ b/extra/webkit2gtk/build @@ -1,25 +1,19 @@ #!/bin/sh -e -sed_i() { - for file; do :; done - sed "$@" > _ - cat _ > "$file"; rm -f _ -} - # Remove gettext requirement. -sed_i 's/ngettext/printf/g' Tools/MiniBrowser/gtk/BrowserDownloadsBar.c -sed_i '/po_files \*\.po/d' Source/WebCore/platform/gtk/po/CMakeLists.txt -sed_i '/^GETTEXT_C/d' Source/WebCore/platform/gtk/po/CMakeLists.txt +clsed 's/ngettext/printf/g' Tools/MiniBrowser/gtk/BrowserDownloadsBar.c +clsed '/po_files \*\.po/d' Source/WebCore/platform/gtk/po/CMakeLists.txt +clsed '/^GETTEXT_C/d' Source/WebCore/platform/gtk/po/CMakeLists.txt # Fix clang build. -sed -i '/LC_ALL/d' Source/JavaScriptCore/jsc.cpp -sed -i '/WTFLogAlways/d' Source/JavaScriptCore/jsc.cpp +clsed '/LC_ALL/d' Source/JavaScriptCore/jsc.cpp +clsed '/WTFLogAlways/d' Source/JavaScriptCore/jsc.cpp export DESTDIR="$1" # Webkit's CMake configuration forces color output using clang-specific flags # when using Ninja as the CMAKE_GENERATOR. We should disable them. -sed_i s,-fcolor-diagnostics,, Source/cmake/WebKitCompilerFlags.cmake +clsed s,-fcolor-diagnostics,, Source/cmake/WebKitCompilerFlags.cmake cmake -B build \ -DCMAKE_BUILD_TYPE=Release \ |