From a552fe2b158b75496177f3f470c144569fa19d95 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Sat, 21 Oct 2023 16:26:18 +0200 Subject: Fix command-line args. With this commits (command-line) are properly set. Before they were always (guile). --- configure.ac | 1 + scripts/run-game | 3 --- scripts/run-game.in | 7 +++++++ 3 files changed, 8 insertions(+), 3 deletions(-) delete mode 100755 scripts/run-game create mode 100644 scripts/run-game.in diff --git a/configure.ac b/configure.ac index 65d48cc..bafcb6d 100644 --- a/configure.ac +++ b/configure.ac @@ -8,6 +8,7 @@ AM_SILENT_RULES([yes]) AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env]) +AC_CONFIG_FILES([scripts/run-game], [chmod +x scripts/run-game]) GUILE_PKG([3.0]) GUILE_PROGS diff --git a/scripts/run-game b/scripts/run-game deleted file mode 100755 index 3be3551..0000000 --- a/scripts/run-game +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -exec guile -c '(use-modules (game main)) (launch-game (command-line))' diff --git a/scripts/run-game.in b/scripts/run-game.in new file mode 100644 index 0000000..3a1020d --- /dev/null +++ b/scripts/run-game.in @@ -0,0 +1,7 @@ +#!@GUILE@ \ +--no-auto-compile -e main -s +!# + +(use-modules (game main)) +(define* (main #:optional (args (command-line))) + (launch-game args)) -- cgit v1.2.3