--- doc/nethack.6.orig	2018-04-27 05:07:22.000000000 -0700
+++ doc/nethack.6	2019-03-12 14:51:23.925413000 -0700
@@ -17,7 +17,7 @@
 .SH SYNOPSIS
 .na
 .hy 0
-.B nethack
+.B %%HACKNAME%%
 [
 .B \-d
 .I directory
@@ -216,7 +216,7 @@
 supplies a directory which is to serve as the playground.
 It overrides the value from NETHACKDIR, HACKDIR,
 or the directory specified by the game administrator during compilation
-(usually /usr/games/lib/nethackdir).
+(usually %%HACKDIR%%).
 This option is usually only useful to the game administrator.
 The playground must contain several auxiliary files such as help files,
 the list of top scorers, and a subdirectory
@@ -258,7 +258,7 @@
 
 .br
 All other files are in the playground directory,
-normally /usr/games/lib/nethackdir.
+normally %%HACKDIR%%.
 If DLB was defined during the compile, the data files and special levels
 will be inside a larger file, normally nhdat, instead of being separate
 files.
@@ -386,7 +386,7 @@
 DEBUGFILES can be used if the program was built with 'DEBUG' enabled.
 .SH "SEE ALSO"
 .PP
-dgn_comp(6), lev_comp(6), recover(6)
+dgn_comp%%HACKEXT%%(6), lev_comp%%HACKEXT%%(6), recover%%HACKEXT%%(6)
 .SH BUGS
 .PP
 Probably infinite.
