summaryrefslogtreecommitdiff
path: root/games/nethack-lib/patches/patch-ad
blob: d9f68bf59f43b6c8d7761efa730f4f6af040cb88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ad,v 1.3 2002/03/22 17:26:25 pooka Exp $

--- sys/unix/nethack.sh.orig	Thu Mar 21 01:43:54 2002
+++ sys/unix/nethack.sh	Fri Mar 22 17:39:00 2002
@@ -1,9 +1,15 @@
 #!/bin/sh
 #	SCCS Id: @(#)nethack.sh	3.4	1990/02/26
 
-HACKDIR=/usr/games/lib/nethackdir
+if [ "$1" = "" ]; then
+	TTY=tty
+else
+	TTY=$1
+fi
+
+HACKDIR=XXXPREFIXXXX/share/nethackdir
 export HACKDIR
-HACK=$HACKDIR/nethack
+HACK=XXXPREFIXXXX/bin/nethack-$TTY
 MAXNROFPLAYERS=4
 
 # see if we can find the full path name of PAGER, so help files work properly