Browse Source

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

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

6
neetbsd.sh

@ -46,10 +46,8 @@ else
cd /tmp cd /tmp
tar xfv xdiskusage-1.60.tgz # Extract tar xfv xdiskusage-1.60.tgz # Extract
cd xdiskusage-1.60 cd xdiskusage-1.60
ed xdiskusage.C <<'END' # ed(1) replacing 'APPLE' with 'NetBSD' sed -i's/(__APPLE__)/(__NetBSD__)/g' xdiskusage.C <<'END' # sed replacing 'APPLE' with 'NetBSD'
s/defined(__APPLE__)/defined(__NetBSD__)/g # ^ xdiskusage now acts like the FreeBSD version - probably hacky, but it seems functional
wq
END # xdiskusage now acts like the FreeBSD version - probably hacky, but it seems functional
# Configure, compile, install, clean # Configure, compile, install, clean
./configure && make CPPFLAGS=-I/usr/pkg/include -I/usr/X11R7/include && su root -c 'make install clean' ./configure && make CPPFLAGS=-I/usr/pkg/include -I/usr/X11R7/include && su root -c 'make install clean'
# .desktop # .desktop

Loading…
Cancel
Save