Browse Source

ed -> sed; conciser and those lines were for *GNU* ed

master
fiorile 3 months ago
parent
commit
5840570af6
  1. 6
      neetbsd.sh

6
neetbsd.sh

@ -46,10 +46,8 @@ else @@ -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

Loading…
Cancel
Save