aboutsummaryrefslogtreecommitdiff
path: root/extra/webkit2gtk/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-07-24 01:33:23 +0300
committerCem Keylan <cem@ckyln.com>2021-07-24 01:33:23 +0300
commit97ef05a46c5d80b3b9e7c8bd6f63c84bf14df1ab (patch)
treeeac82ed36113946a819cca94558578f4534bcb19 /extra/webkit2gtk/build
parent511c05c648c1701ad4787efcf865849255c447b6 (diff)
downloadrepository-97ef05a46c5d80b3b9e7c8bd6f63c84bf14df1ab.tar.gz
webkit2gtk: use clsed
Diffstat (limited to 'extra/webkit2gtk/build')
-rwxr-xr-xextra/webkit2gtk/build18
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 \