Files
nethack/sys/libnh/test/run.sh
nhmall 7a44b3b52e hints updates
move out-of-date hints files to the outdated folder.

rename the hints files, and hints/include files that are currently
named *.2020 to *.370 (next release number).
2021-12-31 08:48:24 -05:00

46 lines
831 B
Bash
Executable File

#!/bin/bash -x
if [ x$1 == "xlib" ]; then
echo Doing lib...
if [ -f Makefile ]; then
make spotless
fi
cd sys/unix
./setup.sh hints/macOS.370
cd ../..
make WANT_LIBNH=1
fi
if [ x$1 == "xrunlib" ]; then
LIBS="-Lsrc -lnethack -Llib/lua -llua -lm"
BADLIBS="-lncurses"
rm nhlibtest
gcc -o nhlibtest libtest.c $LIBS $BADLIBS
./nhlibtest
fi
if [ x$1 == "xwasm" ]; then
echo Doing wasm...
if [ -f Makefile ]; then
make spotless
fi
cd sys/unix
./setup.sh hints/macOS.370
cd ../..
make CROSS_TO_WASM=1
fi
if [ x$1 == "xrunwasm" ]; then
cd sys/lib/npm-package && npm run build && node test/test.js
fi
if [ x$1 == "xbin" ]; then
echo Doing bin...
make spotless
cd sys/unix
./setup.sh hints/macOS.370
cd ../..
make
fi