mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-14 15:40:19 +02:00
In boilerplate, use -l$0. Thanks to Daniel Skarda.
This commit is contained in:
parent
9be745030e
commit
8c914f6b69
9 changed files with 9 additions and 9 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
# aside from this initial boilerplate, this is actually -*- scheme -*- code
|
||||
main='(module-ref (resolve-module '\''(scripts PROGRAM)) '\'main')'
|
||||
exec ${GUILE-guile} -c "(apply $main (cdr (command-line)))" "$@"
|
||||
exec ${GUILE-guile} -l $0 -c "(apply $main (cdr (command-line)))" "$@"
|
||||
!#
|
||||
;;; PROGRAM --- Does something
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue