Add end-of-game dumplogs
[aNetHack.git] / sys / unix / setup.sh
blobf3319adb77829ccdcc394463b5e815414a97ac36
1 #!/bin/sh
2 # NetHack 3.6 setup.sh $NHDT-Date: 1432512789 2015/05/25 00:13:09 $ $NHDT-Branch: master $:$NHDT-Revision: 1.14 $
3 # Copyright (c) Kenneth Lorber, Kensington, Maryland, 2007.
4 # NetHack may be freely redistributed. See license for details.
6 # Build and install makefiles.
8 # Argument is the hints file to use (or no argument for traditional setup).
9 # e.g.:
10 # sh setup.sh
11 # or
12 # sh setup.sh hints/macosx10.5 (from sys/unix)
13 # or
14 # sh setup.sh sys/unix/hints/macosx10.5 (from top)
16 # Were we started from the top level? Cope.
17 prefix=.
18 if [ -f sys/unix/Makefile.top ]; then cd sys/unix; prefix=../..; fi
20 case "x$1" in
21 x) hints=/dev/null
22 hfile=/dev/null
24 *) hints=$prefix/$1
25 hfile=$1
27 esac
29 /bin/sh ./mkmkfile.sh Makefile.top TOP ../../Makefile $hints $hfile
30 /bin/sh ./mkmkfile.sh Makefile.dat DAT ../../dat/Makefile $hints $hfile
31 /bin/sh ./mkmkfile.sh Makefile.doc DOC ../../doc/Makefile $hints $hfile
32 /bin/sh ./mkmkfile.sh Makefile.src SRC ../../src/Makefile $hints $hfile
33 /bin/sh ./mkmkfile.sh Makefile.utl UTL ../../util/Makefile $hints $hfile