summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/run-game3
-rw-r--r--scripts/run-game.in7
2 files changed, 7 insertions, 3 deletions
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))