1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-02 13:00: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 #!/bin/sh
# aside from this initial boilerplate, this is actually -*- scheme -*- code # aside from this initial boilerplate, this is actually -*- scheme -*- code
main='(module-ref (resolve-module '\''(scripts PROGRAM)) '\'main')' 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 ;;; PROGRAM --- Does something

View file

@ -65,7 +65,7 @@ Programs must follow the "executable module" convention, documented here:
#!/bin/sh #!/bin/sh
main='(module-ref (resolve-module '\''(scripts PROGRAM)) '\'main')' 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)))" "$@"
!# !#
Following these conventions allows the program file to be used as module Following these conventions allows the program file to be used as module

View file

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# aside from this initial boilerplate, this is actually -*- scheme -*- code # aside from this initial boilerplate, this is actually -*- scheme -*- code
main='(module-ref (resolve-module '\''(scripts display-commentary)) '\'main')' main='(module-ref (resolve-module '\''(scripts display-commentary)) '\'main')'
exec ${GUILE-guile} -c "(apply $main (cdr (command-line)))" "$@" exec ${GUILE-guile} -l $0 -c "(apply $main (cdr (command-line)))" "$@"
!# !#
;;; display-commentary --- As advertized ;;; display-commentary --- As advertized

View file

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# aside from this initial boilerplate, this is actually -*- scheme -*- code # aside from this initial boilerplate, this is actually -*- scheme -*- code
main='(module-ref (resolve-module '\''(scripts doc-snarf)) '\'main')' main='(module-ref (resolve-module '\''(scripts doc-snarf)) '\'main')'
exec ${GUILE-guile} -c "(apply $main (cdr (command-line)))" "$@" exec ${GUILE-guile} -l $0 -c "(apply $main (cdr (command-line)))" "$@"
!# !#
;;; doc-snarf --- Extract documentation from source files ;;; doc-snarf --- Extract documentation from source files

View file

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# aside from this initial boilerplate, this is actually -*- scheme -*- code # aside from this initial boilerplate, this is actually -*- scheme -*- code
main='(module-ref (resolve-module '\''(scripts generate-autoload)) '\'main')' main='(module-ref (resolve-module '\''(scripts generate-autoload)) '\'main')'
exec ${GUILE-guile} -c "(apply $main (cdr (command-line)))" "$@" exec ${GUILE-guile} -l $0 -c "(apply $main (cdr (command-line)))" "$@"
!# !#
;;; generate-autoload --- Display define-module form with autoload info ;;; generate-autoload --- Display define-module form with autoload info

View file

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# aside from this initial boilerplate, this is actually -*- scheme -*- code # aside from this initial boilerplate, this is actually -*- scheme -*- code
main='(module-ref (resolve-module '\''(scripts punify)) '\'main')' main='(module-ref (resolve-module '\''(scripts punify)) '\'main')'
exec ${GUILE-guile} -c "(apply $main (cdr (command-line)))" "$@" exec ${GUILE-guile} -l $0 -c "(apply $main (cdr (command-line)))" "$@"
!# !#
;;; punify --- Display Scheme code w/o unnecessary comments / whitespace ;;; punify --- Display Scheme code w/o unnecessary comments / whitespace

View file

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# aside from this initial boilerplate, this is actually -*- scheme -*- code # aside from this initial boilerplate, this is actually -*- scheme -*- code
main='(module-ref (resolve-module '\''(scripts read-scheme-source)) '\'main')' main='(module-ref (resolve-module '\''(scripts read-scheme-source)) '\'main')'
exec ${GUILE-guile} -c "(apply $main (cdr (command-line)))" "$@" exec ${GUILE-guile} -l $0 -c "(apply $main (cdr (command-line)))" "$@"
!# !#
;;; read-scheme-source --- Read a file, recognizing scheme forms and comments ;;; read-scheme-source --- Read a file, recognizing scheme forms and comments

View file

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# aside from this initial boilerplate, this is actually -*- scheme -*- code # aside from this initial boilerplate, this is actually -*- scheme -*- code
main="(module-ref (resolve-module '(scripts snarf-check-and-output-texi)) 'main)" main="(module-ref (resolve-module '(scripts snarf-check-and-output-texi)) 'main)"
exec ${GUILE-guile} -c "(apply $main (cdr (command-line)))" "$@" exec ${GUILE-guile} -l $0 -c "(apply $main (cdr (command-line)))" "$@"
!# !#
;;; snarf-check-and-output-texi --- called by the doc snarfer. ;;; snarf-check-and-output-texi --- called by the doc snarfer.

View file

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# aside from this initial boilerplate, this is actually -*- scheme -*- code # aside from this initial boilerplate, this is actually -*- scheme -*- code
main='(module-ref (resolve-module '\''(scripts use2dot)) '\'main')' main='(module-ref (resolve-module '\''(scripts use2dot)) '\'main')'
exec ${GUILE-guile} -c "(apply $main (cdr (command-line)))" "$@" exec ${GUILE-guile} -l $0 -c "(apply $main (cdr (command-line)))" "$@"
!# !#
;;; use2dot --- Display module dependencies as a DOT specification ;;; use2dot --- Display module dependencies as a DOT specification