1
Fork 0
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:
Thien-Thi Nguyen 2001-08-01 05:04:45 +00:00
parent fdd2c5c71a
commit 50c0f3bcbb
9 changed files with 9 additions and 9 deletions

View file

@ -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