]> skyeroc.xyz Git - dgamelaunch/commitdiff
Change the chroot creation script to use the symlink trick for the nethack binary...
authorPasi Kallinen <paxed@alt.org>
Sun, 18 Oct 2009 09:58:21 +0000 (09:58 +0000)
committerPasi Kallinen <paxed@alt.org>
Sun, 18 Oct 2009 09:58:21 +0000 (09:58 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@482 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

dgl-create-chroot
examples/dgamelaunch.conf

index 0cebbd7d219be1c296099ac437557c7a9d7752c7..2e7f279ec75c5823653e389ff807a8b0c4814241 100755 (executable)
@@ -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
 
 
index 2cbe2243dd88d62eda2bec24500a2310c7eb1039..96848527bc44a1c7be6017433d3e3ac63b4a28b6 100644 (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"