aboutsummaryrefslogtreecommitdiff
path: root/xorg
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-05-23 17:20:06 +0300
committerCem Keylan <cem@ckyln.com>2020-05-23 17:20:06 +0300
commit00731de7b4320e6aec0a86db4c448d07529dece4 (patch)
treee71a07be89b7851a267e91fffcc61930f9cb5afd /xorg
parent97e9a80ed3fc696cbe33981bbf096afa905b369c (diff)
downloadrepository-00731de7b4320e6aec0a86db4c448d07529dece4.tar.gz
gtk+3: POSIX sed
Diffstat (limited to 'xorg')
-rwxr-xr-xxorg/gtk+3/build10
1 files changed, 8 insertions, 2 deletions
diff --git a/xorg/gtk+3/build b/xorg/gtk+3/build
index 9db3b285..cce3cd18 100755
--- a/xorg/gtk+3/build
+++ b/xorg/gtk+3/build
@@ -1,10 +1,16 @@
#!/bin/sh -e
+sed_i() {
+ for file; do :; done
+ sed "$@" > _
+ cat _ > "$file"; rm -f _
+}
+
# Remove 'atk-bridge' dependency which removes the 'dbus' dependency.
-sed -i 's/ATK_PACKAGES="atk atk-bridge-2.0"/ATK_PACKAGES="atk"/' \
+sed_i 's/ATK_PACKAGES="atk atk-bridge-2.0"/ATK_PACKAGES="atk"/' \
configure
-sed -i '/<atk-bridge.h>/d;/atk_bridge_adaptor_init/d' \
+sed_i '/<atk-bridge.h>/d;/atk_bridge_adaptor_init/d' \
gtk/a11y/gtkaccessibility.c
./configure \