mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-01 12:20:26 +02:00
In boilerplate, use -l$0. Thanks to Daniel Skarda.
This commit is contained in:
parent
fdd2c5c71a
commit
50c0f3bcbb
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