In past releases of NetHack, there was a myriad of different hints
files for different operating systems, and even different versions
of operating systems.
It made maintenance a chore, because all the variable hints files
had to be updated for a wanted change, or (as typically was the
case), some lesser-used hints files were left behind and became
outdated.
Instead of going down that road again, this renames
sys/unix/hints/netbsd.500
to
sys/unix/hints/bsd.500
Where things need to differ for a different bsd flavour,
the differences can be shrouded in things like
.if ${WHICHBSD} == "NETBSD"
.else
.endif
This change is being done to make maintenance easier, at the
cost of making the resulting Makefiles a little more complex,
but there won't be as many separate Makefile hints to maintain.
This commit is being done instead of merging pull request #1531
which would add a new sys/unix/hints/openbsd.500 file.
Only tested on NetBSD so far. Please let us know if there's
an issue on other bsd's, and we will attempt to fix thos issues.
Closes #1531
Close
23 lines
499 B
Plaintext
23 lines
499 B
Plaintext
#=================================================================
|
|
# NetHack 5.0 include/whichbsd.500 $NHDT-Date: 1597332785 2020/08/13 15:33:05 $ $NHDT-Branch: NetHack-5.0 $
|
|
#
|
|
#
|
|
#
|
|
.ifdef WHICHBSD
|
|
.undef WHICHBSD
|
|
.endif
|
|
|
|
.if ${.MAKE.OS} == "FreeBSD"
|
|
WHICHBSD=FREEBSD
|
|
.elif ${.MAKE.OS} == "OpenBSD"
|
|
WHICHBSD=OPENBSD
|
|
.elif ${.MAKE.OS} == "NetBSD"
|
|
WHICHBSD=NETBSD
|
|
.else
|
|
WHICHBSD=OTHERBSD
|
|
.endif
|
|
|
|
# End of whichbsd.500 -PRE section
|
|
#=================================================================
|
|
|