From: Pasi Kallinen Date: Sun, 18 Oct 2009 09:58:21 +0000 (+0000) Subject: Change the chroot creation script to use the symlink trick for the nethack binary... X-Git-Tag: v1.6.1-roc-dev~226 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=dde7cc68b4c6ef0c8c2638c1624a8402d25fcfd2;p=dgamelaunch 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 --- diff --git a/dgl-create-chroot b/dgl-create-chroot index 0cebbd7..2e7f279 100755 --- a/dgl-create-chroot +++ b/dgl-create-chroot @@ -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 diff --git a/examples/dgamelaunch.conf b/examples/dgamelaunch.conf index 2cbe224..9684852 100644 --- a/examples/dgamelaunch.conf +++ b/examples/dgamelaunch.conf @@ -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"