diff options
author | Cem Keylan <cem@ckyln.com> | 2020-05-23 17:12:07 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-05-23 17:12:07 +0300 |
commit | 67970d108ad7ac09c04ee3c86b7440bc5ca016bd (patch) | |
tree | 8245a962d42d06079392b8ed675a9f97641f2ed4 /extra | |
parent | a12c1608dbd371f2af95865ee20ef3b9b7ff249c (diff) | |
download | repository-67970d108ad7ac09c04ee3c86b7440bc5ca016bd.tar.gz |
webkit2gtk: POSIX sed
Diffstat (limited to 'extra')
-rwxr-xr-x | extra/webkit2gtk/build | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/extra/webkit2gtk/build b/extra/webkit2gtk/build index 758922a8..5f8a60f7 100755 --- a/extra/webkit2gtk/build +++ b/extra/webkit2gtk/build @@ -1,5 +1,11 @@ #!/bin/sh -e +sed_i() { + for file; do :; done + sed "$@" > _ + cat _ > "$file"; rm -f _ +} + # Enable streaming related options if gstreamer # is installed. kiss l gst-plugins-base && streaming=ON @@ -11,9 +17,9 @@ kiss l openjpeg2 && jpeg=ON patch -p1 < fix-musl.patch # 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 +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 export DESTDIR="$1" |