From 202bf27aa8b3e06f8ac784997f9cc4df8c216b09 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 3 Jul 2021 21:44:07 +0000 Subject: [PATCH] gtk+3: remove sed -i --- extra/gtk+3/build | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/extra/gtk+3/build b/extra/gtk+3/build index 8317fc8d..a602962d 100755 --- a/extra/gtk+3/build +++ b/extra/gtk+3/build @@ -1,15 +1,18 @@ #!/bin/sh -e -# Remove 'atk-bridge' dependency which removes the 'dbus' dependency. -sed -i 's/ATK_PACKAGES="atk atk-bridge-2.0"/ATK_PACKAGES="atk"/' \ - configure +# Remove configure check for atk-bridge. +sed 's/\(ATK_PACKAGES="atk\) atk-bridge-2.0"/\1"/' configure > _ +mv -f _ configure +chmod +x configure -sed -i '//d;/atk_bridge_adaptor_init/d' \ - gtk/a11y/gtkaccessibility.c +# Remove atk-bridge code. +sed '//d;/atk_bridge_adaptor_init/d' \ + gtk/a11y/gtkaccessibility.c > _ +mv -f _ gtk/a11y/gtkaccessibility.c # Don't build GTK examples/demos/testsuite. -sed -i 's/demos tests testsuite examples//' Makefile.am Makefile.in -sed -i 's/docs m4macros/m4macros/' Makefile.am Makefile.in +sed 's/demos tests testsuite examples//;s/docs \(m4macros\)/\1/' Makefile.in > _ +mv -f _ Makefile.in ./configure \ --prefix=/usr \