commit 403908bf9791479e41821082c2ca3571fbd99d37
parent b003ecc1c826465add25337798f3ea3aa55c2445
Author: aabacchus <ben@bvnf.space>
Date: Sun, 30 Oct 2022 22:59:01 +0000
meta: remove sed -i usage
Diffstat:
4 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/bmake/build b/bmake/build
@@ -1,17 +1,17 @@
#!/bin/sh -e
-sed -i 's/build) op_test/build) /' boot-strap
-sed -i '/op_test$/d' boot-strap
+sed 's/build) op_test/build) /;/op_test$/d' boot-strap >_
+mv _ boot-strap
export CFLAGS="$CFLAGS -static"
export LDFLAGS="$LDFLAGS -static"
-./boot-strap \
+sh ./boot-strap \
--with-default-sys-path=/usr/share/mk \
op=build
INSTALL=install \
-./boot-strap \
+sh ./boot-strap \
--prefix=/usr \
--with-mksrc=/usr/share/mk \
--install-destdir="$1" \
diff --git a/neomutt/build b/neomutt/build
@@ -4,9 +4,10 @@
export CC="clang"
# enable building with netbsd-curses
-sed -i 's/tinfow tinfo/tinfow tinfo terminfo/g;/Unable to find xsltproc/d;
+sed 's/tinfow tinfo/tinfow tinfo terminfo/g;/Unable to find xsltproc/d;
s@xmlcatalog@/bin/true@' \
- auto.def
+ auto.def >_
+mv _ auto.def
./configure \
--prefix=/usr \
diff --git a/nilfs-utils/build b/nilfs-utils/build
@@ -2,8 +2,9 @@
# Make sure the binaries go into /usr/bin
# shellcheck disable=2016
-sed -i 's@root_sbindir=/sbin@root_sbindir=/usr/bin@;
- s@sbindir=${exec_prefix}/sbin@sbindir=${exec_prefix}/bin@' configure
+sed 's@root_sbindir=/sbin@root_sbindir=/usr/bin@;
+ s@sbindir=${exec_prefix}/sbin@sbindir=${exec_prefix}/bin@' configure >_
+mv _ configure; chmod +x configure
./configure \
--prefix=/usr \
diff --git a/snownews/build b/snownews/build
@@ -5,7 +5,8 @@
--disable-nls
# remove gettext make dep by not building other language support
-sed -i '/^include po\/Module.mk$/d' Makefile
+sed '/^include po\/Module.mk$/d' Makefile >_
+mv _ Makefile
# The _XOPEN_SOURCE definition is to workaround a bug in ncurses