From 5840570af6eca0300bfc8140436e2be610c0ee72 Mon Sep 17 00:00:00 2001 From: fiorile Date: Sun, 25 Aug 2024 08:08:14 -0400 Subject: [PATCH] ed -> sed; conciser and those lines were for *GNU* ed --- neetbsd.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/neetbsd.sh b/neetbsd.sh index 7354a23..e6c7641 100644 --- a/neetbsd.sh +++ b/neetbsd.sh @@ -46,10 +46,8 @@ else cd /tmp tar xfv xdiskusage-1.60.tgz # Extract cd xdiskusage-1.60 - ed xdiskusage.C <<'END' # ed(1) replacing 'APPLE' with 'NetBSD' -s/defined(__APPLE__)/defined(__NetBSD__)/g -wq -END # xdiskusage now acts like the FreeBSD version - probably hacky, but it seems functional + sed -i's/(__APPLE__)/(__NetBSD__)/g' xdiskusage.C <<'END' # sed replacing 'APPLE' with 'NetBSD' + # ^ xdiskusage now acts like the FreeBSD version - probably hacky, but it seems functional # Configure, compile, install, clean ./configure && make CPPFLAGS=-I/usr/pkg/include -I/usr/X11R7/include && su root -c 'make install clean' # .desktop