X11 install
Build and install the NetHack.ad file, and change the nethack.sh to append the HACKDIR to the XUSERFILESEARCHPATH. This means users do not have to do anything special to use the NetHack X11 resources, nor does it require teaching nethack where the X11 app-defaults directory is. The change also updates the X11 and linux doc files in a corresponding way.
This commit is contained in:
@@ -6,6 +6,15 @@ export HACKDIR
|
||||
HACK=$HACKDIR/nethack
|
||||
MAXNROFPLAYERS=4
|
||||
|
||||
# Since Nethack.ad is installed in HACKDIR, add it to XUSERFILESEARCHPATH
|
||||
case "x$XUSERFILESEARCHPATH" in
|
||||
x) XUSERFILESEARCHPATH="$HACKDIR/%N.ad"
|
||||
;;
|
||||
*) XUSERFILESEARCHPATH="$XUSERFILESEARCHPATH:$HACKDIR/%N.ad"
|
||||
;;
|
||||
esac
|
||||
export XUSERFILESEARCHPATH
|
||||
|
||||
# see if we can find the full path name of PAGER, so help files work properly
|
||||
# assume that if someone sets up a special variable (HACKPAGER) for NetHack,
|
||||
# it will already be in a form acceptable to NetHack
|
||||
|
||||
Reference in New Issue
Block a user