In boilerplate, use -l$0. Thanks to Daniel Skarda.

This commit is contained in:
Thien-Thi Nguyen 2001-08-01 05:09:30 +00:00
commit 8c914f6b69
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 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.