Change the chroot creation script to use the symlink trick for the nethack binary too.

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@482 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Pasi Kallinen 2009-10-18 09:58:21 +00:00
parent 6e5bfc4c19
commit dde7cc68b4
2 changed files with 7 additions and 3 deletions

View File

@ -147,8 +147,12 @@ fi
if [ -n "$NETHACKBIN" -a -e "$NETHACKBIN" ]; then
echo "Copying $NETHACKBIN"
sudo cp "$NETHACKBIN" "$NHSUBDIR/"
cd "$NHSUBDIR"
NHBINFILE="`basename $NETHACKBIN`.`date +%Y%m%d`"
sudo cp "$NETHACKBIN" "$NHBINFILE"
sudo ln -s "$NHBINFILE" nethack
LIBS="$LIBS `findlibs $NETHACKBIN`"
cd "$CHROOT"
fi

View File

@ -206,11 +206,11 @@ menu["watchmenu_help"] {
#
DEFINE {
game_path = "/nh343/nethack.343-nao"
game_path = "/nh343/nethack"
game_name = "NetHack 3.4.3"
short_name = "NH343"
game_args = "/nh343/nethack.343-nao", "-u", "%n"
game_args = "/nh343/nethack", "-u", "%n"
spooldir = "/var/mail/"
rc_template = "/dgl-default-rcfile.nh343"