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